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
 

Re: Vote System [ Help ]

Previous Thread :: Next Thread 
temprezors is not online. temprezors
Joined: 11 Sep 2013
Total Posts: 226
09 Jun 2014 04:25 AM
trying to make a vote system like this :

repeat wait() until game.Workspace.Allow_Vote.Value == true -- this to make the player only vote when the vote time start

function OnStep(player) -- player is the player who steps ? right ?
if player~= nil then -- if he exist
if player:FindFirstChild("Humanoid")~= nil then if he has Humanoid
game.Workspace.Votes1.Value = game.Workspace.Votes1.Value + 1 -- increse value
end
end
end
script.Parent.Touched:connect(OnStep)

NOTHING Happend tested and the value still 0 i am trying to make that if the player step on the part the value will increase but i failed Help.
Report Abuse
temprezors is not online. temprezors
Joined: 11 Sep 2013
Total Posts: 226
09 Jun 2014 04:34 AM
Here is my new script worked but need another thing also Big BUMP !! :

repeat wait() until game.Workspace.Allow_Vote.Value == true

function OnStep(player)
player = player.Parent:FindFirstChild("Humanoid")
if player~= nil then
game.Workspace.Votes3.Value = game.Workspace.Votes3.Value + 1
wait(2)
end
end
script.Parent.Touched:connect(OnStep)

How can i make the player vote only for 1 time ??????
Report Abuse
temprezors is not online. temprezors
Joined: 11 Sep 2013
Total Posts: 226
09 Jun 2014 04:47 AM
+2 BUMP !!
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
09 Jun 2014 05:18 AM
repeat wait() until game.Workspace.Allow_Vote.Value == true
voted=false

function OnStep(player)
player = player.Parent:FindFirstChild("Humanoid")
if player~= nil and voted==false then
voted=true
game.Workspace.Votes3.Value = game.Workspace.Votes3.Value + 1
wait(2)
end
end
script.Parent.Touched:connect(OnStep)
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