Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make this script slow down the opposing player that it touches?

wait(0)
bin = script.Parent
Player = script.Parent.Parent.Parent
enabled = true
function onButton1Down(mouse)
if not enabled then
return end
local player = game.Players.LocalPlayer
if player == nil then return end
enabled = false
LeftShoulder = Player.Character.Torso["Left Shoulder"]
RightShoulder = Player.Character.Torso["Right Shoulder"]
Run = game:GetService("RunService")
			for i = 1, 2 do
				LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 1.16)
				LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -1.1, 0)
				Run.Stepped:wait(0.005)
			end
		game:GetService("Chat"):Chat(Player.Character.Head, "White Dragon's Claw!")
		
    MagicSym = Instance.new("Part")
    MagicSym.Parent = Player.Character
    MagicSym.Anchored = true
    MagicSym.CanCollide = false
    MagicSym.formFactor = "Symmetric"
    MagicSym.BrickColor = BrickColor.new("White")
    MagicSym.Transparency = 1
    MagicSym.Name = "MagicSym"
    MagicSym.Size = Vector3.new(10, 1, 10)
    MagicSym.TopSurface = "Smooth"
    MagicSym.BottomSurface = "Smooth"
    MagicSym.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, 0, -5)*CFrame.fromEulerAnglesXYZ(-1.6, 0, 0)
f = Instance.new("Sparkles", MagicSym)
f.Color = Color3.new(255, 255, 255)
d = Instance.new("Decal")
d.Name = "Circle"
d.Parent = MagicSym
d.Face = "Top"
d.Texture = "http://www.roblox.com/asset/?id=156106871"
p = Instance.new("Decal")
p.Name = "Circle"
p.Parent = MagicSym
p.Face = "Bottom"
p.Texture = "http://www.roblox.com/asset/?id=156106871"
l = Instance.new("PointLight", MagicSym)
l.Brightness = 10
l.Range = 10
l.Color = Color3.new(255, 255, 255)

wait(1)
MagicSym:Remove()

wait()
		
		x = Instance.new("Part")
		x.BrickColor = BrickColor.new("White")
		x.Transparency = 0.5
		x.Size = Vector3.new(20, 20, 20)
		x.TopSurface = "Smooth"
		x.BottomSurface = "Smooth"
		x.Shape = "Block"
		x.Name = Player.Name
		x.CanCollide = false
        p = Instance.new("PointLight", x)
        p.Brightness = 10
        p.Range = 30
        p.Color = Color3.new(255, 255, 255)
		z = Instance.new("SpecialMesh", x)
		z.MeshId = "http://www.roblox.com/asset/?id=10681506"
		z.Scale = Vector3.new(-20,20,-20)
		fd = script.Firedamage:clone()
		fd.Parent = x
		y = Instance.new("BodyVelocity")
		y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
		y.velocity = Player.Character.Torso.CFrame.lookVector*200
		x.Parent = Workspace
		y.Parent = x
		x.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, 0, -20)
		fd.Disabled = false
		game.Debris:AddItem(x, 20)
		for i = 1,40 do
			x2 = Instance.new("Part")
			x2.BrickColor = BrickColor.new("Mid gray")
		x2.Transparency = 0.5
		x2.Size = Vector3.new(15, 15, 15)
		x2.TopSurface = "Smooth"
		x2.BottomSurface = "Smooth"
		x2.Shape = "Block"
		x2.CanCollide = false
		x2.Anchored = true
        p = Instance.new("PointLight", x2)
        p.Brightness = 10
        p.Range = 20
        p.Color = Color3.new(255, 255, 255)
		x2.Name = Player.Name
		fd = script.Firedamage:clone()
		fd.Parent = x2
		fd.Disabled = false
		x2.CFrame = x.CFrame * CFrame.Angles(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
		x2.Parent = game.Workspace
		game.Debris:AddItem(x2, 0.2)
		wait()
		end
		x:remove()
		for i = 1, 2 do
			LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 1.1, 0)
			LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -1.16)
			Run.Stepped:wait(0.01)
		end
      wait(4)
 
enabled = true
    end

enabled = true
function onS(mouse) 
mouse.Button1Down:connect(function() onButton1Down(mouse) end) 
end 
bin.Selected:connect(onS)

