I asked someone and told it was tabbing but I can't figure it out.
Code:
--FO SYSTEM--
local Puck = workspace.Puck
local Whistle = workspace.GameSounds.Whistle
local hitbox = game.ReplicatedStorage.FoValues.Hitbox2
function onTouched(hit)
if hit.Name == "Puck" then
print("touched")
if hit.Name == "Puck" then
print("hit")
Puck.Anchored = true
print("anchored")
if hitbox == true then
Puck.Position = Vector3.new(-29.62, 8.959, 364.466)
print("tpd")
else if hitbox == false then
Puck.Position = Vector3.new(-29.62, 8.959, 364.46)
print("tpd")
end
Whistle:Play()
print("whistled")
end
end
end
end
script.Parent.Touched:connect(onTouched)

3 comments
Are there any errors?
no
if hitbox.Value == true/false