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