#weld not tweening
1 messages · Page 1 of 1 (latest)
'''lua
script.Parent.Activated:Connect(function()
print("1")
local service = game:GetService("TweenService")
local info = TweenInfo.new(0.5,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out,0,false,0.1)
local weld = script.Parent.Needle.Main.Weld
local goal = {}
goal.C0 = weld.C0*CFrame.new(1.05, -0.062, 0)
local tween = service:Create(weld,info,goal)
tween.Completed:Wait()
wait(0.5)
local goal = {}
goal.C0 = weld.C1*CFrame.new(-0.494, -0.062, 0)
local tween = service:Create(weld,info,goal)
tween.Completed:Wait()
print("2")
end)
'''
bruh
back tics, not quotes, to the left of the number 1 on your keyboard
script.Parent.Activated:Connect(function()
print("1")
local service = game:GetService("TweenService")
local info = TweenInfo.new(0.5,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out,0,false,0.1)
local weld = script.Parent.Needle.Main.Weld
local goal = {}
goal.C0 = weld.C0CFrame.new(1.05, -0.062, 0)
local tween = service:Create(weld,info,goal)
tween.Completed:Wait()
wait(0.5)
local goal = {}
goal.C0 = weld.C1CFrame.new(-0.494, -0.062, 0)
local tween = service:Create(weld,info,goal)
tween.Completed:Wait()
print("2")
end)
1 prints but 2 dosent
You need to :Play() the tween after you create it (but before you wait for it to complete, or it'll be waiting for an event that'd never fire)