I am trying to tween a Frame's position for everyone.
Here is the local script in the client
`local repStore = game:GetService("ReplicatedStorage") local remote = repStore:WaitForChild("cool") f = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame
remote.OnClientEvent:connect(function() f:TweenPosition(UDim2.new(1, 0, 0, 0), 'Out', 'Linear', 1)
end)`
Here is the script in Serverscriptservice
`local repStore = game:GetService("ReplicatedStorage") local remote = repStore:WaitForChild("cool")
button = game:GetService("StarterGui").ScreenGui.Frame.TextButton
button.MouseButton1Click:connect(function() remote:FireAllClients() end)
`
My remoteevent is in ReplicatedStorage named 'cool'
All that it's suppose to do is, when i click a button the frame moves to the otherside of the screen, and EVERYONE can see it move

1 comment
put it in code blocks