-- Script no workspace
local flash
local db = true
local Humanoid
local velocidadeflash = 50 -- velocidade de quem ativou
local porcentagem = 90 -- porcentagem de redução de velocidade
local duracao = 10 -- duração do poder
script.Slow.OnServerEvent:Connect(function(p)
flash = p
if db then
Humanoid = workspace:GetDescendants()
db = false
for i,v in pairs(Humanoid)do
print(v.Parent)
print(p.Character)
if v.ClassName == "Humanoid" then
print(v.Parent)
v.WalkSpeed = v.WalkSpeed - v.WalkSpeed * porcentagem / 100
v.JumpPower = v.JumpPower - v.JumpPower * porcentagem / 100
p.Character.Humanoid.WalkSpeed = velocidadeflash
elseif v.ClassName == "BodyVelocity" then
v.Velocity = v.Velocity / 100
end
end
workspace.Terrain.WaterWaveSpeed = 0.5
workspace.Gravity = 3
wait(duracao)
db = true
voltar()
end
end)
function voltar()
for i,v in pairs(Humanoid)do
print(v.Parent)
if v.ClassName == "Humanoid" then
v.WalkSpeed = v.WalkSpeed + v.WalkSpeed * porcentagem * 10 / 100
v.JumpPower = v.JumpPower + v.JumpPower * porcentagem * 10 / 100
flash.Character.Humanoid.WalkSpeed = velocidadeflash
elseif v.ClassName == "BodyVelocity" then
v.Velocity = v.Velocity * 100
end
end
game.Workspace.Terrain.WaterWaveSpeed = 3
game.Workspace.Gravity = 196.2
end
-- Script no Starter Character Scripts
tecla = game:GetService("UserInputService")
tecla.InputBegan:connect(function(tecla)
if tecla.KeyCode == Enum.KeyCode.F then
workspace.SlowMotion.Slow:FireServer()
end
end)
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}