Hey everyone so,
Im making a bobble head and whenever you click the bobble it will bobble the head, pretty straight forward right?
Im using tweens to bobble the head.
local tweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
game.ReplicatedStorage.BobbleHead.OnClientEvent:Connect(function(bobble)
local head = bobble.Head
for i = 1, 1 do
local tweenLeft = tweenService:Create(head,tweenInfo,{CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(-11.25))})
tweenLeft:Play()
print(tweenLeft.PlaybackState)
end
end)
Thats a client script located in StarterPlayerScripts, I confirmed that the RemoteEvent does fire and the client does recieve it. Theres no errors, and it does say that the tween plays, but nothing happens visually.
** You are now Level 11! **