Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Transform = Instance.new("ParticleEmitter")
- local Transform2 = Instance.new("ParticleEmitter")
- local Particle = Instance.new("ParticleEmitter")
- local ParticleCharge = Instance.new("ParticleEmitter")
- local mouse3 = game.Players.LocalPlayer:GetMouse()
- mouse3.KeyDown:connect(function(key3)
- for _,v in pairs(game.Players:GetChildren()) do
- if key3:lower() == "c" then
- Transform.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- Transform.Texture = "http://www.roblox.com/asset/?id=341277531"
- Transform.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255, 0, 0))
- Transform.LockedToPart = true
- Transform.LightEmission = 0
- Transform.Lifetime = NumberRange.new(5)
- Transform.Size = NumberSequence.new(5)
- Transform.Speed = NumberRange.new(100)
- Transform.Rate = 1000000000000000000000000000000000
- Transform.Transparency = NumberSequence.new(0)
- wait(4)
- Transform2.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- Transform2.Texture = "http://www.roblox.com/asset/?id=241650934"
- Transform2.Color = ColorSequence.new(Color3.new(225, 2, 0), Color3.new(225, 0, 0))
- Transform2.Lifetime = NumberRange.new(2)
- Transform2.Speed = NumberRange.new(20)
- Transform2.VelocitySpread = 1000
- Transform2.Rate = 1000000000000000000000000000000000
- wait(3)
- Transform.Enabled = false
- wait(3)
- Transform2.Enabled = false
- wait(2)
- game.Players.LocalPlayer.Character["Body Colors"].HeadColor = BrickColor.new("Black")
- game.Players.LocalPlayer.Character["Body Colors"].LeftArmColor = BrickColor.new("Black")
- game.Players.LocalPlayer.Character["Body Colors"].LeftLegColor = BrickColor.new("Black")
- game.Players.LocalPlayer.Character["Body Colors"].RightArmColor = BrickColor.new("Black")
- game.Players.LocalPlayer.Character["Body Colors"].RightLegColor = BrickColor.new("Black")
- game.Players.LocalPlayer.Character["Body Colors"].TorsoColor = BrickColor.new("Black")
- Particle.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- Particle.Texture = "rbxassetid://438134150"
- Particle.Color = ColorSequence.new(Color3.new(220, 0, 0), Color3.new(0, 0, 0))
- Particle.LockedToPart = true
- Particle.Lifetime = NumberRange.new(0.5)
- Particle.Size = NumberSequence.new(3)
- Particle.Speed = NumberRange.new(3)
- Particle.Rate = 175
- Particle.Transparency = NumberSequence.new(0.2)
- shirttextureid = 179217405 -- Change number to shirt id
- pantstextureid = 179217405 -- Change number to pants id
- hairtextureid = 376806769 -- Change number to hair id
- for i, v in pairs(game.Players:GetChildren()) do
- if v.Character:FindFirstChild("Shirt") ~= nil then
- v.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="..shirttextureid
- elseif v.Character.Shirt == nil then
- shirtclothing = Instance.new("Shirt", v.Character)
- shirtclothing.Name = "Shirt"
- v.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="..shirttextureid
- end
- wait(1)
- if v.Character:FindFirstChild("Pants") ~= nil then
- v.Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id="..pantstextureid
- elseif v.Character.Pants == nil then
- pantsclothing = Instance.new("Pants", v.Character)
- pantsclothing.Name = "Pants"
- v.Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id="..pantstextureid
- end
- end
- local mouse2 = game.Players.LocalPlayer:GetMouse()
- mouse2.KeyDown:connect(function (key2)
- for i, v in pairs(game.Players:GetChildren()) do
- if(key2:byte() == 48) then
- ParticleCharge.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- ParticleCharge.Texture = "http://www.roblox.com/asset/?id=250186345"
- ParticleCharge.Color = ColorSequence.new(Color3.new(220, 0, 0), Color3.new(0, 0, 0))
- ParticleCharge.LockedToPart = true
- ParticleCharge.LightEmission = 0.05
- ParticleCharge.Lifetime = NumberRange.new(0.4)
- ParticleCharge.Size = NumberSequence.new(6)
- ParticleCharge.Speed = NumberRange.new(8)
- ParticleCharge.Rate = 60
- ParticleCharge.Transparency = NumberSequence.new(0.5)
- ParticleCharge.Enabled = true
- Particle.Enabled = false
- end
- mouse2.KeyUp:connect(function (key2)
- if(key2:byte() == 48) then
- ParticleCharge.Enabled = false
- Particle.Enabled = true
- end
- end)
- end
- end)
- repeat wait()
- until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("HumanoidRootPart") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
- local mouse = game.Players.LocalPlayer:GetMouse()
- repeat wait() until mouse
- local plr = game.Players.LocalPlayer
- local torso = plr.Character.HumanoidRootPart
- local flying = true
- local deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 50
- local speed = 0
- function Fly()
- local bg = Instance.new("BodyGyro", torso)
- bg.P = 9e4
- bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- bg.cframe = torso.CFrame
- local bv = Instance.new("BodyVelocity", torso)
- bv.velocity = Vector3.new(0,0.1,0)
- bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
- repeat wait()
- plr.Character.Humanoid.PlatformStand = true
- if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
- speed = speed+.5+(speed/maxspeed)
- if speed > maxspeed then
- speed = maxspeed
- end
- elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
- speed = speed-1
- if speed < 0 then
- speed = 0
- end
- end
- if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
- elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- else
- bv.velocity = Vector3.new(0,0.1,0)
- end
- bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
- until not flying
- ctrl = {f = 0, b = 0, l = 0, r = 0}
- lastctrl = {f = 0, b = 0, l = 0, r = 0}
- speed = 0
- bg:Destroy()
- bv:Destroy()
- plr.Character.Humanoid.PlatformStand = false
- end
- mouse.KeyDown:connect(function(key)
- if key:lower() == "q" then
- if flying then flying = false
- else
- flying = true
- Fly()
- end
- elseif key:lower() == "w" then
- ctrl.f = 1
- elseif key:lower() == "s" then
- ctrl.b = -1
- elseif key:lower() == "a" then
- ctrl.l = -1
- elseif key:lower() == "d" then
- ctrl.r = 1
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:lower() == "w" then
- ctrl.f = 0
- elseif key:lower() == "s" then
- ctrl.b = 0
- elseif key:lower() == "a" then
- ctrl.l = 0
- elseif key:lower() == "d" then
- ctrl.r = 0
- end
- end)
- Fly()
- end
- end
- end)
- local mouse1 = game.Players.LocalPlayer:GetMouse()
- mouse1.KeyDown:connect(function(key1)
- for _,v in pairs(game.Players:GetChildren()) do
- if key1:lower() == "x" then
- ParticleCharge.Enabled = false
- Particle.Enabled = false
- Transform.Enabled = false
- Transform2.Enabled = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement