|
| 21 Oct 2013 01:02 AM |
I got this script, I need it to load and not break [even cmd will help]
OpenTransparency = 1 GroupId = 964391 OpenTime = 2 Killing = true Knockback = false -------------------------------------------------------------------------------------------------- On = false
function open(hit) if On == false then On = true if hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil then Player = game.Players:FindFirstChild(hit.Parent.Name) if Player ~= nil then if Player:IsInGroup(GroupId) == true then Orig = script.Parent.Transparency script.Parent.Transparency = OpenTransparency script.Parent.CanCollide = false wait(OpenTime) script.Parent.CanCollide = true script.Parent.Transparency = Orig On = false end end end end end
function kill(hit) if hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil then Player = game.Players:FindFirstChild(hit.Parent.Name) if Player ~= nil then if Player:IsInGroup(GroupId) == false then hit.Parent:BreakJoints() end end end end
function knock(hit) if hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Torso") ~= nil then Player = game.Players:FindFirstChild(hit.Parent.Name) if Player ~= nil then if Player:IsInGroup(GroupId) == false then hit.Parent.Torso.RotVelocity = Vector3.new(50, -230, 50) end end end end
function ontouched(hit) open(hit) if Killing == true then kill(hit) end if Knockback == true then knock(hit) end end
script.Parent.Touched:connect(ontouched)
|
|
|
| Report Abuse |
|