Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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.

1local Sprite1 = script.Parent
2local TweenService = game:GetService("TweenService")
3 
4local goal = {}
5goal.Position = Sprite1.Position + Vector3.new(0, 1, 0)
6local Info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true, 0)
7local TweenNow = TweenService:Create(Sprite1, Info, goal)
8 
9TweenNow:Play()
0
Did you try it with other players? T3_MasterGamer 2189 — 2y

Answer this question