#help

40 messages · Page 1 of 1 (latest)

muted oasis
#

local Tweenservice = game:GetService("TweenService")
local Frame = script.Parent
local Part = game.Workspace.Part
local TweenInfo = TweenInfo.new(0,Enum.EasingStyle.Linear, Enum.EasingDirection.Out,0, false,0)

local goal = {}
Frame.Position = UDim2.new(0.464, 0,0.419, -250)

line 9 :local Tween = Tweenservice:Create(Part, goal, TweenInfo)

Part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
Frame.Visible = true
Tween:Play()
end
end)

#

i want when i touch the part the frame goes smooth up

swift geyser
round coralBOT
#

studio** You are now Level 1! **studio

muted oasis
#

yes

#

line 9

swift geyser
#

The red text in the top

muted oasis
ruby comet
#

tweeninfo is the second

#

and goal the third argument

swift geyser
ruby comet
#

local Tween = Tweenservice:Create(Part, goal, TweenInfo)

#

this is the error

#

local Tween = Tweenservice:Create(Part, TweenInfo, goal)

#

try that

ruby cobalt
swift geyser
#

goal.Position = UDim2.new(0.464, 0,0.419, -250)

#

maybe?

ruby cobalt
#

@muted oasis why is your goal empty

muted oasis
#

it doesnt goes smooth up

ruby cobalt
#

Do you not want your thing to move

ruby cobalt
ruby comet
#

yes goal is empty but it wasnt correct the arguments

muted oasis
ruby cobalt
muted oasis
#

how can i do it

round coralBOT
#

studio** You are now Level 1! **studio

ruby cobalt
#

Did you write this script by yourself

#

Or is this ai

muted oasis
#

write by my self

ruby cobalt
#

Do you know anything about tweening

#

Also the function detail popup literally tells you the order of the arguments how did you get it wrong

muted oasis
#

i forgot to add sine

#

im new add it

ruby cobalt
#

Also your TweenInfo time is 0, that means it'll just move instantly

#

Do more research about tweening and watch so videos because literally everything is wrong with your script