generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

I need help urgent!

Previous Thread :: Next Thread 
willz217 is not online. 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 is not online. willz217
Joined: 09 Dec 2008
Total Posts: 1396
05 Apr 2013 09:22 AM
Help ?
Report Abuse
willz217 is not online. willz217
Joined: 09 Dec 2008
Total Posts: 1396
05 Apr 2013 09:41 AM
Bump
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
05 Apr 2013 10:02 AM
What's your output?
Report Abuse
janlari is not online. 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 is not online. willz217
Joined: 09 Dec 2008
Total Posts: 1396
05 Apr 2013 10:28 AM
That's me by the way! ^
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image