|
| 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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|