LateGrayJoin Date: 2015-05-17 Post Count: 503 |
So lets say when someone hits a brick and it plays an audio BUT.. it repeats and stutters
for example someone says "Hello" its gonna sound like h-h-hello. Any help?
|
|
LateGrayJoin Date: 2015-05-17 Post Count: 503 |
Bump, greatly appreciated if replied
|
|
LateGrayJoin Date: 2015-05-17 Post Count: 503 |
b
|
|
iZugJoin Date: 2012-03-22 Post Count: 2417 |
in the script, make sure debouce=true (only can be activated after it has finished being activated.
the reason it stutters is because it keeps activating and overlapping.
I BUILD FOR SUPER CHEAP PM ME! |
|
LateGrayJoin Date: 2015-05-17 Post Count: 503 |
Im giving you the script to look at it, It might not even have the debound option on Im not that much of a scritper a friend made this. Its an npc that comes out at you and plays a audio with a light
function onTocuhed()
script.Parent.Sound:Play()
script.Parent.Parent.Test.Humanoid.WalkToPoint = script.Parent.Parent.PointB.Position
script.Parent.Parent.Light.SpotLight.Enabled = true
wait (1.0)
script.Parent.Parent.Test.Humanoid.WalkToPoint = script.Parent.Parent.PointA.Position
script.Parent.Parent.Light.SpotLight.Enabled = false
end
|
|
LateGrayJoin Date: 2015-05-17 Post Count: 503 |
b
|
|
LateGrayJoin Date: 2015-05-17 Post Count: 503 |
b
|
|
iZugJoin Date: 2012-03-22 Post Count: 2417 |
the first line of the script, make it say
debouce = true
that should fix it... dont alter your script at all except for at the very top, add the line above.
I BUILD FOR SUPER CHEAP PM ME! |
|
LateGrayJoin Date: 2015-05-17 Post Count: 503 |
ks
|
|
ElynuJoin Date: 2012-12-23 Post Count: 794 |
CanPlay = true
function onTocuhed()
if CanPlay == true then
CanPlay = false
script.Parent.Sound:Play()
script.Parent.Parent.Test.Humanoid.WalkToPoint = script.Parent.Parent.PointB.Position
--script.Parent.Parent.Light.SpotLight.Enabled = true
wait (1.0)
script.Parent.Parent.Test.Humanoid.WalkToPoint = script.Parent.Parent.PointA.Position
script.Parent.Parent.Light.SpotLight.Enabled = false
end
end
script.Parent.Touched:connect(onTocuhed) |
|
LateGrayJoin Date: 2015-05-17 Post Count: 503 |
Does work but it only works once in a server, multiple people are expected to go through these npcs
|
|
|
|
LateGrayJoin Date: 2015-05-17 Post Count: 503 |
bump, thanks to those who are helping
|
|
LateGrayJoin Date: 2015-05-17 Post Count: 503 |
b
|
|