vacharya
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 511 |
|
|
| 14 Dec 2014 09:53 PM |
I'm pretty sure its a debounce problem because everything the wiki says SHOULD NOT happed, HAPPENS... but I just cant figure out where the problem is.. If anyone could help me out, I'd appreciate it, a LOT! Just keeps happening instead of just once. adds the #'s of wins 7 times and prints several times as well
local finish = game.Workspace.Finish.Finish finish.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local plr=game.Players:GetPlayerFromCharacter(hit.Parent) local deb = plr.leaderstats.Wins.Finished.Value -- A bool value local wins = plr.leaderstats.Wins.Value print("Reach1") if plr and position.Value == 3 and not deb then plr.Character.Torso.CFrame = CFrame.new(game.Workspace.Part1.Position + Vector3.new(0,3.4,0)) position.Value = 2 print(plr.Name.. "has been teleported as first") plr.leaderstats.Wins.Value = plr.leaderstats.Wins.Value + 1 local deb = true elseif plr and position.Value == 2 and not deb then plr.Character.Torso.CFrame = CFrame.new(game.Workspace.Part1.Position + Vector3.new(0,3.4,0)) position.Value = 1 print(plr.Name.. "has been teleported as second ") wins = plr.leaderstats.Wins.Value + 1 local deb = true elseif plr and position.Value == 1 and not deb then plr.Character.Torso.CFrame = CFrame.new(game.Workspace.Part1.Position + Vector3.new(0,3.4,0)) position.Value = 0 print(plr.Name.. "has been teleported as third ") wins = plr.leaderstats.Wins.Value + 1 wait(1) local deb = true end end)
Thanks in advance! -vach
|
|
|
| Report Abuse |
|
|
vacharya
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 511 |
|
|
| 14 Dec 2014 10:10 PM |
Oh and position.Value = 3 or 2 or 1 . Depending on the map |
|
|
| Report Abuse |
|
|
vacharya
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 511 |
|
| |
|
royaltoe
|
  |
| Joined: 14 Sep 2011 |
| Total Posts: 36834 |
|
|
| 14 Dec 2014 11:07 PM |
| You just posted this thread, and it's late. There's no reason to bump this and it won't move down so quickly. |
|
|
| Report Abuse |
|
|
FauxHawke
|
  |
| Joined: 08 Jun 2012 |
| Total Posts: 2190 |
|
|
| 15 Dec 2014 05:35 PM |
you never defined 'position' Never trust atoms, they make up everything.™ |
|
|
| Report Abuse |
|
|
vacharya
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 511 |
|
|
| 15 Dec 2014 05:36 PM |
I did see 2 posts up :P but the problem is whatever the wiki says should'nt happen does happen |
|
|
| Report Abuse |
|
|
zhebott
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 1 |
|
|
| 15 Dec 2014 05:55 PM |
| Where's the last reply??? Roblox forums.. |
|
|
| Report Abuse |
|
|