Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Serverstorage is not giving the tool to a player?

I'm building a machine that when you hold E gives you pizza. The pizza is in server storage and it doesn't give the tool.

The code :

local ProximityPrompt = script.parent.ProximityPrompt
local ServerStorage = game:GetService("ServerStorage")
local serverstoragetool = ServerStorage.Pizza

ProximityPrompt.Triggered:Connect(function(Player)
	local tool = serverstoragetool:Clone()
	tool.parent = Player:WaitForChild("Backpack")
end)

6 comments

0

Is this a local script or a server script?

0

server script

0

any errors

0

parent is not a valid member of Tool "Pizza"

0

use Parent not parent on the line 7

0

Tysm!

1 answer

✓ Accepted answer

.Parent not .parent

This discussion is preserved as it was. New answers, comments, and votes are closed.