So there is a problem with my tool. I want the player equip remote control tool for watch Tv. I had been tried to use ServerStorage but the tool didn’t worked, its doesn’t giving me the tool. However, tool had been gave to me when I put it into StarterPack. But for some reason my tool is duplicated and the duplicated tool automatically equipping to my inventory when I always joining the game and I am getting my original tool when I am clicking to E by using proximity prompt.
Note: I am not professional scripter so mu script can be weird. I am sorry for that
Starter Pack will put any tool in it into the player when they first join
I would suggest putting it in ReplicatedStorage is ServerStorage didn’t work
I tried it but still tool didn’t gave to me.
I watched some videos that people putting them to ServerStorage and somehow its working on them.
What’s your code for putting it into the player from ServerStorage?
If I understood you correctly, you only want the prompt to give the player a remote once. In that case, this is what you’ll need to do:
local tool = game.ServerStorage.RemoteControl
local prompt = game.Workspace.ControlRemoto.BigButton.ProximityPrompt
prompt.Triggered:Connect(function(player)
if player.Backpack:FindFirstChild(tool.Name) or player.Character:FindFirstChild(tool.Name) then return end
tool:Clone().Parent = player.Backpack
end)
The Tool will need to be in ServerStorage for this to work correctly
Edit: @Enderstrano It’s also important that this script needs to be a server Script, not a LocalScript since LocalScripts can’t access ServerStorage
Thank you so much for such a great information! I will use this method for my future games and I am sorry for my bad grammar too. I am not thinking about my grammar if I am tired. I still working on my English :\
and Also funny thing is, I thought you mean a server script and server script service and I put server script to server script service and its worked lol.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.