[SOLVED] Could someone help with this RemoteEvent? I cannot figure out the problem with my scripts.
Asked by
6 years ago Edited 6 years ago
I am trying to make a remote event fire to a single client. I cannot figure out why my current scripts are not working.
2 | game.ReplicatedStorage.One.OnServerEvent:Connect( function (plr) |
3 | if game.Workspace [ plr.Name.. "'s Place on Board" ] .Value = = 2 then |
4 | game.Workspace [ plr.Name ] .UpperTorso.CFrame = CFrame.new(- 34.412 , 2.209 , 22.888 ) |
5 | game.ReplicatedStorage.PurchaseBloxField:FireClient(plr) |
6 | print ( "Sent request to buy it!" ) |
02 | game.ReplicatedStorage:WaitForChild( "One" ) |
04 | game.ReplicatedStorage.One:FireServer() |
08 | game.ReplicatedStorage.PurchaseBloxField.OnClientEvent:Connect( function () |
09 | print ( "Received request to buy it!" ) |
10 | script.Parent.Purchase.BloxField.Visible = true |
It successfully prints "Sent request to buy it!", but not "Received request to buy it!". There are no errors in the output.