Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = owner
- local char = plr.Character
- local h = char.Head
- local m = Instance.new("Part",char)
- m.Size = Vector3.new(1, 0.8, 1)
- m.BrickColor = BrickColor.new("New Yeller")
- m.Name = "Mask"
- local me = Instance.new("FileMesh",m)
- me.MeshId = "http://www.roblox.com/asset/?id=1286427"
- me.Scale = Vector3.new(1.1,1.1,1.1)
- local w = Instance.new("Weld",char)
- w.Part0 = m
- w.Part1 = h
- w.C1 = CFrame.new(-0.000106811523, 0.137756348, 0.000198364258, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local ha = Instance.new("Part",char)
- ha.Name = "flamethrower"
- ha.Size = Vector3.new(1, 1, 4)
- ha.CanCollide = false
- local me = Instance.new("FileMesh",ha)
- me.MeshId = "http://www.roblox.com/asset/?id=33798955"
- me.TextureId = "http://www.roblox.com/asset/?id=34418735"
- me.Scale = Vector3.new(1.3, 1.3, 1.5)
- local w = Instance.new("Weld",char)
- w.Part0 = char["Right Arm"]
- w.Part1 = ha
- w.C1 = CFrame.new(0.00103759766, -1.90734863e-06, 3, 0.999999046, 0.00103592873, 0.00103649544, 0.0010352243, 4.52942913e-07, -0.999991477, -0.00103580952, 0.999991119, -4.53524081e-07)
- local pe = Instance.new("ParticleEmitter", ha)
- pe.Size = NumberSequence.new(0.2)
- pe.EmissionDirection = "Front"
- pe.Lifetime = NumberRange.new(0.5)
- pe.Rate = 100
- pe.Speed = NumberRange.new(10)
- pe.Texture = "rbxassetid://4723996"
- pe.Enabled = false
- Tool = char.Torso;
- local arms = nil
- local torso = nil
- local welds = {}
- arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
- torso = Tool.Parent:FindFirstChild("Torso")
- if arms ~= nil and torso ~= nil then
- local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
- if sh ~= nil then
- local yes = true
- if yes then
- yes = false
- sh[1].Part1 = nil
- sh[2].Part1 = nil
- local weld1 = Instance.new("Weld")
- weld1.Part0 = torso
- weld1.Parent = torso
- weld1.Part1 = arms[1]
- weld1.C1 = CFrame.new(-0.249, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
- welds[1] = weld1
- local weld2 = Instance.new("Weld")
- weld2.Part0 = torso
- weld2.Parent = torso
- weld2.Part1 = arms[2]
- weld2.C1 = CFrame.new(-1, -0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
- welds[2] = weld2
- end
- else
- print("sh")
- end
- else
- print("arms")
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Hat" or v.ClassName == "Accessory" or v.ClassName == "Pants" or v.ClassName == "Shirt" or v.ClassName == "CharacterMesh" then
- v:Destroy()
- end
- end
- local fl = false
- local col = char["Body Colors"]
- col.TorsoColor = BrickColor.new("New Yeller")
- col.RightLegColor = BrickColor.new("New Yeller")
- col.LeftLegColor = BrickColor.new("New Yeller")
- char.Head.face.Texture = "rbxassetid://255828374"
- ha.Touched:Connect(function(hit)
- if hit.Parent then
- if fl == true then
- local character = hit.Parent
- if not(character == char and hit.Parent == workspace) then
- if not(hit.Name == "Base" or hit.Name == "Baseplate") then
- for i,hit in pairs(character:GetChildren()) do
- if hit.ClassName == "Part" or hit.ClassName == "MeshPart" then
- if not(hit.Parent == workspace) then
- hit.Anchored = true
- hit.BrickColor = BrickColor.new("Really black")
- hit.CanCollide = true
- hit.Parent = workspace
- hit:MakeJoints()
- wait(0.1)
- hit.Anchored = false
- end
- end
- end
- end
- end
- end
- end
- end)
- local plr = owner
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- hum.WalkSpeed = 20
- local remote = Instance.new("RemoteEvent", char)
- remote.Name = "ReplicationEvent"
- local client = NLS([==[
- local mouse = game:GetService("Players").LocalPlayer:GetMouse()
- local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
- spawn(function()
- while game:GetService("RunService").Heartbeat:Wait() do
- remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
- end
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
- if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
- remote:FireServer(1, input.KeyCode)
- end
- end)
- mouse.Button1Down:Connect(function()
- remote:FireServer(2)
- end)
- remote.OnClientEvent:Connect(function()
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z))
- end)
- ]==], char)
- ---------------------------------
- -------------Attacks-------------
- ---------------------------------
- remote.OnServerEvent:Connect(function(Player, number, key)
- if number == 1 and plr.Name == Player.Name then
- if key == Enum.KeyCode.Q then
- fl = fasle
- pe.Enabled = false
- end
- if key == Enum.KeyCode.E then
- fl = true
- pe.Enabled = true
- end
- end
- end)
- ---------------------------------
- -----------Wrapping up-----------
- ---------------------------------
- while game:GetService("RunService").Heartbeat:Wait() do
- hum.Health = 9999999999999999
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- v.Anchored = false
- end
- end
- remote:FireClient(plr)
- if remote.Parent == char then
- remote.Name = "ReplicationEvent"
- else
- remote = Instance.new("RemoteEvent", char)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement