Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

If you mash the z button then the players controls inverse why?

Asked by 9 years ago
bin = script.Parent 
player = script.Parent.Parent.Parent
me = script.Parent.Parent.Parent

enabled = true

function Talk(msg)
game:GetService("Chat"):Chat(player.Character.Head, msg, Enum.ChatColor.Red)
end

function onKeyDown(key) 
key:lower() 
if key == "z" then 

if not enabled then
        return
    end

    local player = game.Players.LocalPlayer
    if player == nil then return end

    enabled = false
    RightShoulder = me.Character.Torso["Right Shoulder"]
        LeftShoulder = me.Character.Torso["Left Shoulder"]
        Run = game:GetService("RunService")

                LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -0.5)
                LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -0, 0)
                Run.Stepped:wait(0)

me.Character.Humanoid.WalkSpeed = me.Character.Humanoid.WalkSpeed + 20
        Talk("Fire Dragon's Iron Fist!")
        player.Character.Torso.Anchored = true
    MagicSym = Instance.new("Part")
    MagicSym.Parent = me.Character
    MagicSym.Anchored = true
    MagicSym.CanCollide = false
    MagicSym.formFactor = "Symmetric"
    MagicSym.BrickColor = BrickColor.new("Really red")
    MagicSym.Transparency = 1
    MagicSym.Name = "MagicSym"
    MagicSym.Size = Vector3.new(10, 1, 10)
    MagicSym.TopSurface = "Smooth"
    MagicSym.BottomSurface = "Smooth"
    MagicSym.CFrame = me.Character.Torso.CFrame*CFrame.new(0, -3, 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=214848407"
p = Instance.new("Decal")
p.Name = "Circle"
p.Parent = MagicSym
p.Face = "Bottom"
p.Texture = "http://www.roblox.com/asset/?id=214848407"
l = Instance.new("PointLight", MagicSym)
l.Brightness = 10
l.Range = 10
l.Color = Color3.new(255, 255, 255)

wait(1)
player.Character.Torso.Anchored = false
MagicSym:Remove()

wait()

Hair2 = Instance.new("Part")
Hair2.Parent = me.Character
Hair2.CanCollide = false
Hair2.Locked = true
Hair2.TopSurface = "Smooth"
Hair2.BottomSurface = "Smooth"
Hair2.formFactor = "Symmetric"
Hair2.BrickColor = BrickColor.new("Bright orange")
Hair2.CFrame = me.Character.Torso.CFrame
Hair2.Transparency = 1
f = Instance.new("Fire", Hair2)
f.Size = 20
Hair2.Size = Vector3.new(1, 1, 1)
Weld = Instance.new("Weld")
Weld.Parent = me.Character["Left Arm"]
Weld.Part0 = me.Character["Left Arm"]
Weld.Part1 = Hair2
Weld.C0 = CFrame.new(0, -1.5, 0)
HURR = Instance.new("SpecialMesh")
HURR.Parent = Hair2
HURR.MeshType = "Sphere"
HURR.Scale = Vector3.new(0, 0, 0)

for i = 1, 20 do
    wait(0)
    HURR.Scale =  HURR.Scale +Vector3.new(1, 1, 1)
    end
        fd = script.Firedamage:clone()
        fd.Parent = Hair2
        fd.Disabled = false
        game.Debris:AddItem(x, 6)
        wait()
        for i = 1, 40 do
    wait(0)
    HURR.Scale =  HURR.Scale -Vector3.new(0.07, 0.07, 0.07)
    end
        me.Character.Humanoid.WalkSpeed = me.Character.Humanoid.WalkSpeed - 50
Hair2:remove()
        for i = 1, 3 do
            LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
            LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0.5)
            Run.Stepped:wait(0)
        end

enabled = false
end

wait(10)
enabled = true
end
function onSelected(mouse) 
mouse.KeyDown:connect(onKeyDown) 
end 

script.Parent.Selected:connect(onSelected)

Answer this question