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 1 year ago
Edited 1 year 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.

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()
0
Did you try it with other players? T3_MasterGamer 2189 — 1y

Answer this question