My tool is not working at all

Look on the properties on your tool, if there is something called RequiresHandle off then turn it on

1 Like

Where is the script? if itā€™s directly under the tool it should just be script.Parent

1 Like

i checked the properties it is already on

1 Like

Can You just send a picture so it would be easier?

I put the script inside The handle,

which means:

Handle: script.Parent
Tool: script.Parent.Parent

3 Likes
local Yes = false

coroutine.wrap(function()
      while task.wait() do
         if Yes == true then
            script.Parent.Orientation = Vector3.new(-90,0,0)
           else 
           script.Parent.Orientation = Vector3.new(0,0,0)
           end
      end
end)()
	script.Parent.Touched:Connect(function(Part)
		if Part:IsA("BasePart") and Yes then
         Part.BrickColor = BrickColor.Red()
       end
	end)


script.Parent.Parent.Parent.Activated:Connect(function(act)
	Yes = true
	wait(10)
	Yes = false
end)

Just In case you have another part on top and forgot

local Activated = false
local OldColor = Color3.new(0, 0, 0)
local TouchCooldown = false
local TouchedPart = nil

script.Parent.Handle.Touched:Connect(function(Part)
    if Activated == true and TouchCooldown == false and Part then
        TouchCooldown = true
        TouchedPart = Part
        OldColor = Part.Color
        Part.Color = Color3.new(1, 0, 0)
        Part.Orientation += Vector3.new(-90, 0, 0)
    end
end)

function Activated()
    Activated = true
    task.wait(10)
    if TouchedPart then
        TouchedPart.Color = OldColor
    end
    OldColor = Color3.new(0, 0, 0)
    TouchedPart = nil
    Activated = false
    TouchCooldown = false
end

local WrappedActivate = coroutine.wrap(Activated)

script.Parent.Activated:Connect(function()
    if Activated == false then
        WrappedActivate()
    end
end)

Let me know if thereā€™s any errors!

1 Like

yes, I know it needs to be a server script and not localscript,

ok let me try this script it seems good

I put it inside the Handle, Didnā€™t work. I put it inside the tool, didnā€™t work,

Any errors in the output? What behavior are you expecting?

1 Like

nope, The part that touches the handle becomes red and not the handle itself

Thatā€™s- impossible.
I never grabbed the part that was touched from the Touched() event, so that shouldnā€™t happen.

1 Like

Can you send a video or something demoing this strange behavior?

1 Like

i meant that was the thing i wanted and not what happend

Oh, I see. Iā€™ll edit my code for that.

Edited it, go back to my code and see if it does what you want now.

1 Like

nope , it does not work at all

Why not? Is it just erroring and doing nothing?

1 Like

nope it is not working at all it does nothing