willz217
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 1396 |
|
|
| 05 Apr 2013 09:18 AM |
I am making a survival game which has a lift and it counts players inside a value when I enter the lift it adds +1 on the value and if I exit the lift it -1's the value. But when I reset my character, the lift shows -1 on the lift I want it to be 0 again like nothing's in the lift again... Here's the script...
m = script.Parent.Info l = true
wait(14)
while true do wait(1) if script.Disabled ~= true then if script.Parent.Waiting.Value >= 1 then wait(1) m.Value = "Round Beginning!" wait(2.5) m.Value = "Lowering Lift..." for e=1,50 do wait(.05) script.Parent.Lift.CFrame = script.Parent.Lift.CFrame - Vector3.new(0, 0.2, 0) end if script.Parent.Waiting.Value >= 1 then game.Lighting.Easy.Main:Clone().Parent = script.Parent for i,k in pairs(game.Players:GetPlayers()) do if k.Waiting.Value == 1 then k.PlayerGui.ScreenGui.Main.Exit.Visible = false if k.PlayerGui.ScreenGui.Main:findFirstChild("ExitSpectate") then k.PlayerGui.ScreenGui.Main.ExitSpectate.Visible = false end wait() k.Waiting.Value = 0 if k.Character.Humanoid.Health >= 1 then k.Character.Torso.CFrame = CFrame.new(math.random(-16,16), 69, math.random(-18, 14)) k.Ingame.Value = 1 k.PlayerGui.ScreenGui.Winner:Stop() if k.Name == "Willz217" then k.PlayerGui.ScreenGui.OwnerMusic:Play() else k.PlayerGui.ScreenGui.Music:Play() end script.Parent.Ingame.Value = script.Parent.Ingame.Value + 1 end end end script.Parent.Waiting.Value = 0 script.Parent.Display.BrickColor = BrickColor.new(21) script.Parent.GameArea.GlassOne.Transparency = 0.6 script.Parent.Lift.CFrame = CFrame.new(-417, 242.8, 118) game.Lighting.Easy.IngameScript:Clone().Parent = script.Parent script.Disabled = true script:Remove() end else if script.Parent:findFirstChild("Main") ~= nil then script.Parent.Main:Remove() end m.Value = "Game is Ready!" script.Parent.Lift.CFrame = CFrame.new(-417, 242.8, 118) end end end |
|
|
| Report Abuse |
|
|
willz217
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 1396 |
|
| |
|
willz217
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 1396 |
|
| |
|
| |
|
janlari
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 311 |
|
|
| 05 Apr 2013 10:15 AM |
It doesn't show any... But that's what happens..
I need a script to check on the player if he's still alive. If he's dead the Ingame value will return to 0. But that is if the person is only alone in the lift. But if there's like 5 people in it and someone resets it will only decrease 1.
HOPE YOU REPLY BACK. |
|
|
| Report Abuse |
|
|
willz217
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 1396 |
|
| |
|