Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Is there somthing wrong with this?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

GroupID = 1070877 --Change this to your groups ID Door = script.Parent Kill = false --If a player isnt in the group, then kill them on touch. Teleport = false --Teleport Mode. Teleports to a certain position X = 0 --For use with the Teleport Mode. Set to the X Position Y = 0 --For use with the Teleport Mode. Set to the Y Position

Z = 0 --For use with the Teleport Mode. Set to the Z Position

--Only Edit The Above-------------------------------------------------

----------------------------------------------------------------------

DB = false script.Parent.Touched:connect(function(p) if p.Parent:FindFirstChild("Humanoid") then player = game.Players:GetPlayerFromCharacter(p.Parent) if player then if not DB then DB = true if player:IsInGroup(GroupID) then if not Teleport then Door.Transparency = 1 Door.CanCollide = false wait(0.4) Door.Transparency = 1 Door.CanCollide = true DB = false elseif Teleport then player.Character.Torso.CFrame = CFrame.new(X,Y+2,Z) DB = false end elseif not player:IsInGroup(GroupID) then if Kill then p.Parent.Humanoid.Health = 0 DB = false elseif not Kill then DB = false end end end end end end)

It glitches out after the first few times being used... Please help.

0
Please put the code in the code block so it is easier to read. gskw 1046 — 10y
0
Hello BrendonWalker! Please put your script inside of the code block, when you edit, it is the furthest right button, with the Lua logotype on it. Put the script in between the "~" that will appear. AmericanStripes 610 — 10y

Answer this question