Hey, I was trying to make an donate surface. But my scripts arent working what is the problem?
GlobalScript:
script.Parent.MouseButton1Down:Connect(function(playerWhoClicked) local RemoteEvent = game:GetService("ReplicatedStorage"):WaitForChild("DonateEvent") print(playerWhoClicked) RemoteEvent:FireClient(playerWhoClicked) end)
LocalScript:
local RemoteEvent = game:GetService("ReplicatedStorage"):FindFirstChild("DonateEvent") RemoteEvent.OnClientEvent:Connect(function(Player) local GUI = Player:FindFirstChild("PlayerGui"):WaitForChild("DonateGUI") GUI.DonateFrame:TweenPosition(UDim2.new(0.475, 0,0.451, 25),'Out','Sine',0.5) end)
Output: Argument 1 missing or nil?