I'm trying to make a GUI tween when play clicks a button, from client to server. Now these are my scripts:
local script:
local RemoteEvent = game.ReplicatedStorage:WaitForChild("RemoteEvent")
game.Players.LocalPlayer.PlayerGui.ScreenGui.TextButton.MouseButton1Click:Connect(function()
a001:FireServer()
end)
Server Script:
local RemoteEvent = game.ReplicatedStorage:WaitForChild("RemoteEvent")
RemoteEvent.OnServerEvent:Connect(function(player)
player.PlayerGui.ScreenGui.Frame:TweenPosition(UDim2.new(0,0,0,100),"In","Quad",1)
end)
I can't access the playergui using LocalPlayer, I can't do a switcheroo from server -> client either because both require access to playerGui.. any help?
|