Give player some tools with GUI.
After firing remote event script doesn’t give tool
I tried server side it with remote events but script doesn’t give player some tools
Client code:
script.Parent.MouseButton1Down:Connect(function()
game.ReplicatedStorage.Coffee:FireServer()
end)
Server code:
script.Parent.OnServerEvent:Connect(function(plr)
script.Pizza:Clone().Parent = plr.Backpack
end)
Is there any other code above it ? Also, check your spellings or name maybe, it can be the case.
nope, that all i typed and i checked all spellings and names nothing wrong
Can you show your hierarchy to clarify ?
Local Script:
Server script:
i cant show videos due i dont have recording software that working
I mean your hierarchy, like Workspace, ReplicatedStorage etc. I just need the image of the hierarchy
Workspace:
ReplicatedStroage:
I see you fired from client using Coffee, and then used Pizza RemoteEvent. Please clarify, which one are you using ?
ArabicDima
(ArabicDima)
March 6, 2023, 11:42am
#11
I think i screenshot something wrong but the reason i here it dont appearing in backpack
I think the code is messed up, you aren’t sure which RemoteEvent you are firing and which connecting. Actually, which tool you want, I’ll make the code.
Script’s don’t run in ReplicatedStorage
. You will need to move them to ServerScriptService.
2 Likes
Oohhh Thank you so much! That actually a very good idea
system
(system)
Closed
March 21, 2023, 5:15am
#16
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.