Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local char = owner.Character
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Hat" or v.ClassName == "Accessory" or v.ClassName == "ShirtGraphic" then
- v:Destroy()
- end
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- if not(v.Name == "Torso") then
- v.Transparency = 1
- end
- end
- end
- for i,v in pairs(char.Head:GetChildren()) do
- if v.ClassName == "Decal" then
- v.Transparency = 1
- end
- end
- local p = Instance.new("Part",char)
- p.Size = Vector3.new(5.5, 2.5, 2.7)
- p.Massless = true
- local w = Instance.new("Weld",p)
- w.Part0 = char.Torso
- w.Part1 = p
- w.C0 = CFrame.new(0, -0.599999905, -5.80000305, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- function onTouched(fire)
- if not(fire.Parent == char) then
- if not(fire.Name == "Torso" or fire.Name == "HumanoidRootPart" or fire.Name == "UpperTorso" or fire.Name == "LowerTorso" or fire.Name == "Head") then
- local hum = fire.Parent:FindFirstChildOfClass("Humanoid")
- if hum then
- hum.WalkSpeed = hum.WalkSpeed - 1
- end
- fire.Parent = game.Workspace
- fire.CanCollide = true
- fire.Anchored = false
- fire:BreakJoints()
- end
- end
- end
- p.Touched:connect(onTouched)
- if char:FindFirstChild("Animate") then
- char.Animate:Destroy()
- end
- wait(0.1)
- local hum = char:FindFirstChildOfClass("Humanoid")
- local idleanim = Instance.new("Animation")
- idleanim.Name = "Roblox Idle Animation"
- idleanim.AnimationId = "http://www.roblox.com/asset/?id=182435998"
- local idleanimplay = hum:LoadAnimation(idleanim)
- idleanimplay:Play()
- if hum then
- hum.Name = "CAR"
- hum.WalkSpeed = 40
- hum.MaxHealth = 9999999999999999
- hum.Health = 9999999999999999
- end
- local mus = Instance.new("Sound",char)
- mus.Playing = true
- mus.SoundId = "rbxassetid://279207008"
- mus.Volume = 1
- mus.Looped = true
- local timepos = nil
- local m = Instance.new("SpecialMesh",char.Torso)
- m.Scale = Vector3.new(0.005, 0.005, 0.005)
- m.Offset = Vector3.new(0, -0.7, 0)
- m.MeshId = "rbxassetid://453074009"
- m.TextureId = "rbxassetid://453073781"
- local plr = owner
- 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.Z then
- --1
- hum.WalkSpeed = 40
- m.Scale = Vector3.new(0.005, 0.005, 0.005)
- m.Offset = Vector3.new(0, -0.7, 0)
- m.MeshId = "rbxassetid://453074009"
- m.TextureId = "rbxassetid://453073781"
- end
- if key == Enum.KeyCode.X then
- --2
- hum.WalkSpeed = 100
- m.Scale = Vector3.new(5, 5, 5)
- m.Offset = Vector3.new(0, -0.7, 0)
- m.MeshId = "rbxassetid://693526472"
- m.TextureId = "rbxassetid://693526518"
- end
- if key == Enum.KeyCode.C then
- --3
- hum.WalkSpeed = 150
- m.Scale = Vector3.new(0.5, 0.5, 0.5)
- m.Offset = Vector3.new(0, -0.7, 0)
- m.MeshId = "rbxassetid://633543481"
- m.TextureId = "rbxassetid://633543563"
- end
- elseif Player.Name == owner.Name then
- end
- end)
- while true do
- wait()
- hum.Health = 9999999999999999
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Hat" or v.ClassName == "Accessory" then
- v:Destroy()
- end
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- if not(v.Name == "Torso") then
- v.Transparency = 1
- end
- end
- end
- if mus.Parent == char then
- mus.SoundId = "rbxassetid://279207008"
- mus.Playing = true
- mus.Volume = 1
- mus.Looped = true
- timepos = mus.TimePosition
- else
- mus = Instance.new("Sound", char)
- mus.TimePosition = timepos
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement