Help needed with Tools

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    setting the proximityprompt.enabled to true with my tool
  2. What is the issue?
    the script looks alright and the output doesn’t tell me errors
  3. What solutions have you tried so far?
    using value’s,trying to activate something else before activating the prompt,yt tutorials not found.
    i’ve been grinding devforum until i was able to post.
    i am just learning tools so i don’t know how they work so far i’ve only made a torch.(without tutorials though)
    this is the script in question:
script.Parent.Equipped:Connect(Function()
workspace.Hitboxwater.ProximityPrompt.Enabled = true--hitboxwater is a part in workspace
if workspace.Full.Value == true then--Full is a boolean in workspace i use to see if my tool worked
script.Parent:Destroy()
end
end)


script.Parent.Unequipped:Connect(Function()
workspace.Hitboxwater.ProximityPrompt.Enabled = False
end)

the output doesn’t tell me the errors
i know for more experienced programmers this is a basic problem but for me it’s still hard to understand.

I see a couple of possible issues -
1.You spelt Function with a capital F, where it needs to be low case - function.
2.You spelt False with a capital F, where it needs to be low case - false.
3.You included the Unequipped event inside the equipped event, try this instead:

local tool = script.Parent
local prompt = workspace.Hitboxwater.ProximityPrompt

tool.Equipped:Connect(function()
	prompt.Enabled = true
	if workspace.Full.Value == true then
		tool:Destroy()
	end
end)

tool.Unequipped:Connect(function()
	prompt.Enabled = false
end)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.