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,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | local RealPlayer = Player | |
| 4 | do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
| |
| 5 | script.Parent = InternalData.RealOwner.Character | |
| 6 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
| |
| 7 | local function createObject (connections, index) | |
| 8 | local proxy = newproxy (true);local meta = getmetatable (proxy); | |
| 9 | local runbind = function (self, i, ...) connections[i]:Fire (...); end; | |
| 10 | while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
| |
| 11 | meta.__index = function (self, i) | |
| 12 | if (i == 'TriggerEvent') then return runbind end; | |
| 13 | return connections[i] and connections[i].Event or index[i]; | |
| 14 | end; | |
| 15 | meta.__newindex = index;meta.__metatable = false;return proxy | |
| 16 | end; | |
| 17 | local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
| |
| 18 | local UserInputService = createObject({"InputBegan","InputEnded"},{})
| |
| 19 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 20 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 21 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 22 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 23 | if FiredBy ~= InternalData.RealOwner then return end | |
| 24 | if Input.MouseEvent then | |
| 25 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 26 | elseif Input.Sound then | |
| 27 | if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end | |
| 28 | else | |
| 29 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 30 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end | |
| 31 | for _,Action in pairs(ContextActionService.Actions) do | |
| 32 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 33 | end | |
| 34 | Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 35 | end | |
| 36 | end) | |
| 37 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 38 | Event.Parent = NLS([[ | |
| 39 | local Player = owner; | |
| 40 | local Sounds = {};
| |
| 41 | local Event = script:WaitForChild("UserInput");
| |
| 42 | local UserInputService = game:GetService("UserInputService");
| |
| 43 | local Mouse = Player:GetMouse(); | |
| 44 | local Input = function(Input,gameProcessedEvent) | |
| 45 | if gameProcessedEvent then return end | |
| 46 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 47 | end | |
| 48 | Event.OnClientEvent:connect(function(Args) | |
| 49 | if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end | |
| 50 | end) | |
| 51 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 52 | local Hit,Target | |
| 53 | while wait(1/30) do | |
| 54 | for x,Sound in pairs(Sounds) do | |
| 55 | if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
| |
| 56 | end | |
| 57 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 58 | Hit = Mouse.Hit;Target = Mouse.Target; | |
| 59 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 60 | end | |
| 61 | end | |
| 62 | ]],InternalData.RealOwner.Character) | |
| 63 | end | |
| 64 | InternalData.NewOwner = setmetatable({},{
| |
| 65 | __index = function (self,Index) | |
| 66 | local Type = type(InternalData.RealOwner[Index]) | |
| 67 | if Type == "function" then | |
| 68 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 69 | return function (self)return InternalData["Mouse"] end | |
| 70 | end | |
| 71 | return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end | |
| 72 | elseif Index == "FakePlayer" then | |
| 73 | return true | |
| 74 | end | |
| 75 | return InternalData.RealOwner[Index] | |
| 76 | end; | |
| 77 | __tostring = function(self) return tostring(InternalData.RealOwner) end | |
| 78 | }) | |
| 79 | --LoadLibrary("RbxUtility").Create
| |
| 80 | InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library) | |
| 81 | if Library == "RbxUtility" then | |
| 82 | return setmetatable({},{
| |
| 83 | __tostring = function() return "RbxUtility" end; | |
| 84 | __index = function(self, Index) | |
| 85 | if Index:lower() == "create" then | |
| 86 | return function(Type) | |
| 87 | return function(Data) | |
| 88 | Data = Data or {}
| |
| 89 | local Inst = Instance.new(Type) | |
| 90 | for x,y in pairs(Data) do | |
| 91 | if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end | |
| 92 | if y == owner then y = InternalData.RealOwner end | |
| 93 | Inst[x] = y | |
| 94 | end | |
| 95 | return Inst | |
| 96 | end | |
| 97 | end | |
| 98 | end | |
| 99 | return InternalData.LoadLibrary(Library)[Index] | |
| 100 | end | |
| 101 | }) | |
| 102 | end | |
| 103 | return InternalData.LoadLibrary(Library) | |
| 104 | end | |
| 105 | InternalData.RealInstance = Instance;Instance = setmetatable({},{
| |
| 106 | __index = function (self,Index) | |
| 107 | if Index:lower() == 'new' then | |
| 108 | return function (Type, Parent) | |
| 109 | if Parent == owner then Parent = InternalData.RealOwner end | |
| 110 | if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end | |
| 111 | local Real = InternalData.RealInstance.new(Type,Parent) | |
| 112 | if not Type then return end | |
| 113 | if Type == "BillboardGui" then | |
| 114 | local ToReturn = setmetatable({},{
| |
| 115 | __index = function (self,Index) | |
| 116 | if type(Real[Index]) == "function" then | |
| 117 | if Index:lower() == "clone" then | |
| 118 | return function (self) | |
| 119 | local Real = Real:Clone() | |
| 120 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 121 | __index = function (self,Index) | |
| 122 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 123 | return Real[Index] | |
| 124 | end; | |
| 125 | __newindex = function (self,Index,Value) | |
| 126 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 127 | if Value == owner then Value = InternalData.RealOwner end | |
| 128 | Real[Index] = Value | |
| 129 | end; | |
| 130 | __tostring = function(self) return tostring(Real) end; | |
| 131 | }) | |
| 132 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 133 | end | |
| 134 | end | |
| 135 | return function (self,...) return Real[Index](Real,...)end | |
| 136 | end | |
| 137 | return Real[Index] | |
| 138 | end; | |
| 139 | __newindex = function (self,Index,Value) | |
| 140 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 141 | if Value == owner then Value = InternalData.RealOwner end | |
| 142 | Real[Index] = Value | |
| 143 | end; | |
| 144 | __tostring = function(self) return tostring(Real) end; | |
| 145 | }) | |
| 146 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 147 | elseif Type:lower() == "sound" then | |
| 148 | Real.Parent = owner.Character; | |
| 149 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 150 | __index = function (self,Index) | |
| 151 | if Index:lower() == "playbackloudness" then | |
| 152 | return InternalData.SoundLoudness[Real] or 0 | |
| 153 | elseif type(Real[Index]) == "function" then | |
| 154 | if Index:lower() == "clone" then | |
| 155 | return function (self) | |
| 156 | local Real = Real:Clone() | |
| 157 | local ToReturn = setmetatable({},{
| |
| 158 | __index = function (self,Index) | |
| 159 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 160 | return Real[Index] | |
| 161 | end; | |
| 162 | __newindex = function (self,Index,Value) | |
| 163 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 164 | if Value == owner then Value = InternalData.RealOwner end | |
| 165 | Real[Index] = Value | |
| 166 | end; | |
| 167 | __tostring = function(self) return tostring(Real) end; | |
| 168 | }) | |
| 169 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 170 | end | |
| 171 | end | |
| 172 | return function (self,...) return Real[Index](Real,...)end | |
| 173 | end | |
| 174 | return Real[Index] | |
| 175 | end; | |
| 176 | __newindex = function (self,Index,Value) | |
| 177 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 178 | if Value == owner then Value = InternalData.RealOwner end | |
| 179 | Real[Index] = Value | |
| 180 | end; | |
| 181 | __tostring = function(self) return tostring(Real) end; | |
| 182 | }) | |
| 183 | InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
| |
| 184 | else | |
| 185 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 186 | __index = function (self,Index) | |
| 187 | if type(Real[Index]) == "function" then | |
| 188 | if Index:lower() == "clone" then | |
| 189 | return function (self) | |
| 190 | local Real = Real:Clone() | |
| 191 | local ToReturn = setmetatable({},{
| |
| 192 | __index = function (self,Index) | |
| 193 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 194 | return Real[Index] | |
| 195 | end; | |
| 196 | __newindex = function (self,Index,Value) | |
| 197 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 198 | if Value == owner then Value = InternalData.RealOwner end | |
| 199 | Real[Index] = Value | |
| 200 | end; | |
| 201 | __tostring = function(self) return tostring(Real) end; | |
| 202 | }) | |
| 203 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 204 | end | |
| 205 | end | |
| 206 | return function (self,...) return Real[Index](Real,...)end | |
| 207 | end | |
| 208 | return Real[Index] | |
| 209 | end; | |
| 210 | __newindex = function (self,Index,Value) | |
| 211 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 212 | if Value == owner then Value = InternalData.RealOwner end | |
| 213 | Real[Index] = Value | |
| 214 | end; | |
| 215 | __tostring = function(self) return tostring(Real) end; | |
| 216 | }) | |
| 217 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 218 | end | |
| 219 | end | |
| 220 | end | |
| 221 | return InternalData.RealInstance[Index] | |
| 222 | end; | |
| 223 | __tostring = function(self) return tostring(InternalData.RealInstance) end; | |
| 224 | }); | |
| 225 | InternalData.RealGame = game;game = setmetatable({},{
| |
| 226 | __index = function (self,Index) | |
| 227 | if InternalData.RealGame[Index] then | |
| 228 | local Type = type(InternalData.RealGame[Index]) | |
| 229 | if Type == "function" then | |
| 230 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 231 | return function (self,Service) | |
| 232 | local FakeServices = {
| |
| 233 | ["players"] = function() | |
| 234 | return setmetatable({},{
| |
| 235 | __index = function (self2,Index2) | |
| 236 | local RealService = InternalData.RealGame:GetService(Service) | |
| 237 | local Type2 = type(RealService[Index2]) | |
| 238 | if Type2 == "function" then | |
| 239 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 240 | else | |
| 241 | if Index2:lower() == "localplayer" then return InternalData.NewOwner end | |
| 242 | return RealService[Index2] | |
| 243 | end | |
| 244 | end; | |
| 245 | __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end | |
| 246 | }) | |
| 247 | end; | |
| 248 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 249 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 250 | ["debris"] = function() | |
| 251 | return setmetatable({},{
| |
| 252 | __index = function(self2,Index2) | |
| 253 | local RealService = InternalData.RealGame:GetService(Service) | |
| 254 | local Type2 = type(RealService[Index2]) | |
| 255 | if Type2 == "function" then | |
| 256 | if Index2:lower() == "additem" then | |
| 257 | return function (self,Item,Time) | |
| 258 | if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end | |
| 259 | return RealService:AddItem(Item,Time) | |
| 260 | end | |
| 261 | end | |
| 262 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 263 | end | |
| 264 | return RealService[Index2] | |
| 265 | end; | |
| 266 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
| |
| 267 | }) | |
| 268 | end; | |
| 269 | ["runservice"] = function() | |
| 270 | return setmetatable({},{
| |
| 271 | __index = function(self2,Index2) | |
| 272 | local RealService = InternalData.RealGame:GetService(Service) | |
| 273 | local Type2 = type(RealService[Index2]) | |
| 274 | if Type2 == "function" then | |
| 275 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 276 | else | |
| 277 | local RunServices = {
| |
| 278 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 279 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 280 | } | |
| 281 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 282 | return RealService[Index2] | |
| 283 | end | |
| 284 | end; | |
| 285 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
| |
| 286 | }) | |
| 287 | end | |
| 288 | } | |
| 289 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 290 | return InternalData.RealGame:GetService(Service) | |
| 291 | end | |
| 292 | end | |
| 293 | return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end | |
| 294 | else | |
| 295 | if game:GetService(Index) then return game:GetService(Index) end | |
| 296 | return InternalData.RealGame[Index] | |
| 297 | end | |
| 298 | end | |
| 299 | return nil | |
| 300 | end; | |
| 301 | __tostring = function(self) return tostring(InternalData.game) end | |
| 302 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
| |
| 303 | ||
| 304 | --whitelist-- | |
| 305 | if game.Players.LocalPlayer.userId == 225869729 or game.Players.LocalPlayer.userId == 101921294 or game.Players.LocalPlayer.userId == 20903137 or game.Players.LocalPlayer.userId == 400610816 or game.Players.LocalPlayer.userId == 68459790 or game.Players.LocalPlayer.userId == 46181506 | |
| 306 | then | |
| 307 | -- friend list | |
| 308 | print([[ | |
| 309 | ___________________________________ | |
| 310 | ||
| 311 | Whitelist system | |
| 312 | Build 0001 | |
| 313 | bannaboy43 | |
| 314 | ||
| 315 | ___________________________________ | |
| 316 | ]]) | |
| 317 | ||
| 318 | function checkfriendlist(model) | |
| 319 | local friend = true | |
| 320 | local target = nil | |
| 321 | if model.ClassName == "Player" then | |
| 322 | target = model | |
| 323 | else | |
| 324 | target = game:GetService("Players"):GetPlayerFromCharacter(model)
| |
| 325 | end | |
| 326 | if target ~= nil then | |
| 327 | if target:IsFriendsWith(153566520) then friend = true end | |
| 328 | end | |
| 329 | return friend | |
| 330 | end | |
| 331 | ||
| 332 | if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Really blacklist") then
| |
| 333 | warn("You're not whitelisted")
| |
| 334 | --wait(1) | |
| 335 | --error("Script has been stopped.")
| |
| 336 | end | |
| 337 | ||
| 338 | warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
| |
| 339 | ||
| 340 | else | |
| 341 | while true do | |
| 342 | wait() | |
| 343 | local blind = Instance.new('ScreenGui')
| |
| 344 | local user = game.Players.LocalPlayer | |
| 345 | blind.Parent = user.PlayerGui | |
| 346 | local scr = Instance.new('TextLabel')
| |
| 347 | scr.Parent = blind | |
| 348 | scr.Text = "Ur not whitelisted "..game.Players.LocalPlayer.Name.." " | |
| 349 | scr.TextScaled = true | |
| 350 | scr.Font = Enum.Font.Arial | |
| 351 | scr.TextColor = BrickColor.new(1001) | |
| 352 | scr.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294) | |
| 353 | scr.BorderColor3 = Color3.new(0, 0, 0) | |
| 354 | scr.Position = UDim2.new(0, 0, 0, 0) | |
| 355 | scr.Size = UDim2.new(1, 1, 1, 1) | |
| 356 | end | |
| 357 | end | |
| 358 | ||
| 359 | --whitelist-- | |
| 360 | --chat | |
| 361 | Player = game:GetService("Players").LocalPlayer
| |
| 362 | PlayerGui = Player.PlayerGui | |
| 363 | Cam = workspace.CurrentCamera | |
| 364 | Backpack = Player.Backpack | |
| 365 | Character = Player.Character | |
| 366 | char = Player.Character | |
| 367 | Humanoid = Character.Humanoid | |
| 368 | Mouse = Player:GetMouse() | |
| 369 | RootPart = Character["HumanoidRootPart"] | |
| 370 | Torso = Character["Torso"] | |
| 371 | Head = Character["Head"] | |
| 372 | RightArm = Character["Right Arm"] | |
| 373 | LeftArm = Character["Left Arm"] | |
| 374 | RightLeg = Character["Right Leg"] | |
| 375 | LeftLeg = Character["Left Leg"] | |
| 376 | RootJoint = RootPart["RootJoint"] | |
| 377 | Neck = Torso["Neck"] | |
| 378 | RightShoulder = Torso["Right Shoulder"] | |
| 379 | LeftShoulder = Torso["Left Shoulder"] | |
| 380 | RightHip = Torso["Right Hip"] | |
| 381 | LeftHip = Torso["Left Hip"] | |
| 382 | ||
| 383 | local Orin = "http://www.roblox.com/asset/?id=7074786" | |
| 384 | Head.face.Texture = Orin | |
| 385 | function weld(a, b, acf) | |
| 386 | local w = Instance.new("Weld", a)
| |
| 387 | w.Part0 = a | |
| 388 | w.Part1 = b | |
| 389 | w.C0 = acf | |
| 390 | end | |
| 391 | ||
| 392 | ||
| 393 | ||
| 394 | ||
| 395 | local p = game:GetService("Players").LocalPlayer
| |
| 396 | local plr = game:GetService("Players").LocalPlayer
| |
| 397 | local player = game:GetService("Players").LocalPlayer
| |
| 398 | local char = p.Character | |
| 399 | local mouse = p:GetMouse() | |
| 400 | local larm = char:WaitForChild("Left Arm")
| |
| 401 | local rarm = char:WaitForChild("Right Arm")
| |
| 402 | local lleg = char:WaitForChild("Left Leg")
| |
| 403 | local rleg = char:WaitForChild("Right Leg")
| |
| 404 | local hed = char:WaitForChild("Head")
| |
| 405 | local torso = char:WaitForChild("Torso")
| |
| 406 | local root = char:WaitForChild("HumanoidRootPart")
| |
| 407 | local hum = char:FindFirstChildOfClass("Humanoid")
| |
| 408 | local debris = game:GetService("Debris")
| |
| 409 | local run = game:GetService("RunService")
| |
| 410 | local rs = run.RenderStepped | |
| 411 | local cam = workspace.CurrentCamera | |
| 412 | local movement = 4 | |
| 413 | local change = 0.4 | |
| 414 | local DebrisModel = Instance.new("Model",char)
| |
| 415 | local stealth = false | |
| 416 | local debounce = false | |
| 417 | hum.MaxHealth = 50000 | |
| 418 | ||
| 419 | themeid = 175635113 | |
| 420 | themepitch = 1.4 | |
| 421 | main = {r = 255;g = 100;b = 1;v = 1}
| |
| 422 | if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
| |
| 423 | if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
| |
| 424 | if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
| |
| 425 | if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
| |
| 426 | if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
| |
| 427 | if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
| |
| 428 | pr = p:FindFirstChild("rcolor")
| |
| 429 | pg = p:FindFirstChild("gcolor")
| |
| 430 | pb = p:FindFirstChild("bcolor")
| |
| 431 | pv = p:FindFirstChild("vcolor")
| |
| 432 | idth = p:FindFirstChild("idtheme")
| |
| 433 | pith = p:FindFirstChild("pitchtheme")
| |
| 434 | main_color = Color3.fromRGB(main.r,main.g,main.b) | |
| 435 | explosionid = {262562442,144699494,539294959,1388740053}
| |
| 436 | --919941001 | |
| 437 | Prefix = "/" | |
| 438 | p.Chatted:connect(function(msg) | |
| 439 | ||
| 440 | if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then | |
| 441 | local v = tonumber(msg:sub(#Prefix+#'color r '+1)) | |
| 442 | main.r = v | |
| 443 | elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then | |
| 444 | local v = tonumber(msg:sub(#Prefix+#'color g '+1)) | |
| 445 | main.g = v | |
| 446 | elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then | |
| 447 | local v = tonumber(msg:sub(#Prefix+#'color b '+1)) | |
| 448 | main.b = v | |
| 449 | elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then | |
| 450 | local v = tonumber(msg:sub(#Prefix+#'color v '+1)) | |
| 451 | if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end | |
| 452 | ||
| 453 | elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then | |
| 454 | local v = tonumber(msg:sub(#Prefix+#'theme '+1)) | |
| 455 | themeid = v | |
| 456 | music(themeid,themepitch) | |
| 457 | ||
| 458 | elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then | |
| 459 | local v = tonumber(msg:sub(#Prefix+#'pitch '+1)) | |
| 460 | themepitch = v | |
| 461 | music(themeid,themepitch) | |
| 462 | ||
| 463 | elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then | |
| 464 | local v = msg:sub(#Prefix+#'prefix '+1) | |
| 465 | Prefix = v | |
| 466 | ||
| 467 | elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then | |
| 468 | main.r = 255 | |
| 469 | main.g = 255 | |
| 470 | main.b = 1 | |
| 471 | main.v = 1 | |
| 472 | themeid = 175635113 | |
| 473 | themepitch = 1 | |
| 474 | music(themeid,themepitch) | |
| 475 | ||
| 476 | end | |
| 477 | ||
| 478 | end) | |
| 479 | ---------------------------------------------------------------------------- | |
| 480 | no_anim = false | |
| 481 | attack = false | |
| 482 | attacking = false | |
| 483 | canjump = true | |
| 484 | aiming_anim = false | |
| 485 | animid = math.random(0,1) | |
| 486 | timer = 0 | |
| 487 | bg = Instance.new("BodyGyro",root)
| |
| 488 | bg.P = 100000 | |
| 489 | bg.D = 100 | |
| 490 | ---------------------------------------------------------------------------- | |
| 491 | ||
| 492 | function rswait(value) | |
| 493 | if value ~= nil and value ~= 0 then | |
| 494 | for i=1,value do | |
| 495 | rs:wait() | |
| 496 | end | |
| 497 | else | |
| 498 | rs:wait() | |
| 499 | end | |
| 500 | end | |
| 501 | ||
| 502 | ---------------------------------------------------------------------------- | |
| 503 | max = 0 | |
| 504 | function music(id,pitch) | |
| 505 | max = 0 | |
| 506 | if id == "Stop" then | |
| 507 | if not torso:FindFirstChild("MusicRuin") then
| |
| 508 | soundz = Instance.new("Sound",char)
| |
| 509 | end | |
| 510 | soundz:Stop() | |
| 511 | else | |
| 512 | if not torso:FindFirstChild("MusicRuin") then
| |
| 513 | soundz = Instance.new("Sound",char)
| |
| 514 | end | |
| 515 | ||
| 516 | soundz.Volume = 1.5 | |
| 517 | soundz.Name = "MusicRuin" | |
| 518 | soundz.Looped = true | |
| 519 | soundz.SoundId = "rbxassetid://934992368" | |
| 520 | soundz:Stop() | |
| 521 | soundz:Play() | |
| 522 | end | |
| 523 | end | |
| 524 | ||
| 525 | ---------------------------------------------------------------------------- | |
| 526 | ||
| 527 | function lerp(a, b, t) | |
| 528 | return a + (b - a)*t | |
| 529 | end | |
| 530 | ||
| 531 | ---------------------------------------------------------------------------- | |
| 532 | ||
| 533 | function Lerp(c1,c2,al) | |
| 534 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 535 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 536 | for i,v in pairs(com1) do | |
| 537 | com1[i] = v+(com2[i]-v)*al | |
| 538 | end | |
| 539 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 540 | end | |
| 541 | ||
| 542 | ---------------------------------------------------------------------------- | |
| 543 | ||
| 544 | function slerp(a, b, t) | |
| 545 | dot = a:Dot(b) | |
| 546 | if dot > 0.99999 or dot < -0.99999 then | |
| 547 | return t <= 0.5 and a or b | |
| 548 | else | |
| 549 | r = math.acos(dot) | |
| 550 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 551 | end | |
| 552 | end | |
| 553 | ||
| 554 | ---------------------------------------------------------------------------- | |
| 555 | ||
| 556 | function clerp(c1,c2,al) | |
| 557 | ||
| 558 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 559 | ||
| 560 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 561 | ||
| 562 | for i,v in pairs(com1) do | |
| 563 | ||
| 564 | com1[i] = lerp(v,com2[i],al) | |
| 565 | ||
| 566 | end | |
| 567 | ||
| 568 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 569 | ||
| 570 | end | |
| 571 | ||
| 572 | ---------------------------------------------------------------------------- | |
| 573 | ||
| 574 | function findAllNearestTorso(pos,dist) | |
| 575 | local list = game.Workspace:children() | |
| 576 | local torso = {}
| |
| 577 | local temp = nil | |
| 578 | local human = nil | |
| 579 | local temp2 = nil | |
| 580 | for x = 1, #list do | |
| 581 | temp2 = list[x] | |
| 582 | if (temp2.className == "Model") and (temp2 ~= char) then | |
| 583 | local nayem = "Torso" | |
| 584 | if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
| |
| 585 | temp = temp2:findFirstChild(nayem) | |
| 586 | human = temp2:findFirstChildOfClass("Humanoid")
| |
| 587 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
| 588 | if (temp.Position - pos).magnitude < dist then | |
| 589 | table.insert(torso,temp) | |
| 590 | dist = (temp.Position - pos).magnitude | |
| 591 | end | |
| 592 | end | |
| 593 | end | |
| 594 | end | |
| 595 | return torso | |
| 596 | end | |
| 597 | ||
| 598 | ---------------------------------------------------------------------------- | |
| 599 | ||
| 600 | local isAPlayer | |
| 601 | function checkIfNotPlayer(model) | |
| 602 | coroutine.resume(coroutine.create(function() | |
| 603 | if model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel then | |
| 604 | isAPlayer = true | |
| 605 | else | |
| 606 | isAPlayer = false | |
| 607 | end | |
| 608 | end)) | |
| 609 | return isAPlayer | |
| 610 | end | |
| 611 | ||
| 612 | ---------------------------------------------------------------------------- | |
| 613 | ||
| 614 | function computeDirection(vec) | |
| 615 | local lenSquared = vec.magnitude * vec.magnitude | |
| 616 | local invSqrt = 1 / math.sqrt(lenSquared) | |
| 617 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
| 618 | end | |
| 619 | ||
| 620 | ---------------------------------------------------------------------------- | |
| 621 | ||
| 622 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
| 623 | ||
| 624 | local wld = Instance.new("Weld", wp1)
| |
| 625 | ||
| 626 | wld.Part0 = wp0 | |
| 627 | ||
| 628 | wld.Part1 = wp1 | |
| 629 | ||
| 630 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 631 | ||
| 632 | return wld | |
| 633 | ||
| 634 | end | |
| 635 | ||
| 636 | ---------------------------------------------------------------------------- | |
| 637 | ||
| 638 | function weld(model) | |
| 639 | local parts,last = {}
| |
| 640 | local function scan(parent) | |
| 641 | for _,v in pairs(parent:GetChildren()) do | |
| 642 | if (v:IsA("BasePart")) then
| |
| 643 | if (last) then | |
| 644 | local w = Instance.new("Weld")
| |
| 645 | w.Name = ("%s_Weld"):format(v.Name)
| |
| 646 | w.Part0,w.Part1 = last,v | |
| 647 | w.C0 = last.CFrame:inverse() | |
| 648 | w.C1 = v.CFrame:inverse() | |
| 649 | w.Parent = last | |
| 650 | end | |
| 651 | last = v | |
| 652 | table.insert(parts,v) | |
| 653 | end | |
| 654 | scan(v) | |
| 655 | end | |
| 656 | end | |
| 657 | scan(model) | |
| 658 | for _,v in pairs(parts) do | |
| 659 | v.Anchored = false | |
| 660 | v.Locked = true | |
| 661 | end | |
| 662 | end | |
| 663 | ||
| 664 | ---------------------------------------------------------------------------- | |
| 665 | ||
| 666 | function sound(id,position,vol,pitch,dist,start,finish) | |
| 667 | coroutine.resume(coroutine.create(function() | |
| 668 | ||
| 669 | local part = Instance.new("Part",DebrisModel)
| |
| 670 | part.Anchored = true | |
| 671 | part.Position = position | |
| 672 | part.Size = Vector3.new(0,0,0) | |
| 673 | part.CanCollide = false | |
| 674 | part.Transparency = 1 | |
| 675 | ||
| 676 | soundasd = Instance.new("Sound",part)
| |
| 677 | ||
| 678 | soundasd.SoundId = "rbxassetid://"..id | |
| 679 | ||
| 680 | if vol ~= nil then | |
| 681 | soundasd.Volume = vol | |
| 682 | end | |
| 683 | ||
| 684 | if pitch ~= nil then | |
| 685 | soundasd.PlaybackSpeed = pitch | |
| 686 | end | |
| 687 | ||
| 688 | if dist ~= nil then | |
| 689 | soundasd.MaxDistance = dist*5 | |
| 690 | soundasd.EmitterSize = dist/5 | |
| 691 | end | |
| 692 | ||
| 693 | delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end) | |
| 694 | ||
| 695 | soundasd:Play() | |
| 696 | ||
| 697 | end)) | |
| 698 | return soundasd | |
| 699 | end | |
| 700 | ||
| 701 | function createsound(id,parent) | |
| 702 | ||
| 703 | local soundz = Instance.new("Sound",parent)
| |
| 704 | ||
| 705 | soundz.SoundId = "rbxassetid://"..id | |
| 706 | ||
| 707 | return soundz | |
| 708 | ||
| 709 | end | |
| 710 | ||
| 711 | function playsound(sond,vol,pitch,start) | |
| 712 | ||
| 713 | if vol ~= nil then | |
| 714 | sond.Volume = vol | |
| 715 | end | |
| 716 | ||
| 717 | if pitch ~= nil then | |
| 718 | sond.PlaybackSpeed = pitch | |
| 719 | end | |
| 720 | ||
| 721 | if start ~= nil then | |
| 722 | sond.TimePosition = start | |
| 723 | end | |
| 724 | ||
| 725 | sond:Play() | |
| 726 | ||
| 727 | end | |
| 728 | ||
| 729 | ---------------------------------------------------------------------------- | |
| 730 | eColors={"Really red","Really black"}
| |
| 731 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) | |
| 732 | local magz = (Part0 - Part1).magnitude | |
| 733 | local curpos = Part0 | |
| 734 | local trz = {-Offset,Offset}
| |
| 735 | for i=1,Times do | |
| 736 | local li = Instance.new("Part", DebrisModel)
| |
| 737 | li.TopSurface =0 | |
| 738 | li.Material = Enum.Material.Neon | |
| 739 | li.BottomSurface = 0 | |
| 740 | li.Anchored = true | |
| 741 | li.Locked = true | |
| 742 | li.Transparency = Trans or 0.4 | |
| 743 | li.BrickColor = BrickColor.new(Color) | |
| 744 | li.formFactor = "Custom" | |
| 745 | li.CanCollide = false | |
| 746 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
| 747 | local lim = Instance.new("BlockMesh",li)
| |
| 748 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
| 749 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
| 750 | if Times == i then | |
| 751 | local magz2 = (curpos - Part1).magnitude | |
| 752 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
| 753 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
| 754 | else | |
| 755 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
| 756 | end | |
| 757 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
| 758 | li.Name = "LIGHTNING" | |
| 759 | end | |
| 760 | end | |
| 761 | ||
| 762 | ---------------------------------------------------------------------------- | |
| 763 | ||
| 764 | local HBill = Instance.new("BillboardGui",hed)
| |
| 765 | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
| |
| 766 | local HName = Instance.new("TextLabel")
| |
| 767 | HBill.Size = UDim2.new(15,0,2.2,0) | |
| 768 | HBill.StudsOffset = Vector3.new(3.675,1.2,0) | |
| 769 | HBill.AlwaysOnTop = true | |
| 770 | HBill.Enabled = true | |
| 771 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 772 | HMain.BackgroundTransparency = 1 | |
| 773 | HMain.Size = UDim2.new(.5,0,.2,0) | |
| 774 | HName.Parent = HMain | |
| 775 | HName.BackgroundTransparency = 1 | |
| 776 | HName.BackgroundColor3 = Color3.new(244,255,25) | |
| 777 | HName.BorderColor3 = Color3.new(244,255,25) | |
| 778 | HName.BorderSizePixel = 2 | |
| 779 | HName.Size = UDim2.new(1,0,.75,0) | |
| 780 | HName.Font = "Code" | |
| 781 | HName.Text = [[(Explodi boy)]] | |
| 782 | HName.TextScaled = true | |
| 783 | HName.TextColor3 = Color3.new(244,255,25) | |
| 784 | HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1) | |
| 785 | HName.TextStrokeTransparency = 0 | |
| 786 | HName.TextYAlignment = "Bottom" | |
| 787 | ||
| 788 | local HBill = Instance.new("BillboardGui",hed)
| |
| 789 | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
| |
| 790 | local HName = Instance.new("TextLabel")
| |
| 791 | HBill.Size = UDim2.new(15,0,2.2,0) | |
| 792 | HBill.StudsOffset = Vector3.new(3.675,2,0) | |
| 793 | HBill.AlwaysOnTop = true | |
| 794 | HBill.Enabled = true | |
| 795 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 796 | HMain.BackgroundTransparency = 1 | |
| 797 | HMain.Size = UDim2.new(.5,0,.5,0) | |
| 798 | HName.Parent = HMain | |
| 799 | HName.BackgroundTransparency = 1 | |
| 800 | HName.BackgroundColor3 = Color3.new(0,0,0) | |
| 801 | HName.BorderColor3 = Color3.new(0,0,0) | |
| 802 | HName.BorderSizePixel = 2 | |
| 803 | HName.Size = UDim2.new(1,0,.75,0) | |
| 804 | HName.Font = "Antique" | |
| 805 | HName.Text = [[Katsuki Bakugo]] | |
| 806 | HName.TextScaled = true | |
| 807 | HName.TextColor3 = Color3.new(0,0,0) | |
| 808 | HName.TextStrokeColor3 = Color3.new(0,0,0) | |
| 809 | HName.TextStrokeTransparency = 0 | |
| 810 | HName.TextYAlignment = "Bottom" | |
| 811 | ||
| 812 | function bigboomrektxd() | |
| 813 | coroutine.resume(coroutine.create(function() | |
| 814 | local magnitude = nil | |
| 815 | local Position = nil | |
| 816 | if animid == 0 then | |
| 817 | Position = larm.Position | |
| 818 | else | |
| 819 | Position = rarm.Position | |
| 820 | end | |
| 821 | --sound(743499393,Position,10,math.random(6,8)/10) | |
| 822 | sound(440145223,Position,10,math.random(10,12)/10,50) | |
| 823 | ||
| 824 | local Part1 = Instance.new("Part")
| |
| 825 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 826 | mesh2.MeshId = "rbxassetid://559831844" | |
| 827 | mesh2.Scale = Vector3.new(0,0,0.4) | |
| 828 | Part1.Material = Enum.Material.Neon | |
| 829 | Part1.CanCollide = false | |
| 830 | Part1.Color = Color3.fromHSV(0,0,main.v) | |
| 831 | Part1.Parent = DebrisModel | |
| 832 | Part1.Size = Vector3.new(0,0,0) | |
| 833 | Part1.Anchored = true | |
| 834 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
| 835 | Part1.Name = "EXPLOSION2" | |
| 836 | ||
| 837 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 838 | local PointLight2 = Instance.new("PointLight")
| |
| 839 | Part0.Name = "Bullet" | |
| 840 | Part0.Material = Enum.Material.Neon | |
| 841 | Part0.Color = Color3.fromHSV(0,0,main.v) | |
| 842 | Part0.Anchored = false | |
| 843 | Part0.Size = Vector3.new(5, 5, 5) | |
| 844 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 845 | mesh.MeshType = Enum.MeshType.Sphere | |
| 846 | local bforce = Instance.new("BodyForce",Part0)
| |
| 847 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
| 848 | Part0.CanCollide = false | |
| 849 | PointLight2.Parent = Part0 | |
| 850 | PointLight2.Color = Part0.Color | |
| 851 | local Target = mouse.Hit.p | |
| 852 | local direction = Target - Position | |
| 853 | local direction = computeDirection(direction) | |
| 854 | local pos = Position + (direction * 2) | |
| 855 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 856 | Part0.Velocity = direction * 60 | |
| 857 | local asd = nil | |
| 858 | local loop = nil | |
| 859 | delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
| 860 | loop = rs:connect(function() | |
| 861 | local asdf = math.random(500,1000)/1000 | |
| 862 | local Part1 = Instance.new("Part")
| |
| 863 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 864 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 865 | Part1.Material = Enum.Material.Neon | |
| 866 | Part1.CanCollide = false | |
| 867 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
| 868 | Part1.Parent = DebrisModel | |
| 869 | Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf) | |
| 870 | Part1.Anchored = true | |
| 871 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750)) | |
| 872 | Part1.Name = "SMOKE" | |
| 873 | end) | |
| 874 | asd = Part0.Touched:connect(function(ht) | |
| 875 | local hit=ht.Parent | |
| 876 | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then | |
| 877 | asd:disconnect() | |
| 878 | loop:disconnect() | |
| 879 | Part0:Destroy() | |
| 880 | ||
| 881 | sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200) | |
| 882 | for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do | |
| 883 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
| |
| 884 | v:Destroy() | |
| 885 | else | |
| 886 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
| |
| 887 | end | |
| 888 | local Position = Part0.Position | |
| 889 | local Target = v.Position | |
| 890 | local direction = Target - Position | |
| 891 | local direction = computeDirection(direction) | |
| 892 | local bv = Instance.new("BodyVelocity",v)
| |
| 893 | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) | |
| 894 | debris:AddItem(bv,1) | |
| 895 | end | |
| 896 | for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end | |
| 897 | for z=1,math.random(2,3) do | |
| 898 | local asdf = math.random(-5,5)*10-(i/20)*8 | |
| 899 | local Part1 = Instance.new("Part")
| |
| 900 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 901 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 902 | mesh2.Scale = Vector3.new(0,0,0) | |
| 903 | Part1.Material = Enum.Material.Neon | |
| 904 | Part1.CanCollide = false | |
| 905 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
| 906 | Part1.Parent = DebrisModel | |
| 907 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 908 | Part1.Anchored = true | |
| 909 | local a = i*0.5 | |
| 910 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a)) | |
| 911 | Part1.Name = "EXPLOSION" | |
| 912 | end | |
| 913 | end | |
| 914 | ||
| 915 | end | |
| 916 | end) | |
| 917 | end)) | |
| 918 | end | |
| 919 | ||
| 920 | holdclick=false | |
| 921 | ||
| 922 | mouse.Button1Down:connect(function() | |
| 923 | if debounce == false then | |
| 924 | if animid == 0 then | |
| 925 | animid = 1 | |
| 926 | else | |
| 927 | animid = 0 | |
| 928 | end | |
| 929 | debounce = true | |
| 930 | holdclick = true | |
| 931 | aiming_anim = true | |
| 932 | wait(0.2) | |
| 933 | repeat | |
| 934 | rs:wait() | |
| 935 | timer = 150 | |
| 936 | until holdclick == false | |
| 937 | bigboomrektxd() | |
| 938 | ||
| 939 | local Position = mouse.Hit.p | |
| 940 | local Target = root.Position | |
| 941 | local direction = Target - Position | |
| 942 | local direction = computeDirection(direction) | |
| 943 | root.Velocity = direction * 150 | |
| 944 | ||
| 945 | aiming_anim = false | |
| 946 | delay(0.3,function() debounce = false end) | |
| 947 | end | |
| 948 | end) | |
| 949 | ||
| 950 | mouse.Button1Up:connect(function() | |
| 951 | holdclick=false | |
| 952 | end) | |
| 953 | ||
| 954 | function dashasdf() | |
| 955 | debounce = true | |
| 956 | ||
| 957 | canjump = false | |
| 958 | attack = true | |
| 959 | ||
| 960 | for i,v in pairs(char:GetChildren()) do | |
| 961 | if v ~= root then | |
| 962 | if v:IsA("Part") then
| |
| 963 | v.Transparency = 1 | |
| 964 | elseif v:IsA("Accoutrement") then
| |
| 965 | v:FindFirstChildOfClass("Part").Transparency = 1
| |
| 966 | end | |
| 967 | end | |
| 968 | end | |
| 969 | ||
| 970 | local tempattachment = Instance.new("Attachment",root)
| |
| 971 | tempattachment.Position = Vector3.new(0,0,-4) | |
| 972 | ||
| 973 | for i=1,20 do rs:wait() | |
| 974 | root.Velocity = Vector3.new(0,0,0) | |
| 975 | root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z)) | |
| 976 | local asdf = math.random(500,1000)/100 | |
| 977 | local Part1 = Instance.new("Part")
| |
| 978 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 979 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 980 | Part1.Material = Enum.Material.Neon | |
| 981 | Part1.CanCollide = false | |
| 982 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
| 983 | Part1.Parent = DebrisModel | |
| 984 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 985 | Part1.Anchored = true | |
| 986 | Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500)) | |
| 987 | Part1.Name = "SMOKE" | |
| 988 | end | |
| 989 | ||
| 990 | tempattachment:Destroy() | |
| 991 | ||
| 992 | for i,v in pairs(char:GetChildren()) do | |
| 993 | if v ~= root then | |
| 994 | if v:IsA("Part") then
| |
| 995 | v.Transparency = 0 | |
| 996 | elseif v:IsA("Accoutrement") then
| |
| 997 | v:FindFirstChildOfClass("Part").Transparency = 0
| |
| 998 | end | |
| 999 | end | |
| 1000 | end | |
| 1001 | ||
| 1002 | canjump = true | |
| 1003 | attack = false | |
| 1004 | ||
| 1005 | delay(0.1,function() debounce = false end) | |
| 1006 | end | |
| 1007 | ||
| 1008 | function laz0r() | |
| 1009 | ||
| 1010 | local Position = nil | |
| 1011 | if animid == 0 then | |
| 1012 | Position = larm.Position | |
| 1013 | else | |
| 1014 | Position = rarm.Position | |
| 1015 | end | |
| 1016 | ||
| 1017 | local Part1 = Instance.new("Part")
| |
| 1018 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 1019 | mesh2.MeshId = "rbxassetid://559831844" | |
| 1020 | mesh2.Scale = Vector3.new(0,0,0.4) | |
| 1021 | Part1.Material = Enum.Material.Neon | |
| 1022 | Part1.CanCollide = false | |
| 1023 | Part1.Color = Color3.fromHSV(0,0,main.v) | |
| 1024 | Part1.Parent = DebrisModel | |
| 1025 | Part1.Size = Vector3.new(0,0,0) | |
| 1026 | Part1.Anchored = true | |
| 1027 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
| 1028 | Part1.Name = "EXPLOSION3" | |
| 1029 | ||
| 1030 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 1031 | Part0.Name = "Bullet" | |
| 1032 | Part0.Material = Enum.Material.Neon | |
| 1033 | Part0.Color = Color3.fromHSV(0,0,main.v) | |
| 1034 | Part0.Anchored = true | |
| 1035 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 1036 | mesh.MeshType = Enum.MeshType.Sphere | |
| 1037 | Part0.CanCollide = false | |
| 1038 | local Target = mouse.Hit.p | |
| 1039 | local direction = Target - Position | |
| 1040 | local direction = computeDirection(direction) | |
| 1041 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
| 1042 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
| 1043 | Part0.Size = Vector3.new(5,1,5) | |
| 1044 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1) | |
| 1045 | local pos = Position + (direction * (mesh.Scale.Y/2)) | |
| 1046 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 1047 | ||
| 1048 | clashpart = Instance.new("Part",DebrisModel)
| |
| 1049 | clashpart.Size = Vector3.new(50,50,50) | |
| 1050 | clashpart.CanCollide = false | |
| 1051 | clashpart.Anchored = true | |
| 1052 | clashpart.Transparency = 1 | |
| 1053 | clashpart.Color = main_color | |
| 1054 | clashpart.Name = "StarLightClash" | |
| 1055 | clashpart.CFrame = CFrame.new(endPoint, root.Position) | |
| 1056 | ||
| 1057 | sound(1177475476,Position,10,math.random(5,6)/10,300) | |
| 1058 | ||
| 1059 | local z = 10 | |
| 1060 | for i = 1,100 do rs:wait() | |
| 1061 | if animid == 0 then | |
| 1062 | Position = larm.Position | |
| 1063 | else | |
| 1064 | Position = rarm.Position | |
| 1065 | end | |
| 1066 | local Target = mouse.Hit.p | |
| 1067 | local direction = Target - Position | |
| 1068 | local direction = computeDirection(direction) | |
| 1069 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
| 1070 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
| 1071 | Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5)) | |
| 1072 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1) | |
| 1073 | mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0) | |
| 1074 | local pos = Position + (direction * (mesh.Scale.Y/2)) | |
| 1075 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 1076 | clashpart.CFrame = CFrame.new(endPoint, root.Position) | |
| 1077 | ||
| 1078 | local Position = mouse.Hit.p | |
| 1079 | local Target = root.Position | |
| 1080 | local direction = Target - Position | |
| 1081 | local direction = computeDirection(direction) | |
| 1082 | root.Velocity = direction * 5 | |
| 1083 | ||
| 1084 | if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end | |
| 1085 | ||
| 1086 | Part1 = Part0:Clone() | |
| 1087 | Part1.Parent = DebrisModel | |
| 1088 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
| 1089 | Part1.Name = "SMOKE2" | |
| 1090 | ||
| 1091 | if part ~= nil then | |
| 1092 | if part.Name == "StarLightClash" then | |
| 1093 | local asdf = math.random(0,5)*20 | |
| 1094 | local Part1 = Instance.new("Part")
| |
| 1095 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 1096 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 1097 | mesh2.Scale = Vector3.new(0,0,0) | |
| 1098 | Part1.Material = Enum.Material.Neon | |
| 1099 | Part1.CanCollide = false | |
| 1100 | Part1.Color = Color3.fromHSV(Color3.toHSV(Color3.fromRGB((main.r+(255*part.Color.r))/2,(main.g+(255*part.Color.g))/2,(main.b+(255*part.Color.b))/2)),math.random(5000,10000)/10000,main.v) | |
| 1101 | Part1.Parent = DebrisModel | |
| 1102 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 1103 | Part1.Anchored = true | |
| 1104 | local a = 1.5 | |
| 1105 | Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) | |
| 1106 | Part1.Name = "EXPLOSION" | |
| 1107 | else | |
| 1108 | local asdf = math.random(0,5)*10 | |
| 1109 | local Part1 = Instance.new("Part")
| |
| 1110 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 1111 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 1112 | mesh2.Scale = Vector3.new(0,0,0) | |
| 1113 | Part1.Material = Enum.Material.Neon | |
| 1114 | Part1.CanCollide = false | |
| 1115 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
| 1116 | Part1.Parent = DebrisModel | |
| 1117 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 1118 | Part1.Anchored = true | |
| 1119 | local a = 1.5 | |
| 1120 | Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) | |
| 1121 | Part1.Name = "EXPLOSION" | |
| 1122 | end | |
| 1123 | end | |
| 1124 | ||
| 1125 | for i,v in pairs(findAllNearestTorso(endPoint,50)) do | |
| 1126 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
| |
| 1127 | v:Destroy() | |
| 1128 | else | |
| 1129 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
| |
| 1130 | end | |
| 1131 | local Position = mouse.Hit.p | |
| 1132 | local Target = v.Position | |
| 1133 | local direction = Target - Position | |
| 1134 | local direction = computeDirection(direction) | |
| 1135 | local bv = Instance.new("BodyVelocity",v)
| |
| 1136 | bv.Velocity = direction * (10 - ((Position - Target).magnitude/2)) | |
| 1137 | debris:AddItem(bv,1) | |
| 1138 | end | |
| 1139 | ||
| 1140 | end | |
| 1141 | clashpart:Destroy() | |
| 1142 | Part0:Destroy() | |
| 1143 | wait(0.3) | |
| 1144 | aiming_anim = false | |
| 1145 | delay(0.3,function() debounce = false end) | |
| 1146 | end | |
| 1147 | ||
| 1148 | function nukewelpo() | |
| 1149 | coroutine.resume(coroutine.create(function() | |
| 1150 | local magnitude = nil | |
| 1151 | local Position = nil | |
| 1152 | if animid == 0 then | |
| 1153 | Position = larm.Position | |
| 1154 | else | |
| 1155 | Position = rarm.Position | |
| 1156 | end | |
| 1157 | --sound(743499393,Position,10,math.random(6,8)/10) | |
| 1158 | sound(440145223,Position,10,math.random(4,5)/10,100) | |
| 1159 | ||
| 1160 | local Part1 = Instance.new("Part")
| |
| 1161 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 1162 | mesh2.MeshId = "rbxassetid://559831844" | |
| 1163 | mesh2.Scale = Vector3.new(0,0,0.4) | |
| 1164 | Part1.Material = Enum.Material.Neon | |
| 1165 | Part1.CanCollide = false | |
| 1166 | Part1.Color = Color3.fromHSV(0,0,main.v) | |
| 1167 | Part1.Parent = DebrisModel | |
| 1168 | Part1.Size = Vector3.new(0,0,0) | |
| 1169 | Part1.Anchored = true | |
| 1170 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
| 1171 | Part1.Name = "EXPLOSION3" | |
| 1172 | ||
| 1173 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 1174 | local PointLight2 = Instance.new("PointLight")
| |
| 1175 | Part0.Name = "Bullet" | |
| 1176 | Part0.Material = Enum.Material.Neon | |
| 1177 | Part0.Color = Color3.fromHSV(0,0,main.v) | |
| 1178 | Part0.Anchored = false | |
| 1179 | Part0.Size = Vector3.new(5, 5, 5) | |
| 1180 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 1181 | mesh.MeshType = Enum.MeshType.Sphere | |
| 1182 | mesh.Scale = Vector3.new(3,3,3) | |
| 1183 | local bforce = Instance.new("BodyForce",Part0)
| |
| 1184 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
| 1185 | Part0.CanCollide = false | |
| 1186 | PointLight2.Parent = Part0 | |
| 1187 | PointLight2.Color = Part0.Color | |
| 1188 | local Target = mouse.Hit.p | |
| 1189 | local direction = Target - Position | |
| 1190 | local direction = computeDirection(direction) | |
| 1191 | local pos = Position + (direction * 2) | |
| 1192 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 1193 | Part0.Velocity = direction * 150 | |
| 1194 | local asd = nil | |
| 1195 | local loop = nil | |
| 1196 | delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
| 1197 | loop = rs:connect(function() | |
| 1198 | local asdf = math.random(500,1000)/1000 | |
| 1199 | local Part1 = Instance.new("Part")
| |
| 1200 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 1201 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 1202 | Part1.Material = Enum.Material.Neon | |
| 1203 | Part1.CanCollide = false | |
| 1204 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
| 1205 | Part1.Parent = DebrisModel | |
| 1206 | Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf) | |
| 1207 | Part1.Anchored = true | |
| 1208 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750)) | |
| 1209 | Part1.Name = "SMOKE" | |
| 1210 | end) | |
| 1211 | asd = Part0.Touched:connect(function(ht) | |
| 1212 | local hit=ht.Parent | |
| 1213 | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then | |
| 1214 | asd:disconnect() | |
| 1215 | loop:disconnect() | |
| 1216 | Part0:Destroy() | |
| 1217 | ||
| 1218 | sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500) | |
| 1219 | for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do | |
| 1220 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
| |
| 1221 | v:Destroy() | |
| 1222 | else | |
| 1223 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
| |
| 1224 | end | |
| 1225 | local Position = Part0.Position | |
| 1226 | local Target = v.Position | |
| 1227 | local direction = Target - Position | |
| 1228 | local direction = computeDirection(direction) | |
| 1229 | local bv = Instance.new("BodyVelocity",v)
| |
| 1230 | bv.Velocity = direction * (120 - ((Position - Target).magnitude/2)) | |
| 1231 | debris:AddItem(bv,1) | |
| 1232 | end | |
| 1233 | for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end | |
| 1234 | for z=1,math.random(2,3) do | |
| 1235 | local asdf = math.random(-5,5)*10-(i/20)*12 | |
| 1236 | local Part1 = Instance.new("Part")
| |
| 1237 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 1238 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 1239 | mesh2.Scale = Vector3.new(0,0,0) | |
| 1240 | Part1.Material = Enum.Material.Neon | |
| 1241 | Part1.CanCollide = false | |
| 1242 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
| 1243 | Part1.Parent = DebrisModel | |
| 1244 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 1245 | Part1.Anchored = true | |
| 1246 | local a = i*5 | |
| 1247 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a)) | |
| 1248 | Part1.Name = "EXPLOSION4" | |
| 1249 | end | |
| 1250 | end | |
| 1251 | ||
| 1252 | end | |
| 1253 | end) | |
| 1254 | end)) | |
| 1255 | end | |
| 1256 | ||
| 1257 | holdq = false | |
| 1258 | holdr = false | |
| 1259 | cooldownult = false | |
| 1260 | ||
| 1261 | mouse.KeyDown:connect(function(key) | |
| 1262 | if debounce == false then | |
| 1263 | if key == "e" then | |
| 1264 | dashasdf() | |
| 1265 | elseif key == "r" and cooldownult == false then | |
| 1266 | cooldownult = false | |
| 1267 | if animid == 0 then | |
| 1268 | animid = 1 | |
| 1269 | else | |
| 1270 | animid = 0 | |
| 1271 | end | |
| 1272 | debounce = true | |
| 1273 | holdr = true | |
| 1274 | aiming_anim = true | |
| 1275 | wait(0.2) | |
| 1276 | repeat | |
| 1277 | rs:wait() | |
| 1278 | timer = 1 | |
| 1279 | until holdr == false | |
| 1280 | nukewelpo() | |
| 1281 | ||
| 1282 | local Position = mouse.Hit.p | |
| 1283 | local Target = root.Position | |
| 1284 | local direction = Target - Position | |
| 1285 | local direction = computeDirection(direction) | |
| 1286 | root.Velocity = direction * 450 | |
| 1287 | ||
| 1288 | aiming_anim = false | |
| 1289 | delay(5,function() cooldownult = false end) | |
| 1290 | delay(1,function() debounce = false end) | |
| 1291 | ||
| 1292 | elseif key == "q" then | |
| 1293 | debounce = true | |
| 1294 | if animid == 0 then | |
| 1295 | animid = 1 | |
| 1296 | else | |
| 1297 | animid = 0 | |
| 1298 | end | |
| 1299 | holdq = true | |
| 1300 | attack = true | |
| 1301 | aiming_anim = true | |
| 1302 | repeat rs:wait() timer = 1 until holdq == false | |
| 1303 | laz0r() | |
| 1304 | attack = false | |
| 1305 | end | |
| 1306 | end | |
| 1307 | end) | |
| 1308 | ||
| 1309 | mouse.KeyUp:connect(function(key) | |
| 1310 | if key == "q" then | |
| 1311 | holdq = false | |
| 1312 | elseif key == "r" then | |
| 1313 | holdr = false | |
| 1314 | end | |
| 1315 | end) | |
| 1316 | ||
| 1317 | ---------------------------------------------------------------------------- | |
| 1318 | music(themeid,themepitch) | |
| 1319 | velocityYFall=0 | |
| 1320 | velocityYFall2=0 | |
| 1321 | velocityYFall3=0 | |
| 1322 | velocityYFall4=0 | |
| 1323 | neckrotY=0 | |
| 1324 | neckrotY2=0 | |
| 1325 | torsorotY=0 | |
| 1326 | torsorotY2=0 | |
| 1327 | torsoY=0 | |
| 1328 | torsoY2=0 | |
| 1329 | sine = 0 | |
| 1330 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 1331 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 1332 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 1333 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 1334 | newWeld(torso, hed, 0, 1.5, 0) | |
| 1335 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 1336 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 1337 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 1338 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 1339 | newWeld(root, torso, 0, -1, 0) | |
| 1340 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 1341 | ||
| 1342 | rs:connect(function() | |
| 1343 | ||
| 1344 | bg.MaxTorque = Vector3.new(0,0,0) | |
| 1345 | ||
| 1346 | for i,v in pairs(DebrisModel:GetChildren()) do | |
| 1347 | ||
| 1348 | ||
| 1349 | if v.Name == "EXPLOSION" then | |
| 1350 | local change = 0.04-(v.Transparency*0.02) | |
| 1351 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 1352 | vm.Scale = vm.Scale + Vector3.new(change,change,change) | |
| 1353 | v.Transparency = v.Transparency + 0.02 | |
| 1354 | if v.Transparency >= 1 then | |
| 1355 | v:Destroy() | |
| 1356 | end | |
| 1357 | ||
| 1358 | elseif v.Name == "EXPLOSION2" then | |
| 1359 | local change = 0.04-(v.Transparency*0.04) | |
| 1360 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 1361 | vm.Scale = vm.Scale + Vector3.new(change,change,0) | |
| 1362 | v.Transparency = v.Transparency + 0.025 | |
| 1363 | if v.Transparency >= 1 then | |
| 1364 | v:Destroy() | |
| 1365 | end | |
| 1366 | ||
| 1367 | elseif v.Name == "EXPLOSION3" then | |
| 1368 | local change = 0.5-(v.Transparency*0.5) | |
| 1369 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 1370 | vm.Scale = vm.Scale + Vector3.new(change,change,0) | |
| 1371 | v.Transparency = v.Transparency + 0.1 | |
| 1372 | if v.Transparency >= 1 then | |
| 1373 | v:Destroy() | |
| 1374 | end | |
| 1375 | ||
| 1376 | elseif v.Name == "EXPLOSION4" then | |
| 1377 | local change = 0.15-(v.Transparency*0.125) | |
| 1378 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 1379 | vm.Scale = vm.Scale + Vector3.new(change,change,change) | |
| 1380 | v.Transparency = v.Transparency + 0.01 | |
| 1381 | if v.Transparency >= 1 then | |
| 1382 | v:Destroy() | |
| 1383 | end | |
| 1384 | ||
| 1385 | elseif v.Name == "SMOKE" then | |
| 1386 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 1387 | vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075) | |
| 1388 | if vm.Scale.X <= 0 then | |
| 1389 | v:Destroy() | |
| 1390 | end | |
| 1391 | ||
| 1392 | elseif v.Name == "SMOKE2" then | |
| 1393 | local change = 2-(v.Transparency*2) | |
| 1394 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 1395 | local Position = nil | |
| 1396 | if animid == 0 then | |
| 1397 | Position = larm.Position | |
| 1398 | else | |
| 1399 | Position = rarm.Position | |
| 1400 | end | |
| 1401 | local Target = mouse.Hit.p | |
| 1402 | local direction = Target - Position | |
| 1403 | local direction = computeDirection(direction) | |
| 1404 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
| 1405 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
| 1406 | vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change) | |
| 1407 | local pos = Position + (direction * (vm.Scale.Y/2)) | |
| 1408 | v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 1409 | vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0) | |
| 1410 | v.Transparency = v.Transparency + 0.1 | |
| 1411 | if v.Transparency >= 1 then | |
| 1412 | v:Destroy() | |
| 1413 | end | |
| 1414 | ||
| 1415 | ||
| 1416 | elseif v.Name == "LIGHTNING" then | |
| 1417 | local vm = v:FindFirstChildOfClass("BlockMesh")
| |
| 1418 | vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0) | |
| 1419 | if vm.Scale.X <= 0 then | |
| 1420 | v:Destroy() | |
| 1421 | end | |
| 1422 | ||
| 1423 | end | |
| 1424 | end | |
| 1425 | ||
| 1426 | if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then | |
| 1427 | velocityYFall = root.Velocity.Y/1.5 | |
| 1428 | end | |
| 1429 | if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then | |
| 1430 | velocityYFall2 = root.Velocity.Y/180 | |
| 1431 | end | |
| 1432 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then | |
| 1433 | velocityYFall3 = root.Velocity.Y/1.5 | |
| 1434 | end | |
| 1435 | if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then | |
| 1436 | velocityYFall4 = root.Velocity.Y/1.5 | |
| 1437 | end | |
| 1438 | if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then | |
| 1439 | neckrotY = root.RotVelocity.Y/6 | |
| 1440 | end | |
| 1441 | if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then | |
| 1442 | neckrotY2 = root.RotVelocity.Y/8 | |
| 1443 | end | |
| 1444 | ||
| 1445 | if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then | |
| 1446 | torsorotY = root.RotVelocity.Y/6 | |
| 1447 | end | |
| 1448 | if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then | |
| 1449 | torsorotY2 = root.RotVelocity.Y/8 | |
| 1450 | end | |
| 1451 | ||
| 1452 | ||
| 1453 | torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20 | |
| 1454 | torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36 | |
| 1455 | ||
| 1456 | if attack == true then | |
| 1457 | hum.WalkSpeed = 1 | |
| 1458 | else | |
| 1459 | hum.WalkSpeed = 10 | |
| 1460 | end | |
| 1461 | ||
| 1462 | if canjump == true then | |
| 1463 | hum.JumpPower = 50 | |
| 1464 | else | |
| 1465 | hum.JumpPower = 0 | |
| 1466 | end | |
| 1467 | ||
| 1468 | local jumped = false | |
| 1469 | local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0)) | |
| 1470 | local part1, endPoint = workspace:FindPartOnRay(ray1, char) | |
| 1471 | local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0)) | |
| 1472 | local part2, endPoint = workspace:FindPartOnRay(ray2, char) | |
| 1473 | local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0)) | |
| 1474 | local part3, endPoint = workspace:FindPartOnRay(ray3, char) | |
| 1475 | local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0)) | |
| 1476 | local part4, endPoint = workspace:FindPartOnRay(ray4, char) | |
| 1477 | ||
| 1478 | if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end | |
| 1479 | ||
| 1480 | local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0)) | |
| 1481 | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char) | |
| 1482 | ||
| 1483 | local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0)) | |
| 1484 | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char) | |
| 1485 | ||
| 1486 | if no_anim == false then | |
| 1487 | if hum.Health > 0 then | |
| 1488 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then | |
| 1489 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) | |
| 1490 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1) | |
| 1491 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/30)*math.cos(sine/4)/2,(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 1492 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/30)*math.cos(sine/4)/2,-(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 1493 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+(movement/20)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-4*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1) | |
| 1494 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.85-(movement/10)*math.cos(sine/4)/2,-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 1495 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.85+(movement/10)*math.cos(sine/4)/2,-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 1496 | elseif jumped == true then | |
| 1497 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) | |
| 1498 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1) | |
| 1499 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-50-1*math.cos(sine/8))), 0.2) | |
| 1500 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(50+1*math.cos(sine/8))), 0.2) | |
| 1501 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) | |
| 1502 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(-35-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2) | |
| 1503 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0+0.1*math.cos(sine/16),-0.8)*CFrame.Angles(math.rad(-25+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2) | |
| 1504 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then | |
| 1505 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) | |
| 1506 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1) | |
| 1507 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-5-1*math.cos(sine/8))), 0.2) | |
| 1508 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(5+1*math.cos(sine/8))), 0.2) | |
| 1509 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) | |
| 1510 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2) | |
| 1511 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2) | |
| 1512 | end | |
| 1513 | for i=1,5 do | |
| 1514 | if aiming_anim == true then | |
| 1515 | bg.MaxTorque = Vector3.new(9e9,9e9,9e9) | |
| 1516 | if jumped == false then | |
| 1517 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
| 1518 | else | |
| 1519 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
| 1520 | end | |
| 1521 | if animid == 0 then | |
| 1522 | hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4) | |
| 1523 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2) | |
| 1524 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4) | |
| 1525 | else | |
| 1526 | hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4) | |
| 1527 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(80), math.rad(0-1*math.cos(sine/32))),0.2) | |
| 1528 | rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(10-1*math.cos(sine/16)),math.rad(90+1*math.cos(sine/8))),0.4) | |
| 1529 | end | |
| 1530 | else | |
| 1531 | if timer <= 0 then | |
| 1532 | animid = math.random(0,1) | |
| 1533 | else | |
| 1534 | timer = timer - 1 | |
| 1535 | end | |
| 1536 | end | |
| 1537 | end | |
| 1538 | end | |
| 1539 | end | |
| 1540 | main_color = Color3.fromRGB(main.r,main.g,main.b) | |
| 1541 | pr.Value = main.r | |
| 1542 | pg.Value = main.g | |
| 1543 | pb.Value = main.b | |
| 1544 | pv.Value = main.v | |
| 1545 | idth.Value = themeid | |
| 1546 | pith.Value = themepitch | |
| 1547 | HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2) | |
| 1548 | HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v) | |
| 1549 | sine = sine + change | |
| 1550 | if hum.Health <= 0 then | |
| 1551 | debounce = true | |
| 1552 | end | |
| 1553 | end) | |
| 1554 | ||
| 1555 | ||
| 1556 | ||
| 1557 | --Extras-- | |
| 1558 | q = char:GetChildren() | |
| 1559 | for u = 1, #q do | |
| 1560 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
| 1561 | q[u]:remove() | |
| 1562 | elseif q[u].ClassName == "CharacterMesh" then | |
| 1563 | q[u]:remove() | |
| 1564 | elseif q[u].ClassName == "ShirtGraphic" then | |
| 1565 | q[u]:remove() | |
| 1566 | elseif q[u].ClassName == "Shirt" then | |
| 1567 | q[u]:Destroy() | |
| 1568 | elseif q[u].ClassName == "Pants" then | |
| 1569 | q[u]:Destroy() | |
| 1570 | end | |
| 1571 | end | |
| 1572 | local top = Instance.new("Shirt")
| |
| 1573 | top.ShirtTemplate = "rbxassetid://941860872" | |
| 1574 | top.Parent = char | |
| 1575 | local bottom = Instance.new("Pants")
| |
| 1576 | bottom.PantsTemplate = "rbxassetid://940565415" | |
| 1577 | bottom.Parent = char | |
| 1578 | ||
| 1579 | local BodyColors = char:FindFirstChildOfClass"BodyColors" | |
| 1580 | if BodyColors then | |
| 1581 | BodyColors.HeadColor = BrickColor.new"Pastel brown" | |
| 1582 | BodyColors.TorsoColor = BrickColor.new"Pastel brown" | |
| 1583 | BodyColors.LeftArmColor = BrickColor.new"Pastel brown" | |
| 1584 | BodyColors.RightArmColor = BrickColor.new"Really black" | |
| 1585 | BodyColors.LeftLegColor = BrickColor.new"Pastel brown" | |
| 1586 | BodyColors.RightLegColor = BrickColor.new"Pastel brown" | |
| 1587 | end | |
| 1588 | char.Head.face.Texture = "rbxassetid://2000997465" | |
| 1589 | -------------Head--------------------------------- | |
| 1590 | char:FindFirstChildOfClass'Humanoid'.JumpPower = 100 | |
| 1591 | ||
| 1592 | Head = Instance.new("Part", char)
| |
| 1593 | Head.Size = Vector3.new(1,1,1) | |
| 1594 | Headmesh = Instance.new("SpecialMesh", Head)
| |
| 1595 | Headmesh.MeshId = "rbxassetid://538172339" | |
| 1596 | Headmesh.Scale = Vector3.new(1,1,1) | |
| 1597 | Head.Transparency = 0 | |
| 1598 | Head.CanCollide = false | |
| 1599 | Head.Name = "plrHead" | |
| 1600 | Head.Anchored = false | |
| 1601 | Head.BrickColor = BrickColor.new("Brick yellow")
| |
| 1602 | Weld = Instance.new("Weld", char)
| |
| 1603 | Weld.Part0 = char["Head"] | |
| 1604 | Weld.Part1 = Head | |
| 1605 | Weld.C1 = CFrame.new(0,-0.5,0)*CFrame.Angles(0,-6,0) | |
| 1606 | -------------Head--------------------------------- | |
| 1607 | char:FindFirstChildOfClass'Humanoid'.JumpPower = 100 | |
| 1608 | ||
| 1609 | Head = Instance.new("Part", char)
| |
| 1610 | Head.Size = Vector3.new(1,1,1) | |
| 1611 | Headmesh = Instance.new("SpecialMesh", Head)
| |
| 1612 | Headmesh.MeshId = "rbxassetid://538172339" | |
| 1613 | Headmesh.Scale = Vector3.new(1,1,1) | |
| 1614 | Head.Transparency = 0 | |
| 1615 | Head.CanCollide = false | |
| 1616 | Head.Name = "plrHead" | |
| 1617 | Head.Anchored = false | |
| 1618 | Head.BrickColor = BrickColor.new("Brick yellow")
| |
| 1619 | Weld = Instance.new("Weld", char)
| |
| 1620 | Weld.Part0 = char["Head"] | |
| 1621 | Weld.Part1 = Head | |
| 1622 | Weld.C1 = CFrame.new(0,-0.5,.15)*CFrame.Angles(-1,6,0) | |
| 1623 | --extras | |
| 1624 | local talksound = Instance.new("Sound",char.Torso)
| |
| 1625 | talksound.SoundId = "rbxassetid://" | |
| 1626 | talksound.Volume = 4 | |
| 1627 | local blastsound = Instance.new("Sound",char)
| |
| 1628 | blastsound.Name = "blast_sound" | |
| 1629 | blastsound.SoundId = "rbxassetid://345052019" | |
| 1630 | blastsound.Volume = 4 | |
| 1631 | function swait(num) | |
| 1632 | if num==0 or num==nil then | |
| 1633 | game:service'RunService'.Stepped:wait(0) | |
| 1634 | else | |
| 1635 | for i=0,num do | |
| 1636 | game:service'RunService'.Stepped:wait(0) | |
| 1637 | end | |
| 1638 | end | |
| 1639 | end | |
| 1640 | ||
| 1641 | function chatfunc(text) | |
| 1642 | local chat = coroutine.wrap(function() | |
| 1643 | if char:FindFirstChild("TalkingBillBoard") ~= nil then
| |
| 1644 | char:FindFirstChild("TalkingBillBoard"):Destroy()
| |
| 1645 | end | |
| 1646 | local naeeym2 = Instance.new("BillboardGui",char)
| |
| 1647 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 1648 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 1649 | naeeym2.Adornee = char.Head | |
| 1650 | naeeym2.Name = "TalkingBillBoard" | |
| 1651 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 1652 | tecks2.BackgroundTransparency = 1 | |
| 1653 | tecks2.BorderSizePixel = 0 | |
| 1654 | tecks2.Text = "" | |
| 1655 | tecks2.Font = "Fantasy" | |
| 1656 | tecks2.TextSize = 30 | |
| 1657 | tecks2.TextStrokeTransparency = 0 | |
| 1658 | tecks2.TextColor3 = Color3.new(.6,0,0) | |
| 1659 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 1660 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 1661 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 1662 | tecks3.BackgroundTransparency = 1 | |
| 1663 | tecks3.BorderSizePixel = 0 | |
| 1664 | tecks3.Text = "" | |
| 1665 | tecks3.Font = "Fantasy" | |
| 1666 | tecks3.TextSize = 30 | |
| 1667 | tecks3.TextStrokeTransparency = 0 | |
| 1668 | tecks3.TextColor3 = Color3.new(0,0,0) | |
| 1669 | tecks3.TextStrokeColor3 = Color3.new(1,1,1) | |
| 1670 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
| 1671 | for i = 1,string.len(text),1 do | |
| 1672 | tecks2.Text = string.sub(text,1,i) | |
| 1673 | tecks3.Text = string.sub(text,1,i) | |
| 1674 | tecks3.Text = string.sub(text,1,i) | |
| 1675 | talksound:Play() | |
| 1676 | wait(0.01) | |
| 1677 | end | |
| 1678 | wait(2) | |
| 1679 | for i = 1, 50 do | |
| 1680 | swait() | |
| 1681 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 1682 | tecks2.Rotation = tecks2.Rotation - .8 | |
| 1683 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 1684 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 1685 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 1686 | tecks3.Rotation = tecks2.Rotation + .8 | |
| 1687 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 1688 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 1689 | end | |
| 1690 | naeeym2:Destroy() | |
| 1691 | end) | |
| 1692 | chat() | |
| 1693 | end | |
| 1694 | function onChatted(msg) | |
| 1695 | chatfunc(msg) | |
| 1696 | end | |
| 1697 | plr.Chatted:connect(onChatted) | |
| 1698 | wait(2) | |
| 1699 | chatfunc("that damned nerd...")
| |
| 1700 | wait(2) | |
| 1701 | chatfunc("He thinks he is better than me..")
| |
| 1702 | wait(2) | |
| 1703 | chatfunc("He's gonna DIE....")
| |
| 1704 | wait(2) | |
| 1705 | chatfunc("...")
| |
| 1706 | wait(2) | |
| 1707 | chatfunc("I will be the Number One Hero!!.")
| |
| 1708 | wait(0.5) | |
| 1709 | char.Humanoid.Name = "Sans" | |
| 1710 | ||
| 1711 | --chat | |
| 1712 | ||
| 1713 | function Blast(AAA) | |
| 1714 | if AAA == "f" then | |
| 1715 | local chatmath = math.random(1,3) | |
| 1716 | if chatmath == 1 then | |
| 1717 | chatfunc("Gaster Blaster!")
| |
| 1718 | end | |
| 1719 | if chatmath == 2 then | |
| 1720 | chatfunc("This is what you get for killing everybody.")
| |
| 1721 | end | |
| 1722 | if chatmath == 3 then | |
| 1723 | chatfunc("Look, I gave up trying to go back a long time ago.")
| |
| 1724 | end | |
| 1725 | local gasterblaster = Instance.new("Part",char.Torso)
| |
| 1726 | gasterblaster.Size = Vector3.new(7, 16, 4) | |
| 1727 | gasterblaster.CanCollide = false | |
| 1728 | local gasterblastermesh = Instance.new("FileMesh",gasterblaster)
| |
| 1729 | gasterblastermesh.MeshId = "rbxassetid://431908407" | |
| 1730 | gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05) | |
| 1731 | local gasterblastertexture = Instance.new("Decal",gasterblaster)
| |
| 1732 | gasterblastertexture.Face = "Back" | |
| 1733 | gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828" | |
| 1734 | local weeld = Instance.new("Weld",gasterblaster)
| |
| 1735 | weeld.Part0 = gasterblaster | |
| 1736 | weeld.Part1 = char.Torso | |
| 1737 | weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375) | |
| 1738 | blastsound:Play() | |
| 1739 | char.Head.Anchored = true | |
| 1740 | wait(1) | |
| 1741 | local blast = Instance.new("Part",gasterblaster)
| |
| 1742 | blast.Size = Vector3.new(18.07, 16.36, 73.54) | |
| 1743 | blast.Transparency = 0.7 | |
| 1744 | blast.Material = "Neon" | |
| 1745 | blast.Color = Color3.new(1,1,1) | |
| 1746 | blast.CanCollide = true | |
| 1747 | local blastweld = Instance.new("Weld",blast)
| |
| 1748 | blastweld.Part0 = blast | |
| 1749 | blastweld.Part1 = gasterblaster | |
| 1750 | blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1751 | blast.Touched:connect(function(part) | |
| 1752 | part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
| |
| 1753 | end) | |
| 1754 | wait(2) | |
| 1755 | char.Head.Anchored = false | |
| 1756 | blast:Destroy() | |
| 1757 | gasterblaster:Destroy() | |
| 1758 | end | |
| 1759 | end | |
| 1760 | mouse.KeyDown:connect(Blast) |