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

Why does my script only work in one Place and not in another Place?

I have a script that causes a tool to be copied from the ReplicatedStorage to the backpack when you click on a brick. In my one world, this one works. However, if I copy it into my own game world, it no longer works. There is also no error displayed in the output. What could that be?

1 comment

0

Could we see this script?

1 answer

This is the script I used:

local p = game.Players.LocalPlayer
local debounce = true

script.Parent.MouseClick:Connect(function(p)
	local Backpack = p.Backpack
	local Tool = game.ReplicatedStorage.Equipment.BottleDrinks.Cola1
	local Clone = Tool:Clone()
	Clone.Parent = Backpack
	script.Disabled = true
	wait(10)                                                   
	script.Disabled = false
end)

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