Look on the properties on your tool, if there is something called RequiresHandle off then turn it on
Where is the script? if itās directly under the tool it should just be script.Parent
i checked the properties it is already on
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
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!
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?
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.
Can you send a video or something demoing this strange behavior?
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.
nope , it does not work at all
Why not? Is it just erroring and doing nothing?
nope it is not working at all it does nothing