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
 

debounce

Previous Thread :: Next Thread 
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
21 Apr 2012 12:06 PM
thiese scripts always brake when i add debouncy why? theres no output when they brake they just wont work right.

function turtle(key, mouse)



if key == "b" then
l1 = Instance.new("Part") -- LightningBlade
explosion = Instance.new("Part") -- makes a explosion at the begining of the run
mesh = Instance.new("SpecialMesh")
mesh.Parent = explosion
mesh.Scale = Vector3.new(7,7,7)
mesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
mesh.TextureId = "http://www.roblox.com/asset/?id=13121317"
explosion.Anchored = true
explosion.CanCollide = false
explosion.Parent = game.Workspace
l1.Size = Vector3.new(2,2,2)
l1.Shape = 0
l1.Transparency = 0.3
l1.BrickColor = BrickColor.new("Bright bluish green")
l1.Parent = game.Workspace
hum = script.Parent.Parent.Parent.Character
l1.Position = Vector3.new(hum.Head.Position)
non = script.Parent.Parent.Parent
sep = non.PlayerGui.ChakraGui.Chakra.Value
sep.Value = sep.Value -350
weld = Instance.new("Weld")
weld.Part0 = l1
weld.Part1 = hum:findFirstChild("Right Arm")
weld.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -1.5, 0)
weld.Parent = l1
hum.Humanoid.WalkSpeed = 90
l1.Anchored = false
explosion.CFrame = CFrame.new(hum:findFirstChild("Right Leg").Position)
ex1 = script.Parent.Explosion1Effects:Clone()
ex2 = script.Parent.Explosion2Effects:Clone()
ex3 = script.Parent.Explosion3Effects:Clone()
exD = script.Parent.ExplosionDammageEffects:Clone()
ex1.Parent = explosion
ex1.Disabled = false
ex3.Parent = explosion
ex3.Disabled = false
ex2.Parent = explosion
ex2.Disabled = false
exD.Parent = explosion
c = mouse.Hit.p
r1 = hum.Torso:findFirstChild("Right Shoulder")
r1.MaxVelocity = 0
hum.Humanoid.WalkSpeed = 150
hum.Humanoid:MoveTo(c, game.Workspace.Base)
r1.CurrentAngle = 8
r1.DesiredAngle = 8
l = script.Parent.LightningBladeEffects:Clone()
l.Parent = l1
l.Disabled = false
exD.Disabled = false
wait(6)
hum.Humanoid.WalkSpeed = 90
l1:Destroy()
explosion:Destroy()
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
wait(10)
mouse.Icon = ""
end
end

script.Parent.Selected:connect(function(mouse)
mouse.KeyDown:connect(function(key)
turtle(key, mouse)
end)
end)



--------------------------------------------------------



function stuuf(key, mouse)
if key == "c" then
f = script.Parent.fireballeffects:Clone()
ball = Instance.new("Part")
ball.Shape = 0
ball.Size = Vector3.new(5,5,5)
ball.BrickColor = BrickColor.new("Bright red")
ball.Parent = game.Workspace
ball.Anchored = true
power = Instance.new("BodyForce")
power.force = Vector3.new(0, ball:GetMass() * 196.1, 0.0)
power.Parent = ball
f.Parent = ball
char = script.Parent.Parent.Parent.Character
ball.Position = (char:findFirstChild("Torso").Position + Vector3.new(0.5,0,0))
ball.CanCollide = true
ball.Velocity=char.Torso.CFrame.lookVector*20
ball.Anchored = false
f.Disabled = false
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
wait(6)
mouse.Icon = ""
end
end

script.Parent.Selected:connect(function(mouse)
mouse.KeyDown:connect(function(key)
stuuf(key, mouse)
end)
end)



----------------------------------------------------------------



function google(key, mouse)


if key == "j" then
hum = script.Parent.Parent.Parent.Character
s = game.Lighting:findFirstChild("Mongekyo Sharingan"):Clone()
chakra = script.Parent.Parent.Parent.PlayerGui.ChakraGui.Chakra.Value
chakra = 0
s.Parent = game.Workspace
s:MoveTo(hum.Torso.Position + Vector3.new(5,0,0))
hum.Humanoid.WalkSpeed = 0
hum.Torso.Anchored = true
blarg = s.SpawnForJutsu.Position
hum.Torso.CFrame = CFrame.new(blarg)
torso = hum.Torso
r1 = torso:findFirstChild("Right Shoulder")
r2 = torso:findFirstChild("Left Shoulder")
wait(2)
r1.MaxVelocity = 0
r2.MaxVelocity = 0
r1.DesiredAngle = -8
r1.CurrentAngle = -8
r2.DesiredAngle = -8
r2.CurrentAngle = -8
hum.Humanoid.WalkSpeed = 60
hum.Torso.Anchored = false
hum.Humanoid.Health = 35
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
wait(15)
s:Destroy()
mouse.Icon = ""
end
end

script.Parent.Selected:connect(function(mouse)
mouse.KeyDown:connect(function(key)
google(key, mouse)
end)
end)




they all glitch when i add debounce to them can someone help me fix this problem
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