wait(0)
bin = script.Parent
Player = script.Parent.Parent.Parent
enabled = true
function onButton1Down(mouse)
if not enabled then
return end
local player = game.Players.LocalPlayer
if player == nil then return end
enabled = false
LeftShoulder = Player.Character.Torso["Left Shoulder"]
RightShoulder = Player.Character.Torso["Right Shoulder"]
Run = game:GetService("RunService")
			for i = 1, 2 do
				LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 1.16)
				LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -1.1, 0)
				Run.Stepped:wait(0.005)
			end
		game:GetService("Chat"):Chat(Player.Character.Head, "White Dragon's Claw!")
		
    MagicSym = Instance.new("Part")
    MagicSym.Parent = Player.Character
    MagicSym.Anchored = true
    MagicSym.CanCollide = false
    MagicSym.formFactor = "Symmetric"
    MagicSym.BrickColor = BrickColor.new("White")
    MagicSym.Transparency = 1
    MagicSym.Name = "MagicSym"
    MagicSym.Size = Vector3.new(10, 1, 10)
    MagicSym.TopSurface = "Smooth"
    MagicSym.BottomSurface = "Smooth"
    MagicSym.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, 0, -5)*CFrame.fromEulerAnglesXYZ(-1.6, 0, 0)
f = Instance.new("Sparkles", MagicSym)
f.Color = Color3.new(255, 255, 255)
d = Instance.new("Decal")
d.Name = "Circle"
d.Parent = MagicSym
d.Face = "Top"
d.Texture = "http://www.roblox.com/asset/?id=156106871"
p = Instance.new("Decal")
p.Name = "Circle"
p.Parent = MagicSym
p.Face = "Bottom"
p.Texture = "http://www.roblox.com/asset/?id=156106871"
l = Instance.new("PointLight", MagicSym)
l.Brightness = 10
l.Range = 10
l.Color = Color3.new(255, 255, 255)

wait(1)
MagicSym:Remove()

wait()
		
		x = Instance.new("Part")
		x.BrickColor = BrickColor.new("White")
		x.Transparency = 0.5
		x.Size = Vector3.new(20, 20, 20)
		x.TopSurface = "Smooth"
		x.BottomSurface = "Smooth"
		x.Shape = "Block"
		x.Name = Player.Name
		x.CanCollide = false
        p = Instance.new("PointLight", x)
        p.Brightness = 10
        p.Range = 30
        p.Color = Color3.new(255, 255, 255)
		z = Instance.new("SpecialMesh", x)
		z.MeshId = "http://www.roblox.com/asset/?id=10681506"
		z.Scale = Vector3.new(-20,20,-20)
		fd = script.Firedamage:clone()
		fd.Parent = x
		y = Instance.new("BodyVelocity")
		y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
		y.velocity = Player.Character.Torso.CFrame.lookVector*200
		x.Parent = Workspace
		y.Parent = x
		x.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, 0, -20)
		fd.Disabled = false
		game.Debris:AddItem(x, 20)
		for i = 1,40 do
			x2 = Instance.new("Part")
			x2.BrickColor = BrickColor.new("Mid gray")
		x2.Transparency = 0.5
		x2.Size = Vector3.new(15, 15, 15)
		x2.TopSurface = "Smooth"
		x2.BottomSurface = "Smooth"
		x2.Shape = "Block"
		x2.CanCollide = false
		x2.Anchored = true
        p = Instance.new("PointLight", x2)
        p.Brightness = 10
        p.Range = 20
        p.Color = Color3.new(255, 255, 255)
		x2.Name = Player.Name
		fd = script.Firedamage:clone()
		fd.Parent = x2
		fd.Disabled = false
		x2.CFrame = x.CFrame * CFrame.Angles(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
		x2.Parent = game.Workspace
		game.Debris:AddItem(x2, 0.2)
		wait()
		end
		x:remove()
		for i = 1, 2 do
			LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 1.1, 0)
			LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -1.16)
			Run.Stepped:wait(0.01)
		end
      wait(4)
 
enabled = true
    end

enabled = true
function onS(mouse) 
mouse.Button1Down:connect(function() onButton1Down(mouse) end) 
end 
bin.Selected:connect(onS)

The Final Part was just a speed script I tried, but it wasn't effective.

1 answer

You would simply change the WalkSpeed property of the Humanoid, like so:

Character.Humanoid.WalkSpeed = [Value]

This discussion is preserved as it was. New answers, comments, and votes are closed.