edenDeden
|
  |
| Joined: 29 Jul 2016 |
| Total Posts: 370 |
|
|
| 14 Jan 2017 02:28 PM |
ok so i have this script in starterGui(idk why) its a local script and i have a intvalue in workspace and i have brick called Pick in workspace and in pick i have a surface guiand a textbox named votes. i want to let the player click only once and the map value will go +1 but no mather where i add the wait() it doesnt wait so any help?
local player = game.Players.LocalPlayer local Mouse = player:GetMouse() local map = game.Workspace.Map local votes = game.Workspace.Pick.Gui.Votes
Mouse.Button1Down:connect(function() if Mouse.Target ~= nil and Mouse.Target.Name == 'Pick' then map.Value = map.Value + 1 votes.Text = map.Value end end)
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 14 Jan 2017 02:36 PM |
first of all, if you are piking a map, use a gui interface to show the maps, not bricks. thats just awful
|
|
|
| Report Abuse |
|
|
edenDeden
|
  |
| Joined: 29 Jul 2016 |
| Total Posts: 370 |
|
|
| 14 Jan 2017 02:45 PM |
i just trying to c if i can make the script then ill add all rn i have nothing but the part and a script
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
edenDeden
|
  |
| Joined: 29 Jul 2016 |
| Total Posts: 370 |
|
|
| 14 Jan 2017 03:01 PM |
i need it to wait till the round end so they can click it again
|
|
|
| Report Abuse |
|
|
j1my3p1x
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 978 |
|
| |
|
edenDeden
|
  |
| Joined: 29 Jul 2016 |
| Total Posts: 370 |
|
|
| 14 Jan 2017 03:14 PM |
doesnt help that u say that its wrong -_- any help?
|
|
|
| Report Abuse |
|
|