Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local spicyplayer = owner
- repeat wait()
- spicyplayer.Character:FindFirstChildOfClass("Humanoid").Sit = true
- wait(1)
- until spicyplayer.Character:FindFirstChildOfClass("Humanoid").Sit == true
- spicyplayer.Character:FindFirstChildOfClass("Humanoid").Animator:Destroy()
- repeat wait() until spicyplayer.Character:FindFirstChildOfClass("Humanoid").Sit == false
- local m = Instance.new("Sound", spicyplayer.Character.Head)
- m.Name = "INVISIBLECARBUFF"
- m.SoundId = "rbxassetid://2249103454" --2605084590
- m.Volume = 4
- m.Looped = true
- m:play()
- local hit = Instance.new("Sound", spicyplayer.Character.Head)
- hit.SoundId = 'rbxassetid://1897654568'
- hit.Volume = 1.5
- spicyplayer.Character.Humanoid.WalkSpeed = 200
- --[[
- local exists1 = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Race Car kill')
- local exists2 = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Race Car')
- if not exists1 then
- game:GetService("PhysicsService"):CreateCollisionGroup('Race Car kill')
- end
- if not exists2 then
- game:GetService("PhysicsService"):CreateCollisionGroup('Race Car')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Race Car kill','Race Car',false)
- for i,plr in pairs(game:GetService("Players"):GetPlayers()) do
- local char = plr.Character
- if char then
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") then
- game:GetService("PhysicsService"):SetPartCollisionGroup(v,'Race Car kill')
- end
- end
- end
- plr.CharacterAdded:Connect(function(_char)
- for i,v in pairs(_char:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") then
- game:GetService("PhysicsService"):SetPartCollisionGroup(v,'Race Car kill')
- end
- end
- end)
- end
- game:GetService("Players").PlayerAdded:Connect(function(plr)
- local char = plr.Character
- if char then
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") then
- game:GetService("PhysicsService"):SetPartCollisionGroup(v,'Race Car kill')
- end
- end
- end
- plr.CharacterAdded:Connect(function(_char)
- for i,v in pairs(_char:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") then
- game:GetService("PhysicsService"):SetPartCollisionGroup(v,'Race Car kill')
- end
- end
- end)
- end)
- ]]
- spawn(function()
- game:GetService("RunService").Heartbeat:Connect(function()
- local char = spicyplayer.Character
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
- local speed = 0.3
- if torso then
- speed = 0.3 + (torso.Velocity.magnitude/140)
- end
- if speed > 1 then
- speed = 1
- end
- m.PlaybackSpeed = speed
- end)
- end)
- function DReduce(p,dens)
- for i,v in pairs(p:GetChildren())do
- if v:IsA("BasePart") then
- if v.CustomPhysicalProperties == nil then v.CustomPhysicalProperties = PhysicalProperties.new(v.Material) end
- v.CustomPhysicalProperties = PhysicalProperties.new(
- dens,
- v.CustomPhysicalProperties.Friction,
- v.CustomPhysicalProperties.Elasticity,
- v.CustomPhysicalProperties.FrictionWeight,
- v.CustomPhysicalProperties.ElasticityWeight
- )
- end
- DReduce(v)
- end
- end
- DReduce(spicyplayer.Character, 0.025)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement