The PointLight is the only thing working and nothing else is working. I don’t know why, I don’t think any Syntax errors in my code? I’m stumped.
I’ve tried just making it a CFrame to move it in and out of the way. I’ve also tried just making it’s CanCollide and CanTouch false. But none of those seem to work, why’s that? Here’s my CFrame code.
local ClickDetector = script.Parent.ClickDetector
local On = game.Workspace.On
local Off = game.Workspace.Off
ClickDetector.MouseClick:Connect(function()
game.Workspace.LightPart.PointLight.Enabled = true
game.Workspace.HitBox2.CanCollide = true
game.Workspace.HitBox2.CanTouch = true
game.Workspace.HitBox.CanCollide = false
game.Workspace.HitBox.CanTouch = false
for count = 1, 1 do
wait (0.001)
On.CFrame=CFrame.new(On.Position+Vector3.new(1,1,1))
Off.CFrame=CFrame.new(Off.Position+Vector3.new(-1,-1,-1))
end
end)
Yeah, basically the error is that it can’t find the object in the workspace. So either your path to it is wrong (it’s not directly in the workspace but rather in another object in the workspace) or you are trying to access it before it’s created
Yes! Thank you. All I have to do is fix some CFrame issues with it actually landing in the right place and then one more issue and then it is done. Thank you so much.