Can you paste your code into devforum into a codeblock, “so I can see more clearly”
Do a code block by doing:
code goes in middle
local ClickDetector = workspace.Garage.Handle.ClickDetector-- Path to you ClickDetector
local playerCanClick = 994454489 -- Path to the player who can click the ClickDetector
local connection
local function click(playerWhoClicked)
if playerCanClick == playerWhoClicked then
local Handle = script.Parent.Handle
local open = false
local active = false
function click()
if open == false and active == false then
active = true
for i = 1,60 do
script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame * CFrame.Angles(0, 0, math.rad(1.5)))
wait()
script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame * CFrame.new(0.05,0,0))
wait()
end
active = false
open = true
elseif open == true and active == false then
active = true
for i = 1,60 do
script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame * CFrame.Angles(0, 0, math.rad(-1.5)))
wait()
script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame * CFrame.new(-0.05,0,0))
wait()
end
active = false
open = false
end
end
Handle.ClickDetector.MouseClick:connect(click)
connection:Disconnect()
end
end
connection = ClickDetector.MouseClick:Connect(click)
I removed the “)” at the last “end”, now it only shows " Infinite yield possible on 'ServerScriptService:WaitForChild(“Handle”)"
That is not in the script you gave and that is in another script!
However the error is probably because Handle is not in ServerScriptService
Well it is though, I just inserted the door opening code
I can’t see the code in the script you posted so I can’t help you with that unless you give the script with the error
What do you mean you can’t see the code? I’m so confused right now
Like the script that you pasted into the code block doesn’t include ServerScriptService:WaitForChild(“Handle”) So I am not able to help you unless I can see where you wrote ServerScriptService:WaitForChild(“Handle”)
That is from output, I don’t know why it says “ServerScriptService”
Can you screenshot the whole entire output?
Hold on, don’t know what happened right now
All the errors that happened aren’t from the script you gave it is all from other scripts.
Oh yeah, jesus christ… I still don’t understand why doesn’t work
I’m afraid I cannot help you with the other errors
Wait, do I have to have HTTP Requests enabled, or anything special enabled?
I am not sure for why you need HTTP Requests enabled. That is only for when you are requesting something from a website.
Yeah, I’ll see if I find an alternative solution to this challenge, thank you so much for your assistance