SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,game,owner = owner,game | |
| 3 | local RealPlayer = Player | |
| 4 | do | |
| 5 | local rp = RealPlayer | |
| 6 | script.Parent = rp.Character | |
| 7 | ||
| 8 | --RemoteEvent for communicating | |
| 9 | local Event = Instance.new("RemoteEvent")
| |
| 10 | Event.Name = "UserInput_Event" | |
| 11 | ||
| 12 | --Fake event to make stuff like Mouse.KeyDown work | |
| 13 | local function fakeEvent() | |
| 14 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 15 | t.connect = t.Connect | |
| 16 | return t | |
| 17 | end | |
| 18 | ||
| 19 | --Creating fake input objects with fake variables | |
| 20 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 21 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 22 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 23 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 24 | end} | |
| 25 | --Merged 2 functions into one by checking amount of arguments | |
| 26 | CAS.UnbindAction = CAS.BindAction | |
| 27 | ||
| 28 | --This function will trigger the events that have been :Connect()'ed | |
| 29 | local function te(self,ev,...) | |
| 30 | local t = m[ev] | |
| 31 | if t and t._fakeEvent then | |
| 32 | for _,f in pairs(t.Functions) do | |
| 33 | f(...) | |
| 34 | end | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=rp then return end | |
| 42 | m.Target = io.Target | |
| 43 | m.Hit = io.Hit | |
| 44 | if not io.isMouse then | |
| 45 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 46 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 47 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 48 | end | |
| 49 | for _,t in pairs(CAS.Actions) do | |
| 50 | for _,k in pairs(t.Keys) do | |
| 51 | if k==io.KeyCode then | |
| 52 | t.Function(t.Name,io.UserInputState,io) | |
| 53 | end | |
| 54 | end | |
| 55 | end | |
| 56 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 57 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 58 | end | |
| 59 | end) | |
| 60 | Event.Parent = NLS([==[ | |
| 61 | local Player = game:GetService("Players").LocalPlayer
| |
| 62 | local Event = script:WaitForChild("UserInput_Event")
| |
| 63 | ||
| 64 | local Mouse = Player:GetMouse() | |
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local h,t | |
| 75 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 76 | --If player is not moving their mouse, client won't fire events | |
| 77 | while wait(1/30) do | |
| 78 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 79 | h,t=Mouse.Hit,Mouse.Target | |
| 80 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 81 | end | |
| 82 | end]==],Player.Character) | |
| 83 | ||
| 84 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 85 | --Real game object | |
| 86 | local _rg = game | |
| 87 | ||
| 88 | --Metatable for fake service | |
| 89 | local fsmt = {
| |
| 90 | __index = function(self,k) | |
| 91 | local s = rawget(self,"_RealService") | |
| 92 | if s then return s[k] end | |
| 93 | end, | |
| 94 | __newindex = function(self,k,v) | |
| 95 | local s = rawget(self,"_RealService") | |
| 96 | if s then s[k]=v end | |
| 97 | end, | |
| 98 | __call = function(self,...) | |
| 99 | local s = rawget(self,"_RealService") | |
| 100 | if s then return s(...) end | |
| 101 | end | |
| 102 | } | |
| 103 | local function FakeService(t,RealService) | |
| 104 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 105 | return setmetatable(t,fsmt) | |
| 106 | end | |
| 107 | ||
| 108 | --Fake game object | |
| 109 | local g = {
| |
| 110 | GetService = function(self,s) | |
| 111 | return self[s] | |
| 112 | end, | |
| 113 | Players = FakeService({
| |
| 114 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 115 | },"Players"), | |
| 116 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 117 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 118 | } | |
| 119 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 120 | g.service = g.GetService | |
| 121 | ||
| 122 | g.RunService = FakeService({
| |
| 123 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 124 | BindToRenderStep = function(self,name,_,fun) | |
| 125 | ||
| 126 | end, | |
| 127 | UnbindFromRenderStep = function(self,name) | |
| 128 | self._btrs[name]:Disconnect() | |
| 129 | end, | |
| 130 | },"RunService") | |
| 131 | ||
| 132 | setmetatable(g,{
| |
| 133 | __index=function(self,s) | |
| 134 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 135 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 136 | end, | |
| 137 | __newindex = fsmt.__newindex, | |
| 138 | __call = fsmt.__call | |
| 139 | }) | |
| 140 | --Changing owner to fake player object to support owner:GetMouse() | |
| 141 | game,owner = g,g.Players.LocalPlayer | |
| 142 | end | |
| 143 | ||
| 144 | Nel = game.Players.LocalPlayer.Character | |
| 145 | Bonnie = Instance.new("Sound", Nel["Torso"])
| |
| 146 | Bonnie.SoundId = "rbxassetid://614974679" | |
| 147 | Bonnie.Volume = 0.2 | |
| 148 | Bonnie.TimePosition = 0 | |
| 149 | Bonnie.EmitterSize = 25 | |
| 150 | Bonnie.Looped = true | |
| 151 | Bonnie:Play() | |
| 152 | mouse = game.Players.LocalPlayer:GetMouse() | |
| 153 | local plrhum = game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid")
| |
| 154 | function sandbox(var,func) | |
| 155 | local env = getfenv(func) | |
| 156 | local newenv = setmetatable({},{
| |
| 157 | __index = function(self,k) | |
| 158 | if k=="script" then | |
| 159 | return var | |
| 160 | else | |
| 161 | return env[k] | |
| 162 | end | |
| 163 | end, | |
| 164 | }) | |
| 165 | setfenv(func,newenv) | |
| 166 | return func | |
| 167 | end | |
| 168 | cors = {}
| |
| 169 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 170 | Part0 = Instance.new("Part")
| |
| 171 | SpecialMesh2 = Instance.new("SpecialMesh")
| |
| 172 | Part0.Name = "Handle" | |
| 173 | Part0.Parent = mas | |
| 174 | Part0.BrickColor = BrickColor.new("Black")
| |
| 175 | Part0.Rotation = Vector3.new(0, 90, 0) | |
| 176 | Part0.FormFactor = Enum.FormFactor.Custom | |
| 177 | Part0.Size = Vector3.new(0.299999893, 0.568000019, 1.86800003) | |
| 178 | Part0.CFrame = CFrame.new(-3.23400283, 0.534000635, -1.95001817, 2.38418778e-07, -6.64252511e-08, 1.00000143, -1.71991275e-08, 1.00000215, 1.80917198e-07, -1.00000072, -1.04978994e-07, -2.98024148e-08) | |
| 179 | Part0.BottomSurface = Enum.SurfaceType.Smooth | |
| 180 | Part0.TopSurface = Enum.SurfaceType.Smooth | |
| 181 | Part0.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 182 | Part0.Position = Vector3.new(-3.23400283, 0.534000635, -1.95001817) | |
| 183 | Part0.Orientation = Vector3.new(0, 90, 0) | |
| 184 | Part0.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 185 | Part0.CanCollide = false | |
| 186 | SpecialMesh2.Parent = Part0 | |
| 187 | SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=82337638" | |
| 188 | SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=2766467" | |
| 189 | SpecialMesh2.MeshType = Enum.MeshType.FileMesh | |
| 190 | for i,v in pairs(mas:GetChildren()) do | |
| 191 | v.Parent = game:GetService("Players").LocalPlayer.Character
| |
| 192 | pcall(function() v:MakeJoints() end) | |
| 193 | end | |
| 194 | mas:Destroy() | |
| 195 | for i,v in pairs(cors) do | |
| 196 | spawn(function() | |
| 197 | pcall(v) | |
| 198 | end) | |
| 199 | end | |
| 200 | Sound1 = Instance.new("Sound")
| |
| 201 | Sound1.Parent = Part0 | |
| 202 | Sound1.Pitch = 0.69999998807907 | |
| 203 | Sound1.SoundId = "http://www.roblox.com/asset/?id=972134931" | |
| 204 | Sound1.Volume = 10 | |
| 205 | Sound1.Looped = true | |
| 206 | Sound11 = Instance.new("Sound")
| |
| 207 | Sound11.Parent = Part0 | |
| 208 | Sound11.SoundId = "rbxassetid://972134931" | |
| 209 | Sound11.Volume = 10 | |
| 210 | local weld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 211 | weld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 212 | weld.Part1 = Part0 | |
| 213 | weld.C0 = CFrame.new(0.78007102, -1.2894789, -0.0375933647, 1, 0, 0, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984) * CFrame.new(0.3,0,0) | |
| 214 | equipped = false | |
| 215 | using = false | |
| 216 | local death = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
| |
| 217 | death.Volume = 10 | |
| 218 | death.SoundId = "rbxassetid://373066560" | |
| 219 | death.PlaybackSpeed = 12.1 | |
| 220 | mothabloxuh = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
| |
| 221 | mothabloxuh.SoundId = "rbxassetid://373066560" | |
| 222 | mothabloxuh.Volume = 10 | |
| 223 | mothabloxuh.PlaybackSpeed = 16 | |
| 224 | begone = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
| |
| 225 | begone.SoundId = "rbxassetid://373066560" | |
| 226 | begone.Volume = 10 | |
| 227 | begone.TimePosition = 2 | |
| 228 | function equip(key) | |
| 229 | if key == "e" then | |
| 230 | if not equipped then | |
| 231 | equipped = true | |
| 232 | -- Objects | |
| 233 | ||
| 234 | local ScreenGui = Instance.new("ScreenGui")
| |
| 235 | local TextLabel = Instance.new("TextLabel")
| |
| 236 | ||
| 237 | -- Properties | |
| 238 | ||
| 239 | ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui | |
| 240 | ||
| 241 | TextLabel.Parent = ScreenGui | |
| 242 | TextLabel.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 243 | TextLabel.Position = UDim2.new(0.257320642, 0, 0.769705057, 0) | |
| 244 | TextLabel.Size = UDim2.new(0, 663, 0, 152) | |
| 245 | TextLabel.Font = Enum.Font.Cartoon | |
| 246 | TextLabel.FontSize = Enum.FontSize.Size14 | |
| 247 | TextLabel.Text = "Taser equipped!" | |
| 248 | TextLabel.TextScaled = true | |
| 249 | TextLabel.TextSize = 14 | |
| 250 | TextLabel.TextWrapped = true | |
| 251 | wait(2) | |
| 252 | for i = 1,100 do | |
| 253 | TextLabel.BackgroundTransparency = TextLabel.BackgroundTransparency + 0.05 | |
| 254 | TextLabel.TextTransparency = TextLabel.TextTransparency + 0.05 | |
| 255 | wait() | |
| 256 | end | |
| 257 | ScreenGui:destroy() | |
| 258 | else | |
| 259 | equipped = false | |
| 260 | -- Objects | |
| 261 | ||
| 262 | local ScreenGui = Instance.new("ScreenGui")
| |
| 263 | local TextLabel = Instance.new("TextLabel")
| |
| 264 | ||
| 265 | -- Properties | |
| 266 | ||
| 267 | ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui | |
| 268 | ||
| 269 | TextLabel.Parent = ScreenGui | |
| 270 | TextLabel.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 271 | TextLabel.Position = UDim2.new(0.257320642, 0, 0.769705057, 0) | |
| 272 | TextLabel.Size = UDim2.new(0, 663, 0, 152) | |
| 273 | TextLabel.Font = Enum.Font.Cartoon | |
| 274 | TextLabel.FontSize = Enum.FontSize.Size14 | |
| 275 | TextLabel.Text = "Taser unequipped!" | |
| 276 | TextLabel.TextScaled = true | |
| 277 | TextLabel.TextSize = 14 | |
| 278 | TextLabel.TextWrapped = true | |
| 279 | wait(2) | |
| 280 | for i = 1,100 do | |
| 281 | TextLabel.BackgroundTransparency = TextLabel.BackgroundTransparency + 0.05 | |
| 282 | TextLabel.TextTransparency = TextLabel.TextTransparency + 0.05 | |
| 283 | wait() | |
| 284 | end | |
| 285 | ScreenGui:destroy() | |
| 286 | end | |
| 287 | end | |
| 288 | end | |
| 289 | mouse.KeyDown:connect(equip) | |
| 290 | function tase() | |
| 291 | if equipped and not using then | |
| 292 | local humanoid = mouse.Target.Parent:findFirstChildOfClass("Humanoid")
| |
| 293 | local torso = mouse.Target.Parent:findFirstChild("Torso")
| |
| 294 | if humanoid and mouse.Target.Parent.Name ~= "Rufus14" then | |
| 295 | using = true | |
| 296 | plrhum.WalkSpeed = 0 | |
| 297 | plrhum.JumpPower = 0 | |
| 298 | for i,v in pairs(humanoid.Parent:GetChildren()) do | |
| 299 | if v.ClassName == "LocalScript" or v.ClassName == "Script" then | |
| 300 | v.Disabled = true | |
| 301 | end | |
| 302 | end | |
| 303 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
| 304 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 305 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 306 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
| 307 | rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
| 308 | local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
| 309 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 310 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 311 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
| 312 | lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
| 313 | local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone() | |
| 314 | game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove() | |
| 315 | local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 316 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 317 | llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"] | |
| 318 | llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0) | |
| 319 | local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone() | |
| 320 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
| 321 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 322 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 323 | rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"] | |
| 324 | rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0) | |
| 325 | local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone() | |
| 326 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove() | |
| 327 | local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 328 | humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart | |
| 329 | humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso | |
| 330 | local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone() | |
| 331 | local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 332 | headweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 333 | headweld.Part1 = game.Players.LocalPlayer.Character.Head | |
| 334 | headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0) | |
| 335 | game.Players.LocalPlayer.Character.Torso.Neck:Remove() | |
| 336 | local chartorcf = torso.CFrame | |
| 337 | humanoid.WalkSpeed = 0 | |
| 338 | humanoid.JumpPower = 0 | |
| 339 | torso.Anchored = true | |
| 340 | for i = 0,1 , 0.03 do | |
| 341 | game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame:lerp(chartorcf * CFrame.new(0,0,4),i) | |
| 342 | weld.C0 = weld.C0:lerp(CFrame.new(0.05532372, 0.650138378, -2.2124567, 0.818939149, 0.056022197, 0.571139455, -0.00759600196, 0.99619478, -0.0868235677, -0.573830128, 0.066764839, 0.816248417),i) | |
| 343 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.49999976, 0, 0.573576868, 0, 0.819151819, 0, 1, 0, -0.819151819, 0, 0.573576868),i) | |
| 344 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698):inverse(),i) | |
| 345 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.696961582, -1.9652704, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849, 0, 0, 0, 1),i) | |
| 346 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.95053422, 0.315465927, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819, 0, 0, 0, 1),i) | |
| 347 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.01333892, 0.490593195, -1.01113009, 0.76604414, 0.642788053, 0, 0, 0, -1, -0.642788053, 0.76604414, 0),i) | |
| 348 | game:GetService("RunService").RenderStepped:wait()
| |
| 349 | end | |
| 350 | torso.Anchored = false | |
| 351 | for i = 0,1 , 0.03 do | |
| 352 | torso.CFrame = torso.CFrame:lerp(CFrame.new(torso.Position, game.Players.LocalPlayer.Character.Torso.Position),i) | |
| 353 | game:GetService("RunService").RenderStepped:wait()
| |
| 354 | end | |
| 355 | local dedthmath = math.random(1,3) | |
| 356 | if dedthmath == 2 then | |
| 357 | death:Play() | |
| 358 | wait(death.TimeLength / 12.1) | |
| 359 | end | |
| 360 | if dedthmath == 1 then | |
| 361 | mothabloxuh:Play() | |
| 362 | wait(mothabloxuh.TimeLength / 16) | |
| 363 | end | |
| 364 | if dedthmath == 3 then | |
| 365 | begone:Play() | |
| 366 | begone.TimePosition = 2 | |
| 367 | wait(begone.TimeLength - 2.5) | |
| 368 | end | |
| 369 | Sound1:Play() | |
| 370 | local foundhum = false | |
| 371 | if humanoid.Parent:findFirstChild("HumanoidRootPart") then
| |
| 372 | foundhum = true | |
| 373 | humclone = humanoid.Parent.HumanoidRootPart:Clone() | |
| 374 | humanoid.Parent.HumanoidRootPart:Remove() | |
| 375 | end | |
| 376 | for i = 0,0.7 , 0.08 do | |
| 377 | torso.CFrame = torso.CFrame:lerp(CFrame.new(torso.Position, game.Players.LocalPlayer.Character.Torso.Position),i) | |
| 378 | weld.C0 = weld.C0:lerp(CFrame.new(2.9636693, 0.650137901, -1.3644259, 0.643021107, -0.0616276413, -0.763365149, -0.00759599917, 0.99619478, -0.0868228301, 0.765811086, 0.061627429, 0.640106201),i) | |
| 379 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.49999976, 0, 0.573575795, 0, -0.819152772, 0, 1, 0, 0.819152772, 0, 0.573575795),i) | |
| 380 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.573576987, 0, 0.819151998, 0, 1, 0, -0.819151998, 0, 0.573576987),i) | |
| 381 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.696961582, -1.9652704, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849, 0, 0, 0, 1),i) | |
| 382 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-2.09392834, 0.520254135, 0, 0.573575199, 0.819153309, 0, -0.81915313, 0.573575079, 0, 0, 0, 1.00000024),i) | |
| 383 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.85061085, 0.490592957, -0.371278524, 0.819152117, -0.573577046, 0, 0, 0, -1, 0.573577046, 0.819152117, 0),i) | |
| 384 | game:GetService("RunService").RenderStepped:wait()
| |
| 385 | end | |
| 386 | Sound11:Play() | |
| 387 | humanoid.PlatformStand = true | |
| 388 | local lshclone = humanoid.Parent.Torso["Left Shoulder"]:Clone() | |
| 389 | local rshclone = humanoid.Parent.Torso["Right Shoulder"]:Clone() | |
| 390 | local lhclone = humanoid.Parent.Torso["Left Hip"]:Clone() | |
| 391 | local rhclone = humanoid.Parent.Torso["Right Hip"]:Clone() | |
| 392 | local leftarm = humanoid.Parent["Left Arm"] | |
| 393 | local rightrm = humanoid.Parent["Right Arm"] | |
| 394 | local leftleg = humanoid.Parent["Left Leg"] | |
| 395 | local rightleg = humanoid.Parent["Right Leg"] | |
| 396 | humanoid.Parent.Torso["Left Hip"]:destroy() | |
| 397 | local head = humanoid.Parent.Head | |
| 398 | local glue = Instance.new("Glue", humanoid.Parent.Torso)
| |
| 399 | glue.Part0 = humanoid.Parent.Torso | |
| 400 | glue.Part1 = leftleg | |
| 401 | glue.Name = "Left leg" | |
| 402 | local collider = Instance.new("Part", leftleg)
| |
| 403 | collider.Position = Vector3.new(0,999,0) | |
| 404 | collider.Size = Vector3.new(1.5, 1, 1) | |
| 405 | collider.Shape = "Cylinder" | |
| 406 | local welad = Instance.new("Weld", collider)
| |
| 407 | welad.Part0 = leftleg | |
| 408 | welad.Part1 = collider | |
| 409 | welad.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 410 | collider.TopSurface = "Smooth" | |
| 411 | collider.BottomSurface = "Smooth" | |
| 412 | collider.formFactor = "Symmetric" | |
| 413 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 414 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 415 | collider.Transparency = 1 | |
| 416 | ------------ | |
| 417 | humanoid.Parent.Torso["Right Hip"]:destroy() | |
| 418 | local glue1 = Instance.new("Glue", humanoid.Parent.Torso)
| |
| 419 | glue1.Part0 = humanoid.Parent.Torso | |
| 420 | glue1.Part1 = rightleg | |
| 421 | glue1.Name = "Right leg" | |
| 422 | local collider1 = Instance.new("Part", rightleg)
| |
| 423 | collider1.Position = Vector3.new(0,9999,0) | |
| 424 | collider1.Size = Vector3.new(1.5, 1, 1) | |
| 425 | collider1.Shape = "Cylinder" | |
| 426 | local weld1 = Instance.new("Weld", collider1)
| |
| 427 | weld1.Part0 = rightleg | |
| 428 | weld1.Part1 = collider1 | |
| 429 | weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 430 | collider1.TopSurface = "Smooth" | |
| 431 | collider1.BottomSurface = "Smooth" | |
| 432 | collider1.formFactor = "Symmetric" | |
| 433 | glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 434 | glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 435 | collider1.Transparency = 1 | |
| 436 | ------------ | |
| 437 | humanoid.Parent.Torso["Right Shoulder"]:destroy() | |
| 438 | local glue11 = Instance.new("Glue", humanoid.Parent.Torso)
| |
| 439 | glue11.Part0 = humanoid.Parent.Torso | |
| 440 | glue11.Part1 = rightrm | |
| 441 | glue11.Name = "Right shoulder" | |
| 442 | local collider11 = Instance.new("Part", rightrm)
| |
| 443 | collider11.Position = Vector3.new(0,9999,0) | |
| 444 | collider11.Size = Vector3.new(1.8,1,1) | |
| 445 | collider11.Shape = "Cylinder" | |
| 446 | local weld11 = Instance.new("Weld", collider11)
| |
| 447 | weld11.Part0 = rightrm | |
| 448 | weld11.Part1 = collider11 | |
| 449 | weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 450 | collider11.TopSurface = "Smooth" | |
| 451 | collider11.BottomSurface = "Smooth" | |
| 452 | collider11.formFactor = "Symmetric" | |
| 453 | glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 454 | glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 455 | collider11.Transparency = 1 | |
| 456 | ------------ | |
| 457 | humanoid.Parent.Torso["Left Shoulder"]:destroy() | |
| 458 | local glue111 = Instance.new("Glue", humanoid.Parent.Torso)
| |
| 459 | glue111.Part0 = humanoid.Parent.Torso | |
| 460 | glue111.Part1 = leftarm | |
| 461 | glue111.Name = "Left shoulder" | |
| 462 | local collider111 = Instance.new("Part", leftarm)
| |
| 463 | collider111.Position = Vector3.new(0,9999,0) | |
| 464 | collider111.Size = Vector3.new(1.5, 1, 1) | |
| 465 | collider111.Shape = "Cylinder" | |
| 466 | local weld111 = Instance.new("Weld", collider111)
| |
| 467 | weld111.Part0 = leftarm | |
| 468 | weld111.Part1 = collider111 | |
| 469 | weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 470 | collider111.TopSurface = "Smooth" | |
| 471 | collider111.BottomSurface = "Smooth" | |
| 472 | collider111.formFactor = "Symmetric" | |
| 473 | glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 474 | glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 475 | collider111.Transparency = 1 | |
| 476 | ----------------- | |
| 477 | wait(1) | |
| 478 | Sound1:Stop() | |
| 479 | for i = 0,1 , 0.03 do | |
| 480 | weld.C0 = weld.C0:lerp(CFrame.new(0.78007102, -1.2894789, -0.0375933647, 1, 0, 0, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984) * CFrame.new(0.3,0,0),i) | |
| 481 | headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0),i) | |
| 482 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0):inverse(),i) | |
| 483 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0),i) | |
| 484 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i) | |
| 485 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i) | |
| 486 | game:GetService("RunService").RenderStepped:wait()
| |
| 487 | end | |
| 488 | humanoid.Health = humanoid.Health - math.huge | |
| 489 | plrhum.WalkSpeed = 16 | |
| 490 | plrhum.JumpPower = 50 | |
| 491 | humanoidrootpart:destroy() | |
| 492 | rlegweld:destroy() | |
| 493 | llegweld:destroy() | |
| 494 | lhandweld:destroy() | |
| 495 | rhandweld:destroy() | |
| 496 | headweld:destroy() | |
| 497 | heed.Parent = game.Players.LocalPlayer.Character.Torso | |
| 498 | rootjointclone.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart | |
| 499 | lhandclone.Parent = game.Players.LocalPlayer.Character.Torso | |
| 500 | rhandclone.Parent = game.Players.LocalPlayer.Character.Torso | |
| 501 | llegclone.Parent = game.Players.LocalPlayer.Character.Torso | |
| 502 | rlegclone.Parent = game.Players.LocalPlayer.Character.Torso | |
| 503 | using = false | |
| 504 | for i = 1,500 do | |
| 505 | for i,v in pairs(humanoid.Parent:GetChildren()) do | |
| 506 | if v.ClassName == "LocalScript" or v.ClassName == "Script" then | |
| 507 | v.Disabled = true | |
| 508 | end | |
| 509 | end | |
| 510 | wait() | |
| 511 | end | |
| 512 | for i,v in pairs(humanoid.Parent:GetChildren()) do | |
| 513 | if v.ClassName == "LocalScript" or v.ClassName == "Script" then | |
| 514 | v.Disabled = false | |
| 515 | end | |
| 516 | end | |
| 517 | lshclone.Parent = humanoid.Parent.Torso | |
| 518 | glue:destroy() | |
| 519 | rshclone.Parent = humanoid.Parent.Torso | |
| 520 | glue1:destroy() | |
| 521 | lhclone.Parent = humanoid.Parent.Torso | |
| 522 | glue11:destroy() | |
| 523 | rhclone.Parent = humanoid.Parent.Torso | |
| 524 | glue111:destroy() | |
| 525 | collider:destroy() | |
| 526 | collider1:destroy() | |
| 527 | collider11:destroy() | |
| 528 | collider111:destroy() | |
| 529 | humanoid.PlatformStand = false | |
| 530 | humanoid.WalkSpeed = 16 | |
| 531 | humanoid.JumpPower = 50 | |
| 532 | if foundhum then | |
| 533 | humclone.Parent = humanoid.Parent | |
| 534 | end | |
| 535 | end | |
| 536 | end | |
| 537 | end | |
| 538 | mouse.Button1Down:connect(tase) | |
| 539 | while true do | |
| 540 | wait() | |
| 541 | if Sound11.Parent == nil then | |
| 542 | Sound11.Parent = Part0 | |
| 543 | end | |
| 544 | if Sound1.Parent == nil then | |
| 545 | Sound1.Parent = Part0 | |
| 546 | end | |
| 547 | if mothabloxuh.Parent == nil then | |
| 548 | mothabloxuh.Parent = game.Players.LocalPlayer.Character.Head | |
| 549 | end | |
| 550 | if begone.Parent == nil then | |
| 551 | begone.Parent = game.Players.LocalPlayer.Character.Head | |
| 552 | end | |
| 553 | if death.Parent == nil then | |
| 554 | death.Parent = game.Players.LocalPlayer.Character.Head | |
| 555 | end | |
| 556 | end |