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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Anyone specialized in destroying debounce problems?

Previous Thread :: Next Thread 
vacharya is not online. 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 is not online. 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 is not online. vacharya
Joined: 06 Jan 2011
Total Posts: 511
14 Dec 2014 11:06 PM
bump
Report Abuse
royaltoe is not online. 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 is not online. 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 is not online. 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 is not online. zhebott
Joined: 18 Jun 2014
Total Posts: 1
15 Dec 2014 05:55 PM
Where's the last reply??? Roblox forums..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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