Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Serverstorage is not giving the tool to a player?

Asked by 3 years ago
Edited 3 years ago

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)
0
Is this a local script or a server script? MendozaHM3SBulldog 32 — 3y
0
server script builder_ita 9 — 3y
0
any errors Xapelize 2658 — 3y
0
parent is not a valid member of Tool "Pizza" builder_ita 9 — 3y
View all comments (2 more)
0
use Parent not parent on the line 7 Xapelize 2658 — 3y
0
Tysm! builder_ita 9 — 3y

1 answer

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago
Edited 3 years ago

.Parent not .parent

Ad

Answer this question