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
- 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 = 50
- hum.MaxHealth = 9999999999999999
- hum.Health = 9999999999999999
- end
- 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)
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local rootj = char.HumanoidRootPart.RootJoint
- local throwbutton = false
- local throw = false
- local normalanim = true
- local attackd = false
- local animpose = "Idle"
- local timepos = 0
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local rootjnor = rootj.C0
- ---------------------------------
- -------------Attacks-------------
- ---------------------------------
- remote.OnServerEvent:Connect(function(Player, number, key)
- if number == 1 and plr.Name == Player.Name then
- if key == Enum.KeyCode.Z then
- attackd = true
- local bpart = Instance.new("Part", workspace)
- bpart.Size = Vector3.new(1, 1, 1)
- bpart.Locked = true
- bpart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2)
- bpart.Velocity = Vector3.new(0, 1, 0)
- local update = 0.4
- while update > 0.1 do
- update = update * 0.9
- end
- for i = 1, 50 do
- local banpart = Instance.new("Part", workspace)
- banpart.Size = Vector3.new(1, 1, 1)
- banpart.CanCollide = true
- banpart.CFrame = bpart.CFrame
- local bCFrame = CFrame.new(0, 0, 0)
- local bVel = Vector3.new(0, 0, 0)
- banpart.Size = Vector3.new(1, 1, 1)
- local weld = Instance.new("Weld", banpart)
- weld.Part0 = bpart
- weld.Part1 = banpart
- spawn(function()
- wait(1)
- banpart.Touched:Connect(function(hit)
- if hit.Parent and game:GetService("Players"):FindFirstChild(hit.Parent.Name) then
- local character = hit.Parent
- character:FindFirstChildOfClass("Humanoid").Jump = true
- end
- end)
- end)
- spawn(function()
- while wait() do
- if banpart.Parent ~= workspace then
- banpart = Instance.new("Part", workspace)
- banpart.Size = Vector3.new(1, 1, 1)
- banpart.CanCollide = true
- banpart.Size = Vector3.new(1, 1, 1)
- banpart.CFrame = bCFrame
- banpart.Velocity = bVel
- banpart.Touched:Connect(function(hit)
- if hit.Parent and game:GetService("Players"):FindFirstChild(hit.Parent.Name) then
- local character = hit.Parent
- character:FindFirstChildOfClass("Humanoid").Jump = true
- end
- end)
- else
- bCFrame = banpart.CFrame
- bVel = banpart.Velocity
- end
- end
- end)
- end
- char.Torso.Transparency = 1
- char.Torso.CFrame = char.Torso.CFrame + Vector3.new(0,30,0)
- local explosion = Instance.new("Explosion", bpart)
- explosion.Position = bpart.Position
- explosion.DestroyJointRadiusPercent = 20
- bpart.CanCollide = false
- attackd = false
- end
- elseif Player.Name == owner.Name then
- end
- end)
- while true do
- wait()
- 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
- end
Add Comment
Please, Sign In to add comment