Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros")
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return m:TrigEvent(b and "Button2Down" or "Button2Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return rawget(self,s) or _rg:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- FakeService(g,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- function truck(player)
- player = player
- char = player.Character
- for i,v in pairs(char:GetChildren()) do
- for i,v in pairs(v:GetChildren()) do
- if v.Name == "Neck" and v.ClassName == "Motor6D" then
- gloo = Instance.new("ManualGlue",v.Parent)
- gloo.Part0 = v.Part0
- gloo.Part1 = v.Part1
- gloo.C0 = v.C0
- gloo.C1 = v.C1
- v.Part0 = nil
- end
- end
- end
- mas = workspace
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- SpecialMesh3 = Instance.new("SpecialMesh")
- Decal4 = Instance.new("Decal")
- Camera5 = Instance.new("Camera")
- Weld6 = Instance.new("Weld")
- CFrameValue7 = Instance.new("CFrameValue")
- Part8 = Instance.new("Part")
- Weld9 = Instance.new("Weld")
- CFrameValue10 = Instance.new("CFrameValue")
- Part11 = Instance.new("Part")
- Weld12 = Instance.new("Weld")
- CFrameValue13 = Instance.new("CFrameValue")
- Part14 = Instance.new("Part")
- Weld15 = Instance.new("Weld")
- CFrameValue16 = Instance.new("CFrameValue")
- Part17 = Instance.new("Part")
- Weld18 = Instance.new("Weld")
- CFrameValue19 = Instance.new("CFrameValue")
- Part20 = Instance.new("Part")
- Weld21 = Instance.new("Weld")
- CFrameValue22 = Instance.new("CFrameValue")
- Part23 = Instance.new("Part")
- Weld24 = Instance.new("Weld")
- CFrameValue25 = Instance.new("CFrameValue")
- Part26 = Instance.new("Part")
- Weld27 = Instance.new("Weld")
- CFrameValue28 = Instance.new("CFrameValue")
- Model0.Parent = mas
- Part1.Name = "Head"
- Part1.CanCollide = false
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-18.5, 4.49999619, -45.7500076, 1, 0, 0, 0, 0.939693213, -0.342018515, 0, 0.342021376, 0.939692497)
- Part1.Orientation = Vector3.new(20, 0, 0)
- Part1.Position = Vector3.new(-18.5, 4.49999619, -45.7500076)
- Part1.Rotation = Vector3.new(20, 0, 0)
- Part1.Color = Color3.new(0.898039, 0.894118, 0.87451)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(2, 1, 1)
- Part1.BrickColor = BrickColor.new("Light stone grey")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Light stone grey")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Part2.Name = "Hook"
- Part2.CanCollide = false
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(-18.5, 5.24999714, -45.2500076, 0.087154977, -0.99619478, 0, 1.49011612e-06, 1.3038516e-07, -1, 0.996195078, 0.0871549994, -1.49011612e-06)
- Part2.Orientation = Vector3.new(90, -85, 0)
- Part2.Position = Vector3.new(-18.5, 5.24999714, -45.2500076)
- Part2.Rotation = Vector3.new(90, 0, 85)
- Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part2.Transparency = 1
- Part2.Size = Vector3.new(0.5, 0.5, 0.5)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Dark stone grey")
- Part2.Reflectance = 0.40000000596046
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Dark stone grey")
- Part2.FormFactor = Enum.FormFactor.Plate
- Part2.formFactor = Enum.FormFactor.Plate
- SpecialMesh3.Parent = Part2
- SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=13160225"
- SpecialMesh3.Scale = Vector3.new(0.975000024, 1, 1)
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- Decal4.Parent = Part2
- Decal4.Texture = "http://www.roblox.com/asset/?id=21424775"
- Camera5.Name = "ThumbnailCamera"
- Camera5.Parent = Part2
- Camera5.CFrame = CFrame.new(22.6512184, 1.09977579, 4.28934383, -0.818628252, -0.0531277284, -0.571861148, -3.7252903e-09, 0.995712161, -0.0925048441, 0.574323714, -0.0757270753, -0.815118194)
- Camera5.CoordinateFrame = CFrame.new(22.6512184, 1.09977579, 4.28934383, -0.818628252, -0.0531277284, -0.571861148, -3.7252903e-09, 0.995712161, -0.0925048441, 0.574323714, -0.0757270753, -0.815118194)
- Camera5.FieldOfView = 35
- Camera5.Focus = CFrame.new(23.7949409, 1.28478551, 5.91958046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera5.focus = CFrame.new(23.7949409, 1.28478551, 5.91958046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld6.Name = "qCFrameWeldThingy"
- Weld6.Parent = Part2
- Weld6.C1 = CFrame.new(-0.498096466, -0.0435771942, 0.75, 0.087154977, 0.340718448, 0.936116993, -0.99619478, 0.0298087355, 0.0818988904, 0, -0.939692736, 0.342019886)
- Weld6.Part0 = Part1
- Weld6.Part1 = Part2
- Weld6.part1 = Part2
- CFrameValue7.Name = "qRelativeCFrameWeldValue"
- CFrameValue7.Parent = Part2
- CFrameValue7.Value = CFrame.new(-0.498096466, -0.0435771942, 0.75, 0.087154977, 0.340718448, 0.936116993, -0.99619478, 0.0298087355, 0.0818988904, 0, -0.939692736, 0.342019886)
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(-18.5, 7.49999714, -45.2500038, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
- Part8.Position = Vector3.new(-18.5, 7.49999714, -45.2500038)
- Part8.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part8.Size = Vector3.new(0.5, 3, 0.5)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Dark stone grey")
- Part8.Material = Enum.Material.SmoothPlastic
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Dark stone grey")
- Weld9.Name = "qCFrameWeldThingy"
- Weld9.Parent = Part8
- Weld9.C1 = CFrame.new(0, -3, -0.5, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Weld9.Part0 = Part1
- Weld9.Part1 = Part8
- Weld9.part1 = Part8
- CFrameValue10.Name = "qRelativeCFrameWeldValue"
- CFrameValue10.Parent = Part8
- CFrameValue10.Value = CFrame.new(0, -3, -0.5, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Part11.Parent = Model0
- Part11.CFrame = CFrame.new(-18.5, 7.00000286, -41.0000038, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
- Part11.Position = Vector3.new(-18.5, 7.00000286, -41.0000038)
- Part11.Color = Color3.new(0.768627, 0.156863, 0.109804)
- Part11.Size = Vector3.new(2, 4, 1)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Bright red")
- Part11.Material = Enum.Material.SmoothPlastic
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Bright red")
- Weld12.Name = "qCFrameWeldThingy"
- Weld12.Parent = Part11
- Weld12.C1 = CFrame.new(0, -2.5, -4.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Weld12.Part0 = Part1
- Weld12.Part1 = Part11
- Weld12.part1 = Part11
- CFrameValue13.Name = "qRelativeCFrameWeldValue"
- CFrameValue13.Parent = Part11
- CFrameValue13.Value = CFrame.new(0, -2.5, -4.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Part14.Parent = Model0
- Part14.CFrame = CFrame.new(-18.5, 5.00000191, -42.0000076, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
- Part14.Position = Vector3.new(-18.5, 5.00000191, -42.0000076)
- Part14.Size = Vector3.new(2, 2, 1)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.Material = Enum.Material.SmoothPlastic
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Weld15.Name = "qCFrameWeldThingy"
- Weld15.Parent = Part14
- Weld15.C1 = CFrame.new(0, -0.5, -3.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Weld15.Part0 = Part1
- Weld15.Part1 = Part14
- Weld15.part1 = Part14
- CFrameValue16.Name = "qRelativeCFrameWeldValue"
- CFrameValue16.Parent = Part14
- CFrameValue16.Value = CFrame.new(0, -0.5, -3.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Part17.Parent = Model0
- Part17.CFrame = CFrame.new(-18.5, 2.50000262, -41.5000076, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.4603138e-06, 1.00000024)
- Part17.Position = Vector3.new(-18.5, 2.50000262, -41.5000076)
- Part17.Size = Vector3.new(2, 5, 2)
- Part17.Anchored = true
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.Material = Enum.Material.SmoothPlastic
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Weld18.Name = "qCFrameWeldThingy"
- Weld18.Parent = Part17
- Weld18.C1 = CFrame.new(0, 1.99999952, -4.25, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Weld18.Part0 = Part1
- Weld18.Part1 = Part17
- Weld18.part1 = Part17
- CFrameValue19.Name = "qRelativeCFrameWeldValue"
- CFrameValue19.Parent = Part17
- CFrameValue19.Value = CFrame.new(0, 1.99999952, -4.25, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Part20.Parent = Model0
- Part20.CFrame = CFrame.new(-18.5, 7.50000191, -42, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
- Part20.Position = Vector3.new(-18.5, 7.50000191, -42)
- Part20.Color = Color3.new(0.768627, 0.156863, 0.109804)
- Part20.Size = Vector3.new(2, 3, 1)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Bright red")
- Part20.Material = Enum.Material.SmoothPlastic
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Bright red")
- Weld21.Name = "qCFrameWeldThingy"
- Weld21.Parent = Part20
- Weld21.C1 = CFrame.new(0, -3, -3.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Weld21.Part0 = Part1
- Weld21.Part1 = Part20
- Weld21.part1 = Part20
- CFrameValue22.Name = "qRelativeCFrameWeldValue"
- CFrameValue22.Parent = Part20
- CFrameValue22.Value = CFrame.new(0, -3, -3.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Part23.Parent = Model0
- Part23.CFrame = CFrame.new(-18.5, 8.49999809, -44, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
- Part23.Position = Vector3.new(-18.5, 8.49999809, -44)
- Part23.Color = Color3.new(0.768627, 0.156863, 0.109804)
- Part23.Size = Vector3.new(2, 1, 5)
- Part23.BottomSurface = Enum.SurfaceType.Smooth
- Part23.BrickColor = BrickColor.new("Bright red")
- Part23.Material = Enum.Material.SmoothPlastic
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.brickColor = BrickColor.new("Bright red")
- Weld24.Name = "qCFrameWeldThingy"
- Weld24.Parent = Part23
- Weld24.C1 = CFrame.new(0, -4, -1.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Weld24.Part0 = Part1
- Weld24.Part1 = Part23
- Weld24.part1 = Part23
- CFrameValue25.Name = "qRelativeCFrameWeldValue"
- CFrameValue25.Parent = Part23
- CFrameValue25.Value = CFrame.new(0, -4, -1.75, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Part26.Parent = Model0
- Part26.CFrame = CFrame.new(-18.5, 5.74999714, -45.2500038, 1, 0, 0, 0, 1, 1.4603138e-06, 0, 1.49011612e-06, 1.00000036)
- Part26.Position = Vector3.new(-18.5, 5.74999714, -45.2500038)
- Part26.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part26.Size = Vector3.new(0.5, 0.5, 0.5)
- Part26.BottomSurface = Enum.SurfaceType.Smooth
- Part26.BrickColor = BrickColor.new("Dark stone grey")
- Part26.Material = Enum.Material.SmoothPlastic
- Part26.TopSurface = Enum.SurfaceType.Smooth
- Part26.brickColor = BrickColor.new("Dark stone grey")
- Weld27.Name = "qCFrameWeldThingy"
- Weld27.Parent = Part26
- Weld27.C1 = CFrame.new(0, -1.25, -0.5, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- Weld27.Part0 = Part1
- Weld27.Part1 = Part26
- Weld27.part1 = Part26
- CFrameValue28.Name = "qRelativeCFrameWeldValue"
- CFrameValue28.Parent = Part26
- CFrameValue28.Value = CFrame.new(0, -1.25, -0.5, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736)
- main = Part17
- main.CFrame = char.Head.CFrame
- for i,v in pairs(main.Parent:GetChildren()) do
- v.Anchored = true
- end
- weld = Instance.new("Weld",char.Head)
- weld.Part0 = Part1
- weld.Part1 = char.Head
- char.Humanoid.Died:Connect(function()
- coroutine.resume(coroutine.create(function()
- target = char
- --hit.Velocity = Vector3.new(hit.Velocity.X + (head.CFrame.lookVector.X * 18), hit.Velocity.Y + (head.CFrame.lookVector.Y * 18) + 8, hit.Velocity.Z + (head.CFrame.lookVector.Z * 18))
- target.Archivable = true
- ragdoll = target:Clone()
- Humanoid = ragdoll.Humanoid
- ragdoll.Parent = workspace
- vweld = Instance.new("Weld",target)
- vweld.Part0 = ragdoll:WaitForChild("HumanoidRootPart")
- vweld.Part1 = target:WaitForChild("HumanoidRootPart")
- target.HumanoidRootPart.Transparency = 1
- for i,v in pairs(target:GetChildren()) do
- if v.ClassName == "Part" then
- v:Destroy()
- end
- end
- for i,v in pairs(target:GetChildren()) do
- if v.ClassName == "Script" then
- v:Destroy()
- end
- end
- target:Destroy()
- weld = Instance.new("Weld",ragdoll.Head)
- weld.Part0 = Part1
- weld.Part1 = ragdoll.Head
- if Humanoid.RigType == Enum.HumanoidRigType.R15 then
- ragdoll.Humanoid.BreakJointsOnDeath=false
- ragdoll.Humanoid.Name = "DEADMIDGET"
- ragdoll:FindFirstChildOfClass("Humanoid").PlatformStand = true
- local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
- local connection = Instance.new('BallSocketConstraint', limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.TwistLimitsEnabled = true
- connection.TwistLowerAngle = twistlower
- connection.TwistUpperAngle = twistupper
- local limbcollider = Instance.new("Part", limb)
- limbcollider.Size = Vector3.new(0.1,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider:BreakJoints()
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = limb
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
- end
- local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
- local connection = Instance.new('HingeConstraint', limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.LimitsEnabled = true
- connection.LowerAngle = lower
- connection.UpperAngle = upper
- local limbcollider = Instance.new("Part", limb)
- limbcollider.Size = Vector3.new(0.1,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider:BreakJoints()
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = limb
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
- end
- local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
- HeadAttachment.Position = Vector3.new(0, -0.5, 0)
- if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
- --makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
- end
- function bleed(frick,OwO)
- while frick.Parent ~= nil and frick.Parent.Parent ~= nil do
- local reeee = coroutine.wrap(function()
- local thing = Instance.new('Part',workspace)
- thing.Size = Vector3.new(0.2,0.2,0.2)
- thing.CFrame = frick.CFrame
- thing.Transparency = 1
- thing.BrickColor = BrickColor.new('Maroon')
- thing.Material = Enum.Material.SmoothPlastic
- thing.Name = "Blood"
- thing.CanCollide =false
- thing:BreakJoints()
- local rawrxd = Instance.new('BodyForce',thing)
- rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
- local coru = coroutine.wrap(function()
- wait(0.01)
- rawrxd:Destroy()
- end)
- coru()
- local ree = Instance.new('ParticleEmitter',thing)
- if OwO ~= true then
- ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
- else
- ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
- end
- ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
- ree.Texture = 'rbxassetid://867743272'
- ree.Lifetime = NumberRange.new(0.4)
- ree.Rate = 50
- ree.LockedToPart = true
- ree.Speed = NumberRange.new(0, 2)
- thing.Touched:connect(function(tou)
- if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Name ~= "Blood" and tou.Parent.Name ~= "Projectile" and tou.Parent.Name ~= "big ass knife" and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= "bitch ass knife" and tou.Parent.Name ~= 'handle' and tou.Name ~= "blade" and tou.Name ~= 'handle' and tou.Name ~= "Projectile" and tou.Parent.Name ~= "Projectile" then
- local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z)
- local Point1 = pos-Vector3.new(0.01,0.01,0.01)
- local Point2 = pos+Vector3.new(0.01,0.01,0.01)
- local Region = Region3.new(Point1,Point2)
- for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
- if Part.Name == "BloodPuddle" then
- tou = Part
- end
- end
- thing:Destroy()
- if tou.Name == "BloodPuddle" then
- if tou.Size.X < 1 then
- pcall(function()
- tou.Sound:Play()
- end)
- end
- local reee = tou.CFrame
- if tou.Transparency > -0.2 then
- tou.Transparency = tou.Transparency -0.1
- end
- if tou.Size.X < 3 then
- tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
- tou.CFrame = reee
- end
- elseif tou.CanCollide == true then
- local bloodlol = Instance.new('Part',workspace)
- local sound = Instance.new('Sound',bloodlol)
- sound.SoundId = 'rbxassetid://685857471'
- sound.Volume = 0.025
- sound:Play()
- bloodlol.Size=Vector3.new(0.2,0.2,0.2)
- bloodlol.Name = "BloodPuddle"
- bloodlol.Anchored = true
- bloodlol.CanCollide = false
- bloodlol.Material = Enum.Material.SmoothPlastic
- if OwO ~= true then
- bloodlol.Color = Color3.new(117, 0, 0)
- else
- bloodlol.Color = Color3.new(117, 0, 0)
- end
- local cyl = Instance.new('CylinderMesh',bloodlol)
- cyl.Scale = Vector3.new(1,0.1,1)
- bloodlol.CFrame = CFrame.new(pos)
- coroutine.resume(coroutine.create(function()
- local tou = bloodlol
- local reee = tou.CFrame
- while wait() do
- if tou.Size.X < 5 then
- tou.Size = tou.Size+Vector3.new(0.005,0,0.005)
- tou.CFrame = reee
- end
- end
- end))
- local coru=coroutine.wrap(function()
- while bloodlol.Parent ~= nil do
- if bloodlol.Transparency < 1 then
- bloodlol.Transparency = bloodlol.Transparency+0.05
- else
- bloodlol:Destroy()
- end
- wait(0.1)
- end
- end)
- end
- end
- end)
- local coru = coroutine.wrap(function()
- wait(1)
- thing:Destroy()
- end)
- coru()
- end)
- reeee()
- wait()
- end
- end
- local aidsificating = Humanoid.Parent
- local thang = "Torso"
- if aidsificating:FindFirstChild('UpperTorso') then
- thang = "UpperTorso"
- end
- makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
- makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
- makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
- makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
- makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
- makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
- makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
- makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
- makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
- makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
- for i,v in pairs(Humanoid.Parent:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(Humanoid.Parent:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- for i,v in pairs(ragdoll:GetChildren()) do
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
- w:destroy()
- end
- end
- end
- if ragdoll:findFirstChild("HumanoidRootPart") then
- ragdoll.HumanoidRootPart:destroy()
- end
- if ragdoll:findFirstChildOfClass("Humanoid") then
- ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
- end
- else
- local c = ragdoll
- function bleed(frick,OwO)
- while frick.Parent ~= nil and frick.Parent.Parent ~= nil do
- local reeee = coroutine.wrap(function()
- local thing = Instance.new('Part',workspace)
- thing.Size = Vector3.new(0.2,0.2,0.2)
- thing.CFrame = frick.CFrame
- thing.Transparency = 1
- thing.BrickColor = BrickColor.new('Maroon')
- thing.Material = Enum.Material.SmoothPlastic
- thing.Name = "Blood"
- thing.CanCollide =false
- thing:BreakJoints()
- local rawrxd = Instance.new('BodyForce',thing)
- rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
- local coru = coroutine.wrap(function()
- wait(0.01)
- rawrxd:Destroy()
- end)
- coru()
- local ree = Instance.new('ParticleEmitter',thing)
- if OwO ~= true then
- ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
- else
- ree.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
- end
- ree.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.1),NumberSequenceKeypoint.new(1,0.1)})
- ree.Texture = 'rbxassetid://867743272'
- ree.Lifetime = NumberRange.new(0.4)
- ree.Rate = 50
- ree.LockedToPart = true
- ree.Speed = NumberRange.new(0, 2)
- thing.Touched:connect(function(tou)
- if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Name ~= "Blood" and tou.Parent.Name ~= "Projectile" and tou.Parent.Name ~= "big ass knife" and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= "bitch ass knife" and tou.Parent.Name ~= 'handle' and tou.Name ~= "blade" and tou.Name ~= 'handle' and tou.Name ~= "Projectile" and tou.Parent.Name ~= "Projectile" then
- local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,thing.Position.Z)
- local Point1 = pos-Vector3.new(0.01,0.01,0.01)
- local Point2 = pos+Vector3.new(0.01,0.01,0.01)
- local Region = Region3.new(Point1,Point2)
- for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
- if Part.Name == "BloodPuddle" then
- tou = Part
- end
- end
- thing:Destroy()
- if tou.Name == "BloodPuddle" then
- if tou.Size.X < 1 then
- pcall(function()
- tou.Sound:Play()
- end)
- end
- local reee = tou.CFrame
- if tou.Transparency > -0.2 then
- tou.Transparency = tou.Transparency -0.1
- end
- if tou.Size.X < 3 then
- tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
- tou.CFrame = reee
- end
- elseif tou.CanCollide == true then
- local bloodlol = Instance.new('Part',workspace)
- local sound = Instance.new('Sound',bloodlol)
- sound.SoundId = 'rbxassetid://685857471'
- sound.Volume = 0.025
- sound:Play()
- bloodlol.Size=Vector3.new(0.2,0.2,0.2)
- bloodlol.Name = "BloodPuddle"
- bloodlol.Anchored = true
- bloodlol.CanCollide = false
- bloodlol.Material = Enum.Material.SmoothPlastic
- if OwO ~= true then
- bloodlol.Color = Color3.new(117, 0, 0)
- else
- bloodlol.Color = Color3.new(117, 0, 0)
- end
- local cyl = Instance.new('CylinderMesh',bloodlol)
- cyl.Scale = Vector3.new(1,0.1,1)
- bloodlol.CFrame = CFrame.new(pos)
- coroutine.resume(coroutine.create(function()
- local tou = bloodlol
- local reee = tou.CFrame
- while wait() do
- if tou.Size.X < 5 then
- tou.Size = tou.Size+Vector3.new(0.005,0,0.005)
- tou.CFrame = reee
- end
- end
- end))
- local coru=coroutine.wrap(function()
- while bloodlol.Parent ~= nil do
- if bloodlol.Transparency < 1 then
- bloodlol.Transparency = bloodlol.Transparency+0.05
- else
- bloodlol:Destroy()
- end
- wait(0.1)
- end
- end)
- end
- end
- end)
- local coru = coroutine.wrap(function()
- wait(1)
- thing:Destroy()
- end)
- coru()
- end)
- reeee()
- wait()
- end
- end
- local aidsificating = Humanoid.Parent
- local thang = "Torso"
- if aidsificating:FindFirstChild('UpperTorso') then
- thang = "UpperTorso"
- end
- ragdoll.Humanoid.BreakJointsOnDeath=false
- ragdoll.Humanoid.Name = "DEADMIDGET"
- ragdoll:FindFirstChildOfClass("Humanoid").PlatformStand = true
- leftleg = Instance.new("Part",c["Left Leg"])
- leftleg.Shape = "Cylinder"
- leftleg.Transparency = 1
- leftleg.Size=Vector3.new(1.4,1,1)
- leftlegweld = Instance.new("Weld",leftleg)
- leftlegweld.Part0=ragdoll["Left Leg"]
- leftlegweld.Part1=leftleg
- leftlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- rightleg = Instance.new("Part",ragdoll["Right Leg"])
- rightleg.Shape = "Cylinder"
- rightleg.Size=Vector3.new(1.4,1,1)
- rightleg.Transparency = 1
- rightlegweld = Instance.new("Weld",leftleg)
- rightlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- rightlegweld.Part0=c["Right Leg"]
- rightlegweld.Part1=rightleg
- rightarm = Instance.new("Part",c["Right Arm"])
- rightarm.Shape = "Cylinder"
- rightarm.Size=Vector3.new(1.4,1,1)
- rightarm.Transparency = 1
- rightarmweld = Instance.new("Weld",rightarm)
- rightarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- rightarmweld.Part0=c["Right Arm"]
- rightarmweld.Part1=rightarm
- leftarm = Instance.new("Part",c["Left Arm"])
- leftarm.Shape = "Cylinder"
- leftarm.Size=Vector3.new(1.4,1,1)
- leftarm.Transparency = 1
- leftarmweld = Instance.new("Weld",leftarm)
- leftarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- leftarmweld.Part0=c["Left Arm"]
- leftarmweld.Part1=leftarm
- player = ragdoll
- local RealTorso = player.Torso
- local RealHead = player.Head
- local RealLeftleg = player["Left Leg"]
- local RealRightleg = player["Right Leg"]
- local RealLeftArm = player["Left Arm"]
- local RealRightArm = player["Right Arm"]
- local rightarmglue = Instance.new("Glue", RealTorso)
- rightarmglue.Part0 = RealTorso
- rightarmglue.Part1 = RealRightArm
- rightarmglue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- rightarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local leftarmglue = Instance.new("Glue", RealTorso)
- leftarmglue.Part0 = RealTorso
- leftarmglue.Part1 = RealLeftArm
- leftarmglue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- leftarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local leftlegglue = Instance.new("Glue", RealTorso)
- leftlegglue.Part0 = RealTorso
- leftlegglue.Part1 = RealLeftleg
- leftlegglue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- leftlegglue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- local rightlegglue = Instance.new("Glue", RealTorso)
- rightlegglue.Part0 = RealTorso
- rightlegglue.Part1 = RealRightleg
- rightlegglue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rightlegglue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- local headglue = Instance.new("Glue", RealTorso)
- headglue.Part0 = RealTorso
- headglue.Part1 = RealHead
- headglue.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- headglue.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RealTorso["Left Hip"]:Destroy()
- RealTorso["Right Hip"]:Destroy()
- RealTorso["Left Shoulder"]:Destroy()
- RealTorso["Right Shoulder"]:Destroy()
- RealTorso["Left Hip"]:Destroy()
- RealTorso["Right Hip"]:Destroy()
- RealTorso["Left Shoulder"]:Destroy()
- RealTorso["Right Shoulder"]:Destroy()
- RealTorso.Neck:Destroy()
- RealTorso["Left Hip"]:Destroy()
- RealTorso["Right Hip"]:Destroy()
- RealTorso["Left Shoulder"]:Destroy()
- RealTorso["Right Shoulder"]:Destroy()
- RealTorso.Neck:Destroy()
- RealTorso["Left Hip"]:Destroy()
- RealTorso["Right Hip"]:Destroy()
- RealTorso["Left Shoulder"]:Destroy()
- RealTorso["Right Shoulder"]:Destroy()
- RealTorso.Neck:Destroy()
- RealTorso["Left Hip"]:Destroy()
- RealTorso["Right Hip"]:Destroy()
- RealTorso["Left Shoulder"]:Destroy()
- RealTorso["Right Shoulder"]:Destroy()
- RealTorso.Neck:Destroy()
- for i = 1,100 do
- ga = c:FindFirstChildWhichIsA("Motor6D",true)
- if ga then
- ga.Part0 = nil
- ga.Part1 = nil
- ga.Parent = nil
- end
- end
- for i,v in pairs(RealTorso:GetChildren()) do
- if v.ClassName == "Motor6D" then
- v:remove()
- end
- end
- player.Humanoid.BreakJointsOnDeath = false
- RealTorso.CanCollide = false
- end
- while wait(0.1) do
- part = Instance.new("Part",workspace)
- part.Size = Vector3.new(0,0,0)
- part.CFrame = ragdoll.Head.CFrame
- part.Material = "Pebbles"
- part.BrickColor = BrickColor.new("Maroon")
- end
- end))
- end)
- while wait() do
- char.Humanoid.Health = char.Humanoid.Health - 0.1
- end
- end
- remoto = Instance.new("RemoteEvent",owner.Character)
- remoto.Name = "TruckEvent"
- remoto.OnServerEvent:Connect(function(player,target)
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name:lower():sub(1,#target) == target:lower() then
- plr = v
- truck(plr)
- elseif target == "all" then
- for i,v in pairs(game.Players:GetChildren()) do
- plr = v
- truck(plr)
- end
- elseif target == "others" then
- for i,v in pairs(game.Players:GetChildren()) do
- if v ~= owner then
- plr = v
- truck(plr)
- end
- end
- end
- end
- end)
- NLS([[
- mas = owner.PlayerGui
- ScreenGui0 = Instance.new("ScreenGui")
- Frame1 = Instance.new("Frame")
- TextButton2 = Instance.new("TextButton")
- TextBox3 = Instance.new("TextBox")
- ScreenGui0.Parent = mas
- ScreenGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame1.Parent = ScreenGui0
- Frame1.Position = UDim2.new(0.741496623, 0, 0.559198558, 0)
- Frame1.Size = UDim2.new(0, 153, 0, 113)
- Frame1.BackgroundColor = BrickColor.new("Institutional white")
- Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton2.Parent = Frame1
- TextButton2.Position = UDim2.new(0.0915032625, 0, 0.550207675, 0)
- TextButton2.Size = UDim2.new(0, 124, 0, 50)
- TextButton2.BackgroundColor = BrickColor.new("Institutional white")
- TextButton2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton2.Font = Enum.Font.SourceSans
- TextButton2.FontSize = Enum.FontSize.Size14
- TextButton2.Text = "van"
- TextButton2.TextColor = BrickColor.new("Really black")
- TextButton2.TextColor3 = Color3.new(0, 0, 0)
- TextButton2.TextSize = 14
- TextBox3.Parent = Frame1
- TextBox3.Position = UDim2.new(0.09150327, 0, -0.00327301025, 0)
- TextBox3.Size = UDim2.new(0, 124, 0, 50)
- TextBox3.BackgroundColor = BrickColor.new("Institutional white")
- TextBox3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox3.Font = Enum.Font.SourceSans
- TextBox3.FontSize = Enum.FontSize.Size14
- TextBox3.Text = ""
- TextBox3.TextColor = BrickColor.new("Really black")
- TextBox3.TextColor3 = Color3.new(0, 0, 0)
- TextBox3.TextSize = 14
- TextBox3.PlaceholderText = "player"
- remoteok = mas.Parent.Character:FindFirstChild("TruckEvent")
- TextButton2.MouseButton1Click:Connect(function()
- remoteok:FireServer(TextBox3.Text)
- end)
- ]],owner.Character)
Add Comment
Please, Sign In to add comment