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.
local Sprite1 = script.Parent local TweenService = game:GetService("TweenService") local goal = {} goal.Position = Sprite1.Position + Vector3.new(0, 1, 0) local Info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true, 0) local TweenNow = TweenService:Create(Sprite1, Info, goal) TweenNow:Play()