Trying to use local script on game and still acts as a server script?
Asked by
2 years ago Edited 2 years ago
I am making a game and I am trying to make it so when you touch a sprite, it flies in the air and disappears as a tween but I am also trying to make it so the tween only happens with one person but it does not work. I have tried to put the local script in StarterPlayerScripts
and StarterCharacterScripts
and it still does not work.
1 | local Sprite 1 = script.Parent |
2 | local TweenService = game:GetService( "TweenService" ) |
5 | goal.Position = Sprite 1. Position + Vector 3. new( 0 , 1 , 0 ) |
6 | local Info = TweenInfo.new( 1 , Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, - 1 , true , 0 ) |
7 | local TweenNow = TweenService:Create(Sprite 1 , Info, goal) |