#I dont understand why the tool is being activated when im not even clicking
30 messages · Page 1 of 1 (latest)
That’s because Tool.Activated is an event. Doing if Tool.Activated just checks if Tool has that event
I would just add a Tool.Activated function inside that function. And switch .Touch to a touchstarted and a touchended event. Touchstarted connecting the tool activated event and touchended disconnecting it
Yes this is a tad advanced for a beginner but else it will not behave the way you wish
I can make the rough script for you in 8h when I’m back home
@dire eagle thanks for help, i would love it if you can make the script for me.
if hit.Parent = "Key" then
if key.Activated then
game.workspace.Door:Destroy()
end
end
.
so what was wrong
local door = workspace.Part
local key = script.Parent
local sessionnum = 0
key.Activated:Connect(function()
if sessionnum == 1 then
door:Destroy()
end
end)
door.Touched:Connect(function(hit)
if hit.Name == key.Handle.Name then
sessionnum = 1
end
end)```
the door not gonna respawn right?
if it gonna respawn
then i have to change the script
nah its not gonna respawn
** You are now Level 1! **
ok
rough script