SHOW:
|
|
- or go back to the newest paste.
| 1 | -----------//Elio Blasio\\----------- | |
| 2 | --[[Movelist | |
| 3 | E = Equip/Unequip, click to shoot, hold to spray | |
| 4 | T = Taunt | |
| 5 | ---------]] | |
| 6 | --Credits to Shackluster for the refit/anti-breakjoints function, he's a cool guy/great scripter.-- | |
| 7 | --Ayy i'm not dead yet, take that haters, if i even had any to begin with.-- | |
| 8 | - | --Keeping this script small since big ones will cause major lag & exceed script limits-- |
| 8 | + | --Keeping this script small since big ones will cause major lag & exceed script limits- |
| 9 | --Using a FE converter because i'm way too lazy to create remotes for it-- | |
| 10 | ||
| 11 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
| |
| 12 | do | |
| 13 | script.Parent = owner.Character | |
| 14 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
| |
| 15 | local function NewFakeEvent() | |
| 16 | local Bind = Instance.new("BindableEvent")
| |
| 17 | local Fake;Fake = {Connections = {},
| |
| 18 | fakeEvent=true; | |
| 19 | Connect=function(self,Func) | |
| 20 | Bind.Event:connect(Func) | |
| 21 | self.Connections[Bind] = true | |
| 22 | return setmetatable({Connected = true},{
| |
| 23 | __index = function (self,Index) | |
| 24 | if Index:lower() == "disconnect" then | |
| 25 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
| 26 | end | |
| 27 | return Fake[Index] | |
| 28 | end; | |
| 29 | __tostring = function() return "Connection" end; | |
| 30 | }) | |
| 31 | end} | |
| 32 | Fake.connect = Fake.Connect;return Fake; | |
| 33 | end | |
| 34 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 35 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 36 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 37 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 38 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 39 | local function TriggerEvent(self,Event,...) | |
| 40 | local Trigger = Mouse[Event] | |
| 41 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
| 42 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
| 43 | end | |
| 44 | end | |
| 45 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
| 46 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 47 | if FiredBy.Name ~= owner.Name then return end | |
| 48 | if Input.MouseEvent then | |
| 49 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 50 | else | |
| 51 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 52 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
| 53 | for _,Action in pairs(ContextActionService.Actions) do | |
| 54 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 55 | end | |
| 56 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 57 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 58 | end | |
| 59 | end) | |
| 60 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 61 | Event.Parent = NLS([[ | |
| 62 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
| |
| 63 | local Input = function(Input,gameProcessedEvent) | |
| 64 | if gameProcessedEvent then return end | |
| 65 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 66 | end | |
| 67 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 68 | local Hit,Target | |
| 69 | while wait(1/30) do | |
| 70 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 71 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 72 | end | |
| 73 | end | |
| 74 | ]],owner.Character) | |
| 75 | end | |
| 76 | RealGame = game;game = setmetatable({},{
| |
| 77 | __index = function (self,Index) | |
| 78 | local Sandbox = function (Thing) | |
| 79 | if Thing:IsA("Player") then
| |
| 80 | local RealPlayer = Thing | |
| 81 | return setmetatable({},{
| |
| 82 | __index = function (self,Index) | |
| 83 | local Type = type(RealPlayer[Index]) | |
| 84 | if Type == "function" then | |
| 85 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 86 | return function (self)return InternalData["Mouse"] end | |
| 87 | end | |
| 88 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
| 89 | end | |
| 90 | return RealPlayer[Index] | |
| 91 | end; | |
| 92 | __tostring = function(self) return RealPlayer.Name end | |
| 93 | }) | |
| 94 | end | |
| 95 | end | |
| 96 | if RealGame[Index] then | |
| 97 | local Type = type(RealGame[Index]) | |
| 98 | if Type == "function" then | |
| 99 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 100 | return function (self,Service) | |
| 101 | local FakeServices = {
| |
| 102 | ["players"] = function() | |
| 103 | return setmetatable({},{
| |
| 104 | __index = function (self2,Index2) | |
| 105 | local RealService = RealGame:GetService(Service) | |
| 106 | local Type2 = type(Index2) | |
| 107 | if Type2 == "function" then | |
| 108 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 109 | else | |
| 110 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
| 111 | return RealService[Index2] | |
| 112 | end | |
| 113 | end; | |
| 114 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
| 115 | }) | |
| 116 | end; | |
| 117 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 118 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 119 | ["runservice"] = function() | |
| 120 | return setmetatable({},{
| |
| 121 | __index = function(self2,Index2) | |
| 122 | local RealService = RealGame:GetService(Service) | |
| 123 | local Type2 = type(Index2) | |
| 124 | if Type2 == "function" then | |
| 125 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 126 | else | |
| 127 | local RunServices = {
| |
| 128 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 129 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 130 | } | |
| 131 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 132 | return RealService[Index2] | |
| 133 | end | |
| 134 | end | |
| 135 | }) | |
| 136 | end | |
| 137 | } | |
| 138 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 139 | return RealGame:GetService(Service) | |
| 140 | end | |
| 141 | end | |
| 142 | return function (self,...) return RealGame[Index](RealGame,...) end | |
| 143 | else | |
| 144 | if game:GetService(Index) then return game:GetService(Index) end | |
| 145 | return RealGame[Index] | |
| 146 | end | |
| 147 | end | |
| 148 | return nil | |
| 149 | end | |
| 150 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
| |
| 151 | ||
| 152 | Player=game.Players.LocalPlayer | |
| 153 | Character=Player.Character | |
| 154 | Character.Humanoid.Name = "noneofurbusiness" | |
| 155 | hum = Character.noneofurbusiness | |
| 156 | LeftArm=Character["Left Arm"] | |
| 157 | LeftLeg=Character["Left Leg"] | |
| 158 | RightArm=Character["Right Arm"] | |
| 159 | RightLeg=Character["Right Leg"] | |
| 160 | Root=Character["HumanoidRootPart"] | |
| 161 | Head=Character["Head"] | |
| 162 | Torso=Character["Torso"] | |
| 163 | Neck=Torso["Neck"] | |
| 164 | mouse = Player:GetMouse() | |
| 165 | walking = false | |
| 166 | jumping = false | |
| 167 | attacking = false | |
| 168 | firsttime = false | |
| 169 | tauntdebounce = false | |
| 170 | position = nil | |
| 171 | MseGuide = true | |
| 172 | running = false | |
| 173 | settime = 0 | |
| 174 | sine = 0 | |
| 175 | t = 0 | |
| 176 | - | ws = 18 |
| 176 | + | ws = 6 |
| 177 | change = 1 | |
| 178 | combo1 = true | |
| 179 | equip = false | |
| 180 | dgs = 75 | |
| 181 | combo2 = false | |
| 182 | switch1 = true | |
| 183 | switch2 = false | |
| 184 | firsttime2 = false | |
| 185 | combo3 = false | |
| 186 | gunallowance = false | |
| 187 | shooting = false | |
| 188 | RunSrv = game:GetService("RunService")
| |
| 189 | RenderStepped = game:GetService("RunService").RenderStepped
| |
| 190 | removeuseless = game:GetService("Debris")
| |
| 191 | ||
| 192 | screenGui = Instance.new("ScreenGui")
| |
| 193 | screenGui.Parent = script.Parent | |
| 194 | ||
| 195 | local HEADLERP = Instance.new("ManualWeld")
| |
| 196 | HEADLERP.Parent = Head | |
| 197 | HEADLERP.Part0 = Head | |
| 198 | HEADLERP.Part1 = Head | |
| 199 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 200 | ||
| 201 | local TORSOLERP = Instance.new("ManualWeld")
| |
| 202 | TORSOLERP.Parent = Root | |
| 203 | TORSOLERP.Part0 = Torso | |
| 204 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 205 | ||
| 206 | local ROOTLERP = Instance.new("ManualWeld")
| |
| 207 | ROOTLERP.Parent = Root | |
| 208 | ROOTLERP.Part0 = Root | |
| 209 | ROOTLERP.Part1 = Torso | |
| 210 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 211 | ||
| 212 | local RIGHTARMLERP = Instance.new("ManualWeld")
| |
| 213 | RIGHTARMLERP.Parent = RightArm | |
| 214 | RIGHTARMLERP.Part0 = RightArm | |
| 215 | RIGHTARMLERP.Part1 = Torso | |
| 216 | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 217 | ||
| 218 | local LEFTARMLERP = Instance.new("ManualWeld")
| |
| 219 | LEFTARMLERP.Parent = LeftArm | |
| 220 | LEFTARMLERP.Part0 = LeftArm | |
| 221 | LEFTARMLERP.Part1 = Torso | |
| 222 | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 223 | ||
| 224 | local RIGHTLEGLERP = Instance.new("ManualWeld")
| |
| 225 | RIGHTLEGLERP.Parent = RightLeg | |
| 226 | RIGHTLEGLERP.Part0 = RightLeg | |
| 227 | RIGHTLEGLERP.Part1 = Torso | |
| 228 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 229 | ||
| 230 | local LEFTLEGLERP = Instance.new("ManualWeld")
| |
| 231 | LEFTLEGLERP.Parent = LeftLeg | |
| 232 | LEFTLEGLERP.Part0 = LeftLeg | |
| 233 | LEFTLEGLERP.Part1 = Torso | |
| 234 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 235 | ||
| 236 | local function weldBetween(a, b) | |
| 237 | local weld = Instance.new("ManualWeld", a)
| |
| 238 | weld.Part0 = a | |
| 239 | weld.Part1 = b | |
| 240 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 241 | return weld | |
| 242 | end | |
| 243 | ||
| 244 | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) | |
| 245 | A = Instance.new("Attachment", PARENT)
| |
| 246 | A.Position = POSITION1 | |
| 247 | A.Name = "A" | |
| 248 | B = Instance.new("Attachment", PARENT)
| |
| 249 | B.Position = POSITION2 | |
| 250 | B.Name = "B" | |
| 251 | tr1 = Instance.new("Trail", PARENT)
| |
| 252 | tr1.Attachment0 = A | |
| 253 | tr1.Attachment1 = B | |
| 254 | tr1.Enabled = true | |
| 255 | tr1.Lifetime = LIFETIME | |
| 256 | tr1.TextureMode = "Static" | |
| 257 | tr1.LightInfluence = 0 | |
| 258 | tr1.Color = COLOR | |
| 259 | tr1.Transparency = NumberSequence.new(0, 1) | |
| 260 | end | |
| 261 | ||
| 262 | - | shirt = Instance.new("Shirt", Character)
|
| 262 | + | |
| 263 | - | shirt.Name = "Shirt" |
| 263 | + | |
| 264 | - | pants = Instance.new("Pants", Character)
|
| 264 | + | |
| 265 | - | pants.Name = "Pants" |
| 265 | + | |
| 266 | - | Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1123249914" |
| 266 | + | |
| 267 | - | Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1839310233" |
| 267 | + | |
| 268 | for i,v in pairs(Character:GetChildren()) do | |
| 269 | - | skull = Instance.new("Part",Character)
|
| 269 | + | |
| 270 | - | skull.Size = Vector3.new(2,2,2) |
| 270 | + | |
| 271 | - | skull.CFrame = Head.CFrame |
| 271 | + | |
| 272 | - | skull.CanCollide = false |
| 272 | + | |
| 273 | - | skullweld = Instance.new("Weld",skull)
|
| 273 | + | |
| 274 | - | skullweld.Part0 = skull |
| 274 | + | |
| 275 | - | skullweld.Part1 = Head |
| 275 | + | |
| 276 | - | skullweld.C0 = skull.CFrame:inverse() * Head.CFrame |
| 276 | + | |
| 277 | - | mskull = Instance.new("SpecialMesh", skull)
|
| 277 | + | |
| 278 | - | mskull.MeshType = "FileMesh" |
| 278 | + | |
| 279 | - | mskull.Scale = Vector3.new(1.12, 1.12, 1.12) |
| 279 | + | |
| 280 | - | mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=181343290','http://www.roblox.com/asset/?id=181343313' |
| 280 | + | |
| 281 | - | fedora = Instance.new("Part",Character)
|
| 281 | + | |
| 282 | - | fedora.Size = Vector3.new(2,2,2) |
| 282 | + | |
| 283 | - | fedora.CFrame = Head.CFrame |
| 283 | + | |
| 284 | - | fedora.CanCollide = false |
| 284 | + | |
| 285 | - | fedoraweld = Instance.new("Weld",fedora)
|
| 285 | + | |
| 286 | - | fedoraweld.Part0 = fedora |
| 286 | + | |
| 287 | - | fedoraweld.Part1 = Head |
| 287 | + | |
| 288 | - | fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.8,0) |
| 288 | + | |
| 289 | - | mfedora = Instance.new("SpecialMesh", fedora)
|
| 289 | + | |
| 290 | - | mfedora.MeshType = "FileMesh" |
| 290 | + | |
| 291 | - | mfedora.Scale = Vector3.new(1.1, 1.1, 1.1) |
| 291 | + | |
| 292 | - | mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684' |
| 292 | + | |
| 293 | - | tommygun = Instance.new("Part",Character)
|
| 293 | + | |
| 294 | - | tommygun.Size = Vector3.new(2,2,2) |
| 294 | + | |
| 295 | - | tommygun.CFrame = RightArm.CFrame |
| 295 | + | |
| 296 | - | tommygun.CanCollide = false |
| 296 | + | |
| 297 | - | tommygunweld = Instance.new("Weld",tommygun)
|
| 297 | + | |
| 298 | - | tommygunweld.Part0 = tommygun |
| 298 | + | |
| 299 | - | tommygunweld.Part1 = RightArm |
| 299 | + | |
| 300 | - | tommygunweld.C0 = tommygun.CFrame:inverse() * RightArm.CFrame * CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0) |
| 300 | + | |
| 301 | - | mtommygun = Instance.new("SpecialMesh", tommygun)
|
| 301 | + | |
| 302 | - | mtommygun.MeshType = "FileMesh" |
| 302 | + | |
| 303 | - | mtommygun.Scale = Vector3.new(1, 1, 1) |
| 303 | + | |
| 304 | - | mtommygun.MeshId,mtommygun.TextureId = 'http://www.roblox.com/asset/?id=116679805','http://www.roblox.com/asset/?id=116679995' |
| 304 | + | |
| 305 | - | shootbox = Instance.new("Part",Character)
|
| 305 | + | |
| 306 | - | shootbox.Size = Vector3.new(.2,.2,.2) |
| 306 | + | |
| 307 | - | shootbox.CanCollide = false |
| 307 | + | |
| 308 | - | shootbox.Transparency = 1 |
| 308 | + | |
| 309 | - | shootbox.CFrame = tommygun.CFrame |
| 309 | + | |
| 310 | - | shootboxweld = weldBetween(shootbox,tommygun) |
| 310 | + | |
| 311 | - | shootboxweld.C0 = CFrame.new(0,-.05,2.62) |
| 311 | + | |
| 312 | - | light = Instance.new("PointLight", shootbox)
|
| 312 | + | |
| 313 | - | light.Color = BrickColor.new("Bright yellow").Color
|
| 313 | + | |
| 314 | - | light.Range = 5 |
| 314 | + | |
| 315 | - | light.Brightness = 11 |
| 315 | + | |
| 316 | - | light.Enabled = false |
| 316 | + | |
| 317 | - | particlemiter1 = Instance.new("ParticleEmitter", shootbox)
|
| 317 | + | |
| 318 | - | particlemiter1.Enabled = false |
| 318 | + | |
| 319 | - | particlemiter1.Texture = "rbxassetid://461242617" |
| 319 | + | |
| 320 | - | particlemiter1.Lifetime = NumberRange.new(.1) |
| 320 | + | |
| 321 | - | particlemiter1.Size = NumberSequence.new(1,0) |
| 321 | + | |
| 322 | - | particlemiter1.Rate = 20 |
| 322 | + | |
| 323 | - | particlemiter1.RotSpeed = NumberRange.new(0) |
| 323 | + | |
| 324 | - | particlemiter1.Speed = NumberRange.new(0) |
| 324 | + | |
| 325 | - | tommygunammo = Instance.new("Part",Character)
|
| 325 | + | |
| 326 | - | tommygunammo.Size = Vector3.new(2,2,2) |
| 326 | + | |
| 327 | - | tommygunammo.CFrame = tommygun.CFrame |
| 327 | + | |
| 328 | - | tommygunammo.CanCollide = false |
| 328 | + | |
| 329 | - | tommygunammoweld = Instance.new("Weld",tommygunammo)
|
| 329 | + | |
| 330 | - | tommygunammoweld.Part0 = tommygunammo |
| 330 | + | |
| 331 | - | tommygunammoweld.Part1 = tommygun |
| 331 | + | |
| 332 | - | tommygunammoweld.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(0,.4,.25) * CFrame.Angles(math.rad(0),math.rad(0),0) |
| 332 | + | |
| 333 | - | mtommygunammo = Instance.new("SpecialMesh", tommygunammo)
|
| 333 | + | |
| 334 | - | mtommygunammo.MeshType = "FileMesh" |
| 334 | + | |
| 335 | - | mtommygunammo.Scale = Vector3.new(1, 1, 1) |
| 335 | + | |
| 336 | - | mtommygunammo.MeshId,mtommygunammo.TextureId = 'http://www.roblox.com/asset/?id=116740155','http://www.roblox.com/asset/?id=116679995' |
| 336 | + | |
| 337 | - | mask = Instance.new("Part",Character)
|
| 337 | + | |
| 338 | - | mask.Size = Vector3.new(2,2,2) |
| 338 | + | |
| 339 | - | mask.CFrame = Head.CFrame |
| 339 | + | |
| 340 | - | mask.CanCollide = false |
| 340 | + | |
| 341 | - | maskweld = Instance.new("Weld",mask)
|
| 341 | + | |
| 342 | - | maskweld.Part0 = mask |
| 342 | + | |
| 343 | - | maskweld.Part1 = Head |
| 343 | + | |
| 344 | - | maskweld.C0 = mask.CFrame:inverse() * Head.CFrame * CFrame.new(-.2,0,.62) * CFrame.Angles(math.rad(0),math.rad(10),math.rad(0)) |
| 344 | + | |
| 345 | - | mmask = Instance.new("SpecialMesh", mask)
|
| 345 | + | |
| 346 | - | mmask.MeshType = "FileMesh" |
| 346 | + | |
| 347 | - | mmask.Scale = Vector3.new(1.25, 1.25, 1.25) |
| 347 | + | |
| 348 | - | mmask.MeshId,mmask.TextureId = 'http://www.roblox.com/asset/?id=12470186','http://www.roblox.com/asset/?id=12470201' |
| 348 | + | |
| 349 | for i = 0, num do | |
| 350 | game:service("RunService").Stepped:wait(0)
| |
| 351 | end | |
| 352 | end | |
| 353 | end | |
| 354 | ||
| 355 | - | LeftArm.BrickColor = BrickColor.new("Really black")
|
| 355 | + | |
| 356 | - | RightArm.BrickColor = BrickColor.new("Really black")
|
| 356 | + | |
| 357 | - | Head.BrickColor = BrickColor.new("Really black")
|
| 357 | + | |
| 358 | so.SoundId = "rbxassetid://"..ID | |
| 359 | so.Volume = VOL | |
| 360 | so.Looped = LOOP | |
| 361 | so:Play() | |
| 362 | removeuseless:AddItem(so,REMOVE) | |
| 363 | end | |
| 364 | ||
| 365 | checks1 = coroutine.wrap(function() -------Checks | |
| 366 | while true do | |
| 367 | if Root.Velocity.y > 1 then | |
| 368 | position = "Jump" | |
| 369 | elseif Root.Velocity.y < -1 then | |
| 370 | position = "Falling" | |
| 371 | elseif Root.Velocity.Magnitude < 2 then | |
| 372 | position = "Idle" | |
| 373 | elseif Root.Velocity.Magnitude < 20 then | |
| 374 | position = "Walking" | |
| 375 | elseif Root.Velocity.Magnitude > 20 then | |
| 376 | position = "Running" | |
| 377 | else | |
| 378 | end | |
| 379 | wait() | |
| 380 | end | |
| 381 | end) | |
| 382 | checks1() | |
| 383 | ||
| 384 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 385 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 386 | end | |
| 387 | ||
| 388 | function ray2(StartPos, EndPos, Distance, Ignore) | |
| 389 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
| 390 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
| 391 | end | |
| 392 | ||
| 393 | OrgnC0 = Neck.C0 | |
| 394 | local movelimbs = coroutine.wrap(function() | |
| 395 | while RunSrv.RenderStepped:wait() do | |
| 396 | TrsoLV = Torso.CFrame.lookVector | |
| 397 | Dist = nil | |
| 398 | Diff = nil | |
| 399 | if not MseGuide then | |
| 400 | print("Failed to recognize")
| |
| 401 | else | |
| 402 | local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
| 403 | Dist = (Head.CFrame.p-Point).magnitude | |
| 404 | Diff = Head.CFrame.Y-Point.Y | |
| 405 | local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
| 406 | Dist2 = (LeftArm.CFrame.p-Point).magnitude | |
| 407 | Diff2 = LeftArm.CFrame.Y-Point.Y | |
| 408 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 409 | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) | |
| 410 | end | |
| 411 | end | |
| 412 | end) | |
| 413 | movelimbs() | |
| 414 | immortal = {}
| |
| 415 | for i,v in pairs(Character:GetDescendants()) do | |
| 416 | if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
| |
| 417 | if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then | |
| 418 | v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 419 | end | |
| 420 | table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
| |
| 421 | elseif v:IsA("JointInstance") then
| |
| 422 | table.insert(immortal,{v,v.Parent,nil,nil,nil})
| |
| 423 | end | |
| 424 | end | |
| 425 | for e = 1, #immortal do | |
| 426 | if immortal[e] ~= nil then | |
| 427 | local STUFF = immortal[e] | |
| 428 | local PART = STUFF[1] | |
| 429 | local PARENT = STUFF[2] | |
| 430 | local MATERIAL = STUFF[3] | |
| 431 | local COLOR = STUFF[4] | |
| 432 | local TRANSPARENCY = STUFF[5] | |
| 433 | if levitate then | |
| 434 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
| 435 | PART.Material = MATERIAL | |
| 436 | PART.Color = COLOR | |
| 437 | PART.Transparency = TRANSPARENCY | |
| 438 | end | |
| 439 | PART.AncestryChanged:connect(function() | |
| 440 | PART.Parent = PARENT | |
| 441 | end) | |
| 442 | else | |
| 443 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
| 444 | PART.Material = MATERIAL | |
| 445 | PART.Color = COLOR | |
| 446 | PART.Transparency = TRANSPARENCY | |
| 447 | end | |
| 448 | - | doomtheme = Instance.new("Sound", Torso)
|
| 448 | + | |
| 449 | - | doomtheme.Volume = 1 |
| 449 | + | |
| 450 | - | doomtheme.Name = "doomtheme" |
| 450 | + | |
| 451 | - | doomtheme.Looped = true |
| 451 | + | |
| 452 | - | doomtheme.SoundId = "rbxassetid://318812395" |
| 452 | + | |
| 453 | - | doomtheme:Play() |
| 453 | + | |
| 454 | function immortality() | |
| 455 | - | Torso.ChildRemoved:connect(function(removed) |
| 455 | + | |
| 456 | - | if removed.Name == "doomtheme" then |
| 456 | + | |
| 457 | local STUFF = immortal[e] | |
| 458 | - | doomtheme = Instance.new("Sound", Torso)
|
| 458 | + | |
| 459 | - | doomtheme.Volume = 1 |
| 459 | + | |
| 460 | - | doomtheme.Name = "doomtheme" |
| 460 | + | |
| 461 | - | doomtheme.Looped = true |
| 461 | + | |
| 462 | - | doomtheme.SoundId = "rbxassetid://318812395" |
| 462 | + | |
| 463 | - | doomtheme:Play() |
| 463 | + | |
| 464 | PART.Material = MATERIAL | |
| 465 | PART.Color = COLOR | |
| 466 | PART.Transparency = TRANSPARENCY | |
| 467 | - | for _,n in pairs(Character:GetChildren()) do |
| 467 | + | |
| 468 | - | if n:IsA("Accessory") then n:Remove() end
|
| 468 | + | |
| 469 | hum:Remove() | |
| 470 | - | for _,x in pairs(Character:GetChildren()) do |
| 470 | + | |
| 471 | - | if x:IsA("Decal") then x:Remove() end
|
| 471 | + | |
| 472 | hum.Name = "noneofurbusiness" | |
| 473 | end | |
| 474 | end | |
| 475 | end | |
| 476 | end | |
| 477 | ||
| 478 | local anims = coroutine.wrap(function() | |
| 479 | while true do | |
| 480 | settime = 1.05 | |
| 481 | sine = sine + change | |
| 482 | if position == "Jump" and attacking == false then | |
| 483 | change = 1 | |
| 484 | - | mouse.KeyDown:connect(function(Press) |
| 484 | + | |
| 485 | - | Press=Press:lower() |
| 485 | + | |
| 486 | - | if Press=='t' then |
| 486 | + | |
| 487 | - | if tauntdebounce then return end |
| 487 | + | |
| 488 | - | tauntdebounce = true |
| 488 | + | |
| 489 | - | local b1 = Instance.new("BillboardGui",Head)
|
| 489 | + | |
| 490 | - | b1.Size = UDim2.new(0,4,0,1.6) |
| 490 | + | |
| 491 | - | b1.StudsOffset = Vector3.new(0,0,0) |
| 491 | + | |
| 492 | - | b1.Name = "laff" |
| 492 | + | |
| 493 | - | b1.AlwaysOnTop = true |
| 493 | + | |
| 494 | - | b1.StudsOffset = Vector3.new(0,2,0) |
| 494 | + | |
| 495 | - | b1.Adornee = Head |
| 495 | + | |
| 496 | - | removeuseless:AddItem(b1,3) |
| 496 | + | |
| 497 | - | local b2 = Instance.new("TextLabel",b1)
|
| 497 | + | |
| 498 | - | b2.BackgroundTransparency = 1 |
| 498 | + | |
| 499 | - | b2.Text = "HeHeHeHeHeHeHe..." |
| 499 | + | |
| 500 | - | b2.Font = "Garamond" |
| 500 | + | change = 0.7 |
| 501 | - | b2.TextSize = 30 |
| 501 | + | |
| 502 | - | b2.Name = "lafftext" |
| 502 | + | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5 + Root.RotVelocity.Y / 85,0.1,.5*math.sin(sine/8)) * CFrame.Angles(math.rad(35*math.sin(sine/8)),math.rad(0*math.sin(sine/8)),math.rad(10 - Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3) |
| 503 | - | b2.TextStrokeTransparency = 0 |
| 503 | + | |
| 504 | - | b2.TextColor3 = BrickColor.new("Grey").Color
|
| 504 | + | |
| 505 | - | b2.TextStrokeColor3 = Color3.new(0,0,0) |
| 505 | + | |
| 506 | - | b2.Size = UDim2.new(1,0,.5,0) |
| 506 | + | |
| 507 | - | laff = Instance.new("Sound",Head)
|
| 507 | + | |
| 508 | - | laff.SoundId = "rbxassetid://2126502539" |
| 508 | + | |
| 509 | - | laff.Volume = 5 |
| 509 | + | |
| 510 | - | laff:Play() |
| 510 | + | |
| 511 | - | wait(5) |
| 511 | + | |
| 512 | - | laff:Remove() |
| 512 | + | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .05 * math.sin(sine/12),0.1 +.1 * math.sin(sine/12),0) * CFrame.Angles(math.rad(2),math.rad(-2),math.rad(8 + 6 * math.sin(sine/12))), 0.2) |
| 513 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.59 - .05 * math.sin(sine/12), 0.1 -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(-2), math.rad(2), math.rad(8 - 6 * math.sin(sine/12))), .2) | |
| 514 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 515 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
| 516 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 517 | - | mouse.KeyDown:connect(function(Press) |
| 517 | + | |
| 518 | - | Press=Press:lower() |
| 518 | + | |
| 519 | - | if Press=='e' then |
| 519 | + | |
| 520 | - | if debounce then return end |
| 520 | + | |
| 521 | - | if equip then |
| 521 | + | |
| 522 | - | g1:Remove() |
| 522 | + | |
| 523 | - | light.Enabled = false |
| 523 | + | |
| 524 | - | pcall(function() |
| 524 | + | |
| 525 | - | temmy:Remove() |
| 525 | + | |
| 526 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3) | |
| 527 | - | for i,v in pairs(tommygun:GetDescendants()) do |
| 527 | + | |
| 528 | - | if v.Name == "temmy" then v:Remove() |
| 528 | + | |
| 529 | swait() | |
| 530 | end | |
| 531 | - | light.Enabled = false |
| 531 | + | |
| 532 | - | particlemiter1.Enabled = false |
| 532 | + | |
| 533 | - | hum.CameraOffset = Vector3.new(0,0,0) |
| 533 | + |