It says nil in output, even through I have the tool equipped. That’s weird.
Send a pickture of the workspace please
?
Send a pickture of the script and output when tou run it
script.Parent.Triggered:Connect(function(Player)
local ToolEquipped = Player.Character:FindFirstChildOfClass('Tool')
print(ToolEquipped)
local toolName = ToolEquipped.Name
if toolName == "Cake Dough" then
ToolEquipped:Destroy()
local Clone = game.ServerStorage["Rolled Cake Dough"]:Clone()
Clone.Parent = Player.Backpack
print("working!")
elseif toolName == "Cookie Dough" then
ToolEquipped:Destroy()
local Clone = game.ServerStorage["Rolled Cookie Dough"]:Clone()
Clone.Parent = Player.Backpack
print("working!")
elseif toolName == "Cupcake Dough" then
ToolEquipped:Destroy()
local Clone = game.ServerStorage["Rolled Cupcake Dough"]:Clone()
Clone.Parent = Player.Backpack
print("working!")
elseif toolName == "Mochi Dough" then
ToolEquipped:Destroy()
local Clone = game.ServerStorage["Rolled Mochi Dough"]:Clone()
Clone.Parent = Player.Backpack
print("working!")
elseif toolName == "Muffin Dough" then
ToolEquipped:Destroy()
local Clone = game.ServerStorage["Rolled Muffin Dough"]:Clone()
Clone.Parent = Player.Backpack
print("working!")
end
end)
Let me copy your situation and get to solution making
Works for me (dont mind thissss)
I know your problem you art equiping the cake do dough
I equipped the cake through? I’m not sure.
You try it with the cake dough outlined blue
Still doesn’t work if I use any of the cakes.
@iiheavenlymarsx You might want to try and inspect the scripts which revolve around editing the Player’s backpack.
In the meanwhile, I’ll link this post as an alternative workaround for this issue:
(Just delete the Player variable and replace it with the ProximityPrompt being triggered. If this works, do mark this as the solution of this post.)
Thanks, I’ll try it out.
I think that’s just because you don’t have the original tool on your side.
It takes the tool away dhdjdjdjrjr
you dont have the tool in your Place
I had a tool called cookiedough
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.