SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,game,owner = owner,game | |
| 3 | local RealPlayer = Player | |
| 4 | do | |
| 5 | print("FE Compatibility code by Mokiros")
| |
| 6 | local rp = RealPlayer | |
| 7 | script.Parent = rp.Character | |
| 8 | ||
| 9 | --RemoteEvent for communicating | |
| 10 | local Event = Instance.new("RemoteEvent")
| |
| 11 | Event.Name = "UserInput_Event" | |
| 12 | ||
| 13 | --Fake event to make stuff like Mouse.KeyDown work | |
| 14 | local function fakeEvent() | |
| 15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 16 | t.connect = t.Connect | |
| 17 | return t | |
| 18 | - | local Player = game.Players:FindFirstChild(script.Parent.Parent.Name) |
| 18 | + | |
| 19 | - | local Player = script.LocalScript:Clone(); |
| 19 | + | |
| 20 | - | LocalScript.Parent = Player.Character; |
| 20 | + | --Creating fake input objects with fake variables |
| 21 | - | script.LocalScript:Destroy() |
| 21 | + | |
| 22 | - | local Mouse,mouse,UserInputService,ContextActionService |
| 22 | + | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
|
| 23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 24 | - | local GUID = {}
|
| 24 | + | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
|
| 25 | - | do |
| 25 | + | end} |
| 26 | - | GUID.IDs = {};
|
| 26 | + | --Merged 2 functions into one by checking amount of arguments |
| 27 | - | function GUID:new(len) |
| 27 | + | CAS.UnbindAction = CAS.BindAction |
| 28 | - | local id; |
| 28 | + | |
| 29 | - | if(not len)then |
| 29 | + | --This function will trigger the events that have been :Connect()'ed |
| 30 | - | id = (tostring(function() end)) |
| 30 | + | |
| 31 | - | id = id:gsub("function: ","")
|
| 31 | + | local t = m[ev] |
| 32 | if t and t._fakeEvent then | |
| 33 | - | local function genID(len) |
| 33 | + | for _,f in pairs(t.Functions) do |
| 34 | - | local newID = "" |
| 34 | + | f(...) |
| 35 | - | for i = 1,len do |
| 35 | + | |
| 36 | - | newID = newID..string.char(math.random(48,90)) |
| 36 | + | |
| 37 | - | end |
| 37 | + | |
| 38 | - | return newID |
| 38 | + | |
| 39 | - | end |
| 39 | + | UIS.TrigEvent = te |
| 40 | - | repeat id = genID(len) until not GUID.IDs[id] |
| 40 | + | |
| 41 | - | local oid = id; |
| 41 | + | |
| 42 | - | id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
|
| 42 | + | if plr~=rp then return end |
| 43 | - | GUID.IDs[oid]=true; |
| 43 | + | m.Target = io.Target |
| 44 | m.Hit = io.Hit | |
| 45 | - | return id |
| 45 | + | if not io.isMouse then |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | - | local AHB = Instance.new("BindableEvent")
|
| 49 | + | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | - | local FPS = 30 |
| 51 | + | |
| 52 | if k==io.KeyCode then | |
| 53 | - | local TimeFrame = 0 |
| 53 | + | |
| 54 | end | |
| 55 | - | local LastFrame = tick() |
| 55 | + | |
| 56 | - | local Frame = 1/FPS |
| 56 | + | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | - | game:service'RunService'.Heartbeat:connect(function(s,p) |
| 58 | + | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
| 59 | - | TimeFrame = TimeFrame + s |
| 59 | + | |
| 60 | - | if(TimeFrame >= Frame)then |
| 60 | + | |
| 61 | - | for i = 1,math.floor(TimeFrame/Frame) do |
| 61 | + | Event.Parent = NLS([==[ |
| 62 | - | AHB:Fire() |
| 62 | + | local Player = game:GetService("Players").LocalPlayer
|
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | - | LastFrame=tick() |
| 64 | + | local Mouse = Player:GetMouse() |
| 65 | - | TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame) |
| 65 | + | local UIS = game:GetService("UserInputService")
|
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 70 | - | function swait(dur) |
| 70 | + | |
| 71 | - | if(dur == 0 or typeof(dur) ~= 'number')then |
| 71 | + | UIS.InputBegan:Connect(input) |
| 72 | - | AHB.Event:wait() |
| 72 | + | UIS.InputEnded:Connect(input) |
| 73 | local h,t | |
| 74 | - | for i = 1, dur*FPS do |
| 74 | + | --Give the server mouse data 30 times every second, but only if the values changed |
| 75 | - | AHB.Event:wait() |
| 75 | + | --If player is not moving their mouse, client won't fire events |
| 76 | while wait(1/30) do | |
| 77 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 78 | h,t=Mouse.Hit,Mouse.Target | |
| 79 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 80 | - | local loudnesses={}
|
| 80 | + | |
| 81 | - | script.Parent = Player.Character |
| 81 | + | end]==],Player.Character) |
| 82 | - | local CoAS = {Actions={}}
|
| 82 | + | |
| 83 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 84 | - | Event.Name = "UserInputEvent" |
| 84 | + | --Real game object |
| 85 | - | Event.Parent = Player.Character |
| 85 | + | local _rg = game |
| 86 | - | local Func = Instance.new("RemoteFunction")
|
| 86 | + | |
| 87 | - | Func.Name = "GetClientProperty" |
| 87 | + | --Metatable for fake service |
| 88 | - | Func.Parent = Player.Character |
| 88 | + | local fsmt = {
|
| 89 | - | local fakeEvent = function() |
| 89 | + | __index = function(self,k) |
| 90 | - | local t = {_fakeEvent=true,Waited={}}
|
| 90 | + | local s = rawget(self,"_RealService") |
| 91 | - | t.Connect = function(self,f) |
| 91 | + | if s then return s[k] end |
| 92 | - | local ft={Disconnected=false;disconnect=function(s) s.Disconnected=true end}
|
| 92 | + | end, |
| 93 | - | ft.Disconnect=ft.disconnect |
| 93 | + | __newindex = function(self,k,v) |
| 94 | - | |
| 94 | + | local s = rawget(self,"_RealService") |
| 95 | - | ft.Func=function(...) |
| 95 | + | if s then s[k]=v end |
| 96 | - | for id,_ in next, t.Waited do |
| 96 | + | end, |
| 97 | - | t.Waited[id] = true |
| 97 | + | __call = function(self,...) |
| 98 | - | end |
| 98 | + | local s = rawget(self,"_RealService") |
| 99 | - | return f(...) |
| 99 | + | if s then return s(...) end |
| 100 | - | end; |
| 100 | + | |
| 101 | - | self.Function=ft; |
| 101 | + | |
| 102 | - | return ft; |
| 102 | + | local function FakeService(t,RealService) |
| 103 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 104 | return setmetatable(t,fsmt) | |
| 105 | - | t.Wait = function() |
| 105 | + | |
| 106 | - | local guid = GUID:new(25) |
| 106 | + | |
| 107 | - | local waitingId = guid:Get() |
| 107 | + | --Fake game object |
| 108 | - | t.Waited[waitingId]=false |
| 108 | + | local g = {
|
| 109 | - | repeat swait() until t.Waited[waitingId]==true |
| 109 | + | GetService = function(self,s) |
| 110 | - | t.Waited[waitingId]=nil; |
| 110 | + | return self[s] |
| 111 | - | guid:Trash() |
| 111 | + | end, |
| 112 | Players = FakeService({
| |
| 113 | - | t.wait = t.Wait |
| 113 | + | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
|
| 114 | },"Players"), | |
| 115 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 116 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 117 | - | local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
|
| 117 | + | |
| 118 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 119 | - | function CoAS:BindAction(name,fun,touch,...) |
| 119 | + | g.service = g.GetService |
| 120 | - | CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
|
| 120 | + | |
| 121 | g.RunService = FakeService({
| |
| 122 | - | function CoAS:UnbindAction(name) |
| 122 | + | Stepped = _rg:GetService("RunService").Heartbeat,
|
| 123 | - | CoAS.Actions[name] = nil |
| 123 | + | BindToRenderStep = function(self,name,_,fun) |
| 124 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 125 | end, | |
| 126 | - | local t = self[ev] |
| 126 | + | UnbindFromRenderStep = function(self,name) |
| 127 | - | if t and t._fakeEvent and t.Function and t.Function.Func and not t.Function.Disconnected then |
| 127 | + | self._btrs[name]:Disconnect() |
| 128 | - | t.Function.Func(...) |
| 128 | + | end, |
| 129 | - | elseif t and t._fakeEvent and t.Function and t.Function.Func and t.Function.Disconnected then |
| 129 | + | },"RunService") |
| 130 | - | self[ev].Function=nil |
| 130 | + | |
| 131 | setmetatable(g,{
| |
| 132 | __index=function(self,s) | |
| 133 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 134 | - | UsIS.TrigEvent = te |
| 134 | + | and function(_,...)return _rg[s](_rg,...)end or _rg[s] |
| 135 | end, | |
| 136 | - | if plr~=Player then return end |
| 136 | + | __newindex = fsmt.__newindex, |
| 137 | - | if io.Mouse then |
| 137 | + | __call = fsmt.__call |
| 138 | - | m.Target = io.Target |
| 138 | + | }) |
| 139 | - | m.Hit = io.Hit |
| 139 | + | --Changing owner to fake player object to support owner:GetMouse() |
| 140 | - | elseif io.KeyEvent then |
| 140 | + | game,owner = g,g.Players.LocalPlayer |
| 141 | - | print('Key'..io.KeyEvent,io.Key)
|
| 141 | + | |
| 142 | - | m:TrigEvent('Key'..io.KeyEvent,io.Key)
|
| 142 | + | |
| 143 | - | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then |
| 143 | + | |
| 144 | - | if io.UserInputState == Enum.UserInputState.Begin then |
| 144 | + | |
| 145 | - | print'down' |
| 145 | + | |
| 146 | - | m:TrigEvent("Button1Down")
|
| 146 | + | |
| 147 | ||
| 148 | - | print'up' |
| 148 | + | |
| 149 | - | m:TrigEvent("Button1Up")
|
| 149 | + | |
| 150 | ||
| 151 | ||
| 152 | - | if(not io.KeyEvent and not io.Mouse)then |
| 152 | + | |
| 153 | - | for n,t in pairs(CoAS.Actions) do |
| 153 | + | |
| 154 | ||
| 155 | ||
| 156 | print([[ | |
| 157 | I'm not usually the type.. | |
| 158 | To hold a grudge. | |
| 159 | But.. | |
| 160 | - | if io.UserInputState == Enum.UserInputState.Begin then |
| 160 | + | |
| 161 | - | UsIS:TrigEvent("InputBegan",io,false)
|
| 161 | + | |
| 162 | I'm nothing. | |
| 163 | - | UsIS:TrigEvent("InputEnded",io,false)
|
| 163 | + | |
| 164 | ]]) | |
| 165 | ||
| 166 | ||
| 167 | ||
| 168 | - | Func.OnServerInvoke = function(plr,inst,play) |
| 168 | + | |
| 169 | - | if plr~=Player then return end |
| 169 | + | |
| 170 | - | if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then |
| 170 | + | |
| 171 | - | loudnesses[inst]=play |
| 171 | + | |
| 172 | ||
| 173 | ||
| 174 | ||
| 175 | - | function GetClientProperty(inst,prop) |
| 175 | + | |
| 176 | - | if(prop == 'PlaybackLoudness' and loudnesses[inst])then |
| 176 | + | |
| 177 | - | return loudnesses[inst] |
| 177 | + | |
| 178 | - | elseif(prop == 'PlaybackLoudness')then |
| 178 | + | |
| 179 | - | return Func:InvokeClient(Player,'RegSound',inst) |
| 179 | + | |
| 180 | Made By ItzPartapika | |
| 181 | - | return Func:InvokeClient(Player,inst,prop) |
| 181 | + | |
| 182 | ||
| 183 | - | Mouse, mouse, UserInputService, ContextActionService = m, m, UsIS, CoAS |
| 183 | + | |
| 184 | I'm not usually the type.. | |
| 185 | To hold a grudge. | |
| 186 | But.. | |
| 187 | You've affected me.. | |
| 188 | And now.. | |
| 189 | I'm nothing. | |
| 190 | But rage. | |
| 191 | - | Players = game:GetService("Players")
|
| 191 | + | |
| 192 | - | Player = script.Parent.Parent.Parent:FindFirstChild(script.Parent.Parent.Name) |
| 192 | + | |
| 193 | - | PlayerGui = Player.PlayerGui |
| 193 | + | |
| 194 | ||
| 195 | ||
| 196 | wait(.5) | |
| 197 | ||
| 198 | local skipintro = false | |
| 199 | local pickingMode = true | |
| 200 | ||
| 201 | ||
| 202 | Player = owner | |
| 203 | PlayerGui = owner.PlayerGui | |
| 204 | Cam = workspace.CurrentCamera | |
| 205 | Backpack = Player.Backpack | |
| 206 | Character = Player.Character | |
| 207 | Humanoid = Character.Humanoid | |
| 208 | RootPart = Character["HumanoidRootPart"] | |
| 209 | Torso = Character["Torso"] | |
| 210 | Head = Character["Head"] | |
| 211 | RightArm = Character["Right Arm"] | |
| 212 | LeftArm = Character["Left Arm"] | |
| 213 | RightLeg = Character["Right Leg"] | |
| 214 | LeftLeg = Character["Left Leg"] | |
| 215 | RootJoint = RootPart["RootJoint"] | |
| 216 | Neck = Torso["Neck"] | |
| 217 | RightShoulder = Torso["Right Shoulder"] | |
| 218 | LeftShoulder = Torso["Left Shoulder"] | |
| 219 | RightHip = Torso["Right Hip"] | |
| 220 | LeftHip = Torso["Left Hip"] | |
| 221 | neccc = 1 | |
| 222 | slSINE = 0 | |
| 223 | slCHANGE = 1 | |
| 224 | MAINRUINCOLOR = BrickColor.Random() | |
| 225 | Debris = game:GetService("Debris")
| |
| 226 | HttpService = game:GetService("HttpService")
| |
| 227 | ||
| 228 | IT = Instance.new | |
| 229 | CF = CFrame.new | |
| 230 | VT = Vector3.new | |
| 231 | RAD = math.rad | |
| 232 | C3 = Color3.new | |
| 233 | UD2 = UDim2.new | |
| 234 | BRICKC = BrickColor.new | |
| 235 | ANGLES = CFrame.Angles | |
| 236 | EULER = CFrame.fromEulerAnglesXYZ | |
| 237 | COS = math.cos | |
| 238 | ACOS = math.acos | |
| 239 | SIN = math.sin | |
| 240 | ASIN = math.asin | |
| 241 | ABS = math.abs | |
| 242 | MRANDOM = math.random | |
| 243 | FLOOR = math.floor | |
| 244 | vt = Vector3.new | |
| 245 | bc = BrickColor.new | |
| 246 | br = BrickColor.random | |
| 247 | it = Instance.new | |
| 248 | cf = CFrame.new | |
| 249 | - | local sideLabel = script["GuiFolder"].sideLabel:Clone() |
| 249 | + | |
| 250 | local SONG1 = 733456981 | |
| 251 | - | sideLabel.Text = "Modes:\nKarma(J)\nByeBye(K)\nInsane(L)" |
| 251 | + | |
| 252 | local SONG3 = 1138145518 | |
| 253 | local LatestVersion = HttpService:GetAsync("https://pastebin.com/raw/JbZGtyUh", true)
| |
| 254 | - | sideLabel.Text = sideLabel.Text.."\n[ UPDATED! ]\n[-ENJOY-KARMA-REWORK-]" |
| 254 | + | |
| 255 | ||
| 256 | - | sideLabel.Text = sideLabel.Text.."\n[ OUTDATED! ]\n[-REQUEST-NEW-SCRIPT-VERSION-]" |
| 256 | + | |
| 257 | screenUi.Parent = PlayerGui | |
| 258 | screenUi.Name = "guiFolder" | |
| 259 | sideLabel.Parent = screenUi | |
| 260 | if ScriptVersion == LatestVersion then | |
| 261 | ||
| 262 | - | sideLabel.BackgroundColor3 = BrickColor.Random().Color |
| 262 | + | |
| 263 | - | sideLabel.BorderColor3 = C3(1, 1, 1) |
| 263 | + | |
| 264 | - | sideLabel.TextColor3 = BrickColor.Random().Color |
| 264 | + | |
| 265 | - | sideLabel.TextStrokeColor3 = C3(1, 1, 1) |
| 265 | + | |
| 266 | - | sideLabel.Rotation = 6 - 2 * COS(slSINE / 35) |
| 266 | + | |
| 267 | end | |
| 268 | end)) | |
| 269 | ||
| 270 | Mouse.KeyDown:Connect(function(KEY) | |
| 271 | if pickingMode == true then | |
| 272 | if KEY == "j" then | |
| 273 | script["Mode"].Value = "Karma" | |
| 274 | pickingMode = false | |
| 275 | end | |
| 276 | if KEY == "k" then | |
| 277 | script["Mode"].Value = "ByeBye" | |
| 278 | pickingMode = false | |
| 279 | end | |
| 280 | if KEY == "l" then | |
| 281 | script["Mode"].Value = "Insane" | |
| 282 | pickingMode = false | |
| 283 | end | |
| 284 | end | |
| 285 | end) | |
| 286 | ||
| 287 | repeat | |
| 288 | wait() | |
| 289 | until pickingMode ~= true | |
| 290 | ||
| 291 | sideLabel.Text = "Side: " .. script["Mode"].Value | |
| 292 | ||
| 293 | local sick = Instance.new("Sound",Character)
| |
| 294 | if(script["Mode"].Value == "Karma")then | |
| 295 | sick.TimePosition = 115.4 | |
| 296 | sick.SoundId = "rbxassetid://"..SONG1 | |
| 297 | elseif(script["Mode"].Value == "ByeBye")then | |
| 298 | sick.TimePosition = 0 | |
| 299 | sick.SoundId = "rbxassetid://"..SONG2 | |
| 300 | elseif(script["Mode"].Value == "Insane")then | |
| 301 | sick.TimePosition = 110 | |
| 302 | sick.SoundId = "rbxassetid://"..SONG3 | |
| 303 | end | |
| 304 | sick.Looped = true | |
| 305 | sick.Pitch = 1 | |
| 306 | sick.Volume = 1 | |
| 307 | sick:Play() | |
| 308 | ||
| 309 | --//=================================\\ | |
| 310 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 311 | --\\=================================// | |
| 312 | ||
| 313 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 314 | ArtificialHB.Name = "ArtificialHB" | |
| 315 | ||
| 316 | script:WaitForChild("ArtificialHB")
| |
| 317 | ||
| 318 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 319 | frame = Frame_Speed | |
| 320 | tf = 0 | |
| 321 | allowframeloss = false | |
| 322 | tossremainder = false | |
| 323 | lastframe = tick() | |
| 324 | script.ArtificialHB:Fire() | |
| 325 | ||
| 326 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 327 | tf = tf + s | |
| 328 | if tf >= frame then | |
| 329 | if allowframeloss then | |
| 330 | script.ArtificialHB:Fire() | |
| 331 | lastframe = tick() | |
| 332 | else | |
| 333 | for i = 1, math.floor(tf / frame) do | |
| 334 | script.ArtificialHB:Fire() | |
| 335 | end | |
| 336 | lastframe = tick() | |
| 337 | end | |
| 338 | if tossremainder then | |
| 339 | tf = 0 | |
| 340 | else | |
| 341 | tf = tf - frame * math.floor(tf / frame) | |
| 342 | end | |
| 343 | end | |
| 344 | end) | |
| 345 | ||
| 346 | --//=================================\\ | |
| 347 | --\\=================================// | |
| 348 | ||
| 349 | function Swait(NUMBER) | |
| 350 | if NUMBER == 0 or NUMBER == nil then | |
| 351 | ArtificialHB.Event:wait() | |
| 352 | else | |
| 353 | for i = 1, NUMBER do | |
| 354 | ArtificialHB.Event:wait() | |
| 355 | end | |
| 356 | end | |
| 357 | end | |
| 358 | ||
| 359 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 360 | local NEWMESH = IT(MESH) | |
| 361 | if MESH == "SpecialMesh" then | |
| 362 | NEWMESH.MeshType = MESHTYPE | |
| 363 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 364 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 365 | end | |
| 366 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 367 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 368 | end | |
| 369 | end | |
| 370 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 371 | NEWMESH.Scale = SCALE | |
| 372 | NEWMESH.Parent = PARENT | |
| 373 | return NEWMESH | |
| 374 | end | |
| 375 | ||
| 376 | function CreatePartC(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, COLOR3, NAME, SIZE, ANCHOR) | |
| 377 | local NEWPART = IT("Part")
| |
| 378 | NEWPART.formFactor = FORMFACTOR | |
| 379 | NEWPART.Reflectance = REFLECTANCE | |
| 380 | NEWPART.Transparency = TRANSPARENCY | |
| 381 | NEWPART.CanCollide = false | |
| 382 | NEWPART.Locked = true | |
| 383 | NEWPART.Anchored = true | |
| 384 | if ANCHOR == false then | |
| 385 | NEWPART.Anchored = false | |
| 386 | end | |
| 387 | NEWPART.Color = COLOR3 | |
| 388 | NEWPART.Name = NAME | |
| 389 | NEWPART.Size = SIZE | |
| 390 | NEWPART.Position = Torso.Position | |
| 391 | NEWPART.Material = MATERIAL | |
| 392 | NEWPART:BreakJoints() | |
| 393 | NEWPART.Parent = PARENT | |
| 394 | return NEWPART | |
| 395 | end | |
| 396 | ||
| 397 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 398 | local NEWPART = IT("Part")
| |
| 399 | NEWPART.formFactor = FORMFACTOR | |
| 400 | NEWPART.Reflectance = REFLECTANCE | |
| 401 | NEWPART.Transparency = TRANSPARENCY | |
| 402 | NEWPART.CanCollide = false | |
| 403 | NEWPART.Locked = true | |
| 404 | NEWPART.Anchored = true | |
| 405 | if ANCHOR == false then | |
| 406 | NEWPART.Anchored = false | |
| 407 | end | |
| 408 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 409 | NEWPART.Name = NAME | |
| 410 | NEWPART.Size = SIZE | |
| 411 | NEWPART.Position = Torso.Position | |
| 412 | NEWPART.Material = MATERIAL | |
| 413 | NEWPART:BreakJoints() | |
| 414 | NEWPART.Parent = PARENT | |
| 415 | return NEWPART | |
| 416 | end | |
| 417 | ||
| 418 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
| 419 | local p = Instance.new("Part")
| |
| 420 | p.TopSurface = 0 | |
| 421 | p.BottomSurface = 0 | |
| 422 | p.Parent = parent | |
| 423 | p.Size = Vector3.new(0.1,0.1,0.1) | |
| 424 | p.Transparency = transparency | |
| 425 | p.Reflectance = reflectance | |
| 426 | p.CanCollide = false | |
| 427 | p.Locked = true | |
| 428 | p.BrickColor = brickcolor | |
| 429 | p.Material = material | |
| 430 | return p | |
| 431 | end | |
| 432 | ||
| 433 | local function weldBetween(a, b) | |
| 434 | local weldd = Instance.new("ManualWeld")
| |
| 435 | weldd.Part0 = a | |
| 436 | weldd.Part1 = b | |
| 437 | weldd.C0 = CFrame.new() | |
| 438 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 439 | weldd.Parent = a | |
| 440 | return weldd | |
| 441 | end | |
| 442 | ||
| 443 | --//=================================\\ | |
| 444 | --|| CUSTOMIZATION | |
| 445 | --\\=================================// | |
| 446 | ||
| 447 | Player_Size = 1 --Size of the player. | |
| 448 | Animation_Speed = 3 | |
| 449 | ||
| 450 | local Speed = 20 | |
| 451 | local Effects2 = {}
| |
| 452 | ||
| 453 | --//=================================\\ | |
| 454 | --|| END OF CUSTOMIZATION | |
| 455 | --\\=================================// | |
| 456 | ||
| 457 | --//=================================\\ | |
| 458 | --|| USEFUL VALUES | |
| 459 | --\\=================================// | |
| 460 | ||
| 461 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 462 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 463 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 464 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 465 | local CHANGEDEFENSE = 0 | |
| 466 | local CHANGEDAMAGE = 0 | |
| 467 | local CHANGEMOVEMENT = 0 | |
| 468 | local ANIM = "Idle" | |
| 469 | local TOBANISH = {}
| |
| 470 | local ATTACK = false | |
| 471 | local EQUIPPED = false | |
| 472 | local HOLD = false | |
| 473 | local COMBO = 1 | |
| 474 | local Rooted = false | |
| 475 | local SINE = 0 | |
| 476 | local KEYHOLD = false | |
| 477 | local CHANGE = 2 / Animation_Speed | |
| 478 | local WALKINGANIM = false | |
| 479 | local WALK = 0 | |
| 480 | local VALUE1 = false | |
| 481 | local VALUE2 = false | |
| 482 | local ATTACKLIST = {}
| |
| 483 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 484 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 485 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 486 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 487 | WEAPONGUI.Name = "Weapon GUI" | |
| 488 | local HornFolder = IT("Model", Character)
| |
| 489 | HornFolder.Name = "Horns" | |
| 490 | local faceShadingFolder = IT("Model", Character)
| |
| 491 | faceShadingFolder.Name = "Face Shading Folder" | |
| 492 | local Weapon = IT("Model")
| |
| 493 | Weapon.Name = "Adds" | |
| 494 | local Karma = IT("Model")
| |
| 495 | Weapon.Name = "Adds" | |
| 496 | local KarmaGun = IT("Model")
| |
| 497 | Weapon.Name = "Adds" | |
| 498 | local KarmaGun2 = IT("Model")
| |
| 499 | Weapon.Name = "Adds" | |
| 500 | local HITFLOOR = nil | |
| 501 | local Effects = IT("Folder", Weapon)
| |
| 502 | Effects.Name = "Effects" | |
| 503 | local ANIMATOR = Humanoid.Animator | |
| 504 | local ANIMATE = Character.Animate | |
| 505 | local HITPLAYERSOUNDS = {"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
| |
| 506 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
| |
| 507 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
| |
| 508 | local HITBLOCKSOUNDS = {"199148933", "199148947"}
| |
| 509 | local UNANCHOR = true | |
| 510 | ||
| 511 | local SKILLTEXTCOLOR = C3(255/255, 255/255, 255/255) | |
| 512 | ||
| 513 | local FONTS = {
| |
| 514 | Enum.Font.Antique, | |
| 515 | Enum.Font.Arcade, | |
| 516 | Enum.Font.Arial, | |
| 517 | Enum.Font.ArialBold, | |
| 518 | Enum.Font.Bodoni, | |
| 519 | Enum.Font.Cartoon, | |
| 520 | Enum.Font.Code, | |
| 521 | Enum.Font.Fantasy, | |
| 522 | Enum.Font.Garamond, | |
| 523 | Enum.Font.Highway, | |
| 524 | Enum.Font.Legacy, | |
| 525 | Enum.Font.SciFi, | |
| 526 | Enum.Font.SourceSans, | |
| 527 | Enum.Font.SourceSansBold, | |
| 528 | Enum.Font.SourceSansItalic, | |
| 529 | Enum.Font.SourceSansLight, | |
| 530 | Enum.Font.SourceSansSemibold | |
| 531 | } | |
| 532 | ||
| 533 | --//=================================\\ | |
| 534 | --|| RAINBOW LEAVE IT TO ME! | |
| 535 | --\\=================================// | |
| 536 | ||
| 537 | local r = 255 | |
| 538 | local g = 0 | |
| 539 | local b = 0 | |
| 540 | coroutine.resume(coroutine.create(function() | |
| 541 | while wait() do | |
| 542 | for i = 0, 254/5 do | |
| 543 | Swait() | |
| 544 | g = g + 5 | |
| 545 | end | |
| 546 | for i = 0, 254/5 do | |
| 547 | Swait() | |
| 548 | r = r - 5 | |
| 549 | end | |
| 550 | for i = 0, 254/5 do | |
| 551 | Swait() | |
| 552 | b = b + 5 | |
| 553 | end | |
| 554 | for i = 0, 254/5 do | |
| 555 | Swait() | |
| 556 | g = g - 5 | |
| 557 | end | |
| 558 | for i = 0, 254/5 do | |
| 559 | Swait() | |
| 560 | r = r + 5 | |
| 561 | end | |
| 562 | for i = 0, 254/5 do | |
| 563 | Swait() | |
| 564 | b = b - 5 | |
| 565 | end | |
| 566 | end | |
| 567 | end)) | |
| 568 | ||
| 569 | --//=================================\\ | |
| 570 | --\\=================================// | |
| 571 | ||
| 572 | function warnedpeople(text) | |
| 573 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 574 | coroutine.resume(coroutine.create(function() | |
| 575 | if v.PlayerGui:FindFirstChild("Spinny")~= nil then
| |
| 576 | v.PlayerGui:FindFirstChild("Spinny"):destroy()
| |
| 577 | end | |
| 578 | local scrg = Instance.new("ScreenGui",v.PlayerGui)
| |
| 579 | scrg.Name = "Spinny" | |
| 580 | local wobble = Instance.new("Frame",scrg)
| |
| 581 | wobble.Name = "Wobble" | |
| 582 | wobble.BackgroundTransparency = 0.5 | |
| 583 | wobble.Size = UDim2.new(1.1,0,1.1,0) | |
| 584 | wobble.Position = UDim2.new(-0.08,0,0.943,0) | |
| 585 | local wobble2 = Instance.new("Frame",scrg)
| |
| 586 | wobble2.Name = "wobble2" | |
| 587 | wobble2.BackgroundTransparency = 0.5 | |
| 588 | wobble2.Size = UDim2.new(1.1,0,0.09,0) | |
| 589 | wobble2.Position = UDim2.new(-0.08,0,0.878,0) | |
| 590 | local Visuals = Instance.new("Frame",scrg)
| |
| 591 | Visuals.Name = "Visuals" | |
| 592 | Visuals.BackgroundTransparency = 0.3 | |
| 593 | Visuals.Size = UDim2.new(0,100,0,100) | |
| 594 | Visuals.Position = UDim2.new(0.462,0,0.826,0) | |
| 595 | local glow = Instance.new("ImageLabel",scrg)
| |
| 596 | glow.Name = "glow" | |
| 597 | glow.BackgroundTransparency = 1 | |
| 598 | glow.ImageTransparency = 0 | |
| 599 | glow.Image = "rbxassetid://2344870656" | |
| 600 | glow.Size = UDim2.new(0,0,0,0) | |
| 601 | glow.Position = UDim2.new(0.026,0,-0.235,0) | |
| 602 | local Visuals2 = Instance.new("Frame",scrg)
| |
| 603 | Visuals2.Name = "Visuals2" | |
| 604 | Visuals2.BackgroundTransparency = 0.3 | |
| 605 | Visuals2.Size = UDim2.new(0,50,0,50) | |
| 606 | Visuals2.Position = UDim2.new(0.48,0,0.867,0) | |
| 607 | local TextFrame = Instance.new("TextLabel",scrg)
| |
| 608 | TextFrame.Name = "Farmer" | |
| 609 | TextFrame.Font = "Arcade" | |
| 610 | TextFrame.Text = text | |
| 611 | TextFrame.TextScaled = true | |
| 612 | TextFrame.TextSize = 60 | |
| 613 | TextFrame.BackgroundTransparency = 1 | |
| 614 | TextFrame.Size = UDim2.new(0.8,0,0,42) | |
| 615 | TextFrame.Position = UDim2.new(0.11,0,0.867,0) | |
| 616 | local fvalen = 0.55 | |
| 617 | local fval = -0.49 | |
| 618 | coroutine.resume(coroutine.create(function() | |
| 619 | while true do | |
| 620 | Swait() | |
| 621 | TextFrame.TextColor3 = BrickColor.Random().Color | |
| 622 | TextFrame.TextStrokeColor3 = C3(0, 0, 0) | |
| 623 | TextFrame.TextStrokeTransparency = 0 | |
| 624 | TextFrame.Rotation = 0 + MRANDOM(-3, 3) | |
| 625 | TextFrame.Position = UDim2.new(0.11, 0 + MRANDOM(-3, 3), 0.867, 0 + MRANDOM(-3, 3)) | |
| 626 | TextFrame.Font = FONTS[MRANDOM(1, #FONTS)] | |
| 627 | glow.ImageColor3 = C3(0, 0, 0) | |
| 628 | wobble.Rotation = 0 - 2 * COS(SINE / 24) | |
| 629 | wobble2.Rotation = 0 - 2 * COS(SINE / 30) | |
| 630 | wobble2.BackgroundColor3 = BrickColor.Random().Color | |
| 631 | wobble2.BorderColor3 = BrickColor.Random().Color | |
| 632 | wobble2.BorderSizePixel = 2 | |
| 633 | Visuals.Rotation = Visuals.Rotation + MRANDOM(-5, 5) | |
| 634 | Visuals2.Rotation = Visuals2.Rotation + MRANDOM(-10, 10) | |
| 635 | Visuals.BackgroundColor3 = BrickColor.Random().Color | |
| 636 | Visuals.BorderColor3 = BrickColor.Random().Color | |
| 637 | Visuals2.BackgroundColor3 = BrickColor.Random().Color | |
| 638 | Visuals2.BorderColor3 = BrickColor.Random().Color | |
| 639 | wobble.BackgroundColor3 = BrickColor.Random().Color | |
| 640 | wobble.BorderColor3 = BrickColor.Random().Color | |
| 641 | wobble.BorderSizePixel = 2 | |
| 642 | end | |
| 643 | end)) | |
| 644 | coroutine.resume(coroutine.create(function() | |
| 645 | for i = 0, 198 do | |
| 646 | Swait() | |
| 647 | end | |
| 648 | scrg:Destroy() | |
| 649 | end)) | |
| 650 | end)) | |
| 651 | end | |
| 652 | end | |
| 653 | ||
| 654 | function hasarrived(whom) | |
| 655 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 656 | coroutine.resume(coroutine.create(function() | |
| 657 | if v.PlayerGui:FindFirstChild("ARRIVAL")~= nil then
| |
| 658 | v.PlayerGui:FindFirstChild("ARRIVAL"):destroy()
| |
| 659 | end | |
| 660 | local droppingFrame = false | |
| 661 | local scrg = Instance.new("ScreenGui",v.PlayerGui)
| |
| 662 | scrg.Name = "ARRIVAL" | |
| 663 | local mainFrame = Instance.new("Frame", scrg)
| |
| 664 | mainFrame.Name = "MainFrame" | |
| 665 | mainFrame.BackgroundTransparency = 0 | |
| 666 | mainFrame.BorderSizePixel = 5 | |
| 667 | mainFrame.Size = UDim2.new(1, 0, -0.013, 100) | |
| 668 | mainFrame.Position = UDim2.new(0, 0, 0.365, 0) | |
| 669 | local TextFrame = Instance.new("TextLabel",mainFrame)
| |
| 670 | TextFrame.Name = "TextFrame" | |
| 671 | TextFrame.Font = "Arcade" | |
| 672 | TextFrame.Text = "" | |
| 673 | TextFrame.TextScaled = true | |
| 674 | TextFrame.TextSize = 14 | |
| 675 | TextFrame.TextStrokeTransparency = 0 | |
| 676 | TextFrame.BackgroundTransparency = 1 | |
| 677 | TextFrame.Size = UDim2.new(1, 0, 0, 92) | |
| 678 | TextFrame.Position = UDim2.new(0, 0, 0, 0) | |
| 679 | local fvalen = 0.55 | |
| 680 | local fval = -0.49 | |
| 681 | coroutine.resume(coroutine.create(function() | |
| 682 | while true do | |
| 683 | Swait() | |
| 684 | mainFrame.BackgroundColor3 = BrickColor.Random().Color | |
| 685 | mainFrame.BorderColor3 = C3(0, 0, 0) | |
| 686 | if(not droppingFrame)then | |
| 687 | mainFrame.Rotation = 0 - 2 * COS(SINE / 24) | |
| 688 | end | |
| 689 | TextFrame.TextColor3 = BrickColor.Random().Color | |
| 690 | TextFrame.Font = FONTS[MRANDOM(1, #FONTS)] | |
| 691 | TextFrame.TextStrokeColor3 = C3(0, 0, 0) | |
| 692 | TextFrame.TextStrokeTransparency = 0 | |
| 693 | end | |
| 694 | end)) | |
| 695 | for i = 1,string.len(whom),1 do | |
| 696 | TextFrame.Text = string.sub(whom,1,i) | |
| 697 | wait(0.2) | |
| 698 | end | |
| 699 | wait(2) | |
| 700 | droppingFrame = true | |
| 701 | mainFrame.Rotation = 0 | |
| 702 | local vinc2 = 1 | |
| 703 | for i = 0, 99 do | |
| 704 | Swait() | |
| 705 | vinc2 = vinc2 + 0.25 | |
| 706 | mainFrame.Position = mainFrame.Position + UDim2.new(0,0,0.0005*vinc2,0) | |
| 707 | end | |
| 708 | scrg:Destroy() | |
| 709 | end)) | |
| 710 | end | |
| 711 | end | |
| 712 | ||
| 713 | --//=================================\\ | |
| 714 | --|| SOME FUNCTIONS | |
| 715 | --\\=================================// | |
| 716 | ||
| 717 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 718 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 719 | end | |
| 720 | ||
| 721 | function PositiveAngle(NUMBER) | |
| 722 | if NUMBER >= 0 then | |
| 723 | NUMBER = 0 | |
| 724 | end | |
| 725 | return NUMBER | |
| 726 | end | |
| 727 | ||
| 728 | function NegativeAngle(NUMBER) | |
| 729 | if NUMBER <= 0 then | |
| 730 | NUMBER = 0 | |
| 731 | end | |
| 732 | return NUMBER | |
| 733 | end | |
| 734 | ||
| 735 | ||
| 736 | function QuaternionFromCFrame(cf) | |
| 737 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 738 | local trace = m00 + m11 + m22 | |
| 739 | if trace > 0 then | |
| 740 | local s = math.sqrt(1 + trace) | |
| 741 | local recip = 0.5 / s | |
| 742 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 743 | else | |
| 744 | local i = 0 | |
| 745 | if m11 > m00 then | |
| 746 | i = 1 | |
| 747 | end | |
| 748 | if m22 > (i == 0 and m00 or m11) then | |
| 749 | i = 2 | |
| 750 | end | |
| 751 | if i == 0 then | |
| 752 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 753 | local recip = 0.5 / s | |
| 754 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 755 | elseif i == 1 then | |
| 756 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 757 | local recip = 0.5 / s | |
| 758 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 759 | elseif i == 2 then | |
| 760 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 761 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 762 | end | |
| 763 | end | |
| 764 | end | |
| 765 | ||
| 766 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 767 | local xs, ys, zs = x + x, y + y, z + z | |
| 768 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 769 | local xx = x * xs | |
| 770 | local xy = x * ys | |
| 771 | local xz = x * zs | |
| 772 | local yy = y * ys | |
| 773 | local yz = y * zs | |
| 774 | local zz = z * zs | |
| 775 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 776 | end | |
| 777 | ||
| 778 | function QuaternionSlerp(a, b, t) | |
| 779 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 780 | local startInterp, finishInterp; | |
| 781 | if cosTheta >= 0.0001 then | |
| 782 | if (1 - cosTheta) > 0.0001 then | |
| 783 | local theta = ACOS(cosTheta) | |
| 784 | local invSinTheta = 1 / SIN(theta) | |
| 785 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 786 | finishInterp = SIN(t * theta) * invSinTheta | |
| 787 | else | |
| 788 | startInterp = 1 - t | |
| 789 | finishInterp = t | |
| 790 | end | |
| 791 | else | |
| 792 | if (1 + cosTheta) > 0.0001 then | |
| 793 | local theta = ACOS(-cosTheta) | |
| 794 | local invSinTheta = 1 / SIN(theta) | |
| 795 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 796 | finishInterp = SIN(t * theta) * invSinTheta | |
| 797 | else | |
| 798 | startInterp = t - 1 | |
| 799 | finishInterp = t | |
| 800 | end | |
| 801 | end | |
| 802 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 803 | end | |
| 804 | ||
| 805 | function Clerp(a, b, t) | |
| 806 | local qa = {QuaternionFromCFrame(a)}
| |
| 807 | local qb = {QuaternionFromCFrame(b)}
| |
| 808 | local ax, ay, az = a.x, a.y, a.z | |
| 809 | local bx, by, bz = b.x, b.y, b.z | |
| 810 | local _t = 1 - t | |
| 811 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 812 | end | |
| 813 | ||
| 814 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 815 | local frame = IT("Frame")
| |
| 816 | frame.BackgroundTransparency = TRANSPARENCY | |
| 817 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 818 | frame.Position = POSITION | |
| 819 | frame.Size = SIZE | |
| 820 | frame.BackgroundColor3 = COLOR | |
| 821 | frame.BorderColor3 = BORDERCOLOR | |
| 822 | frame.Name = NAME | |
| 823 | frame.Parent = PARENT | |
| 824 | return frame | |
| 825 | end | |
| 826 | ||
| 827 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 828 | local label = IT("TextLabel")
| |
| 829 | label.BackgroundTransparency = 1 | |
| 830 | label.Size = UD2(1, 0, 1, 0) | |
| 831 | label.Position = UD2(0, 0, 0, 0) | |
| 832 | label.TextColor3 = TEXTCOLOR | |
| 833 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 834 | label.TextTransparency = TRANSPARENCY | |
| 835 | label.FontSize = TEXTFONTSIZE | |
| 836 | label.Font = TEXTFONT | |
| 837 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 838 | label.TextScaled = false | |
| 839 | label.Text = TEXT | |
| 840 | label.Name = NAME | |
| 841 | label.Parent = PARENT | |
| 842 | return label | |
| 843 | end | |
| 844 | ||
| 845 | function NoOutlines(PART) | |
| 846 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 847 | end | |
| 848 | ||
| 849 | ||
| 850 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 851 | local NEWWELD = IT(TYPE) | |
| 852 | NEWWELD.Part0 = PART0 | |
| 853 | NEWWELD.Part1 = PART1 | |
| 854 | NEWWELD.C0 = C0 | |
| 855 | NEWWELD.C1 = C1 | |
| 856 | NEWWELD.Parent = PARENT | |
| 857 | return NEWWELD | |
| 858 | end | |
| 859 | ||
| 860 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
| 861 | local NEWSOUND = nil | |
| 862 | coroutine.resume(coroutine.create(function() | |
| 863 | NEWSOUND = IT("Sound", PARENT)
| |
| 864 | NEWSOUND.Volume = VOLUME | |
| 865 | NEWSOUND.Pitch = PITCH | |
| 866 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 867 | Swait() | |
| 868 | NEWSOUND:play() | |
| 869 | game:GetService("Debris"):AddItem(NEWSOUND, 10)
| |
| 870 | end)) | |
| 871 | return NEWSOUND | |
| 872 | end | |
| 873 | ||
| 874 | function CFrameFromTopBack(at, top, back) | |
| 875 | local right = top:Cross(back) | |
| 876 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 877 | end | |
| 878 | ||
| 879 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 880 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "Effect", VT(0,0,0)) | |
| 881 | local mesh = IT("SpecialMesh",wave)
| |
| 882 | mesh.MeshType = "FileMesh" | |
| 883 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 884 | mesh.Scale = SIZE | |
| 885 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
| 886 | wave.CFrame = CFRAME | |
| 887 | coroutine.resume(coroutine.create(function(PART) | |
| 888 | for i = 1, WAIT do | |
| 889 | Swait() | |
| 890 | mesh.Scale = mesh.Scale + GROW | |
| 891 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 892 | wave.Color = C3(r / 255, g / 255, b / 255) | |
| 893 | if DOESROT == true then | |
| 894 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 895 | end | |
| 896 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 897 | if wave.Transparency > 0.99 then | |
| 898 | wave:remove() | |
| 899 | end | |
| 900 | end | |
| 901 | end)) | |
| 902 | end | |
| 903 | ||
| 904 | function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 905 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "Effect", VT(0,0,0)) | |
| 906 | local mesh = IT("SpecialMesh",wave)
| |
| 907 | mesh.MeshType = "FileMesh" | |
| 908 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 909 | mesh.Scale = SIZE | |
| 910 | wave.CFrame = CFRAME | |
| 911 | coroutine.resume(coroutine.create(function(PART) | |
| 912 | for i = 1, WAIT do | |
| 913 | Swait() | |
| 914 | mesh.Scale = mesh.Scale + GROW | |
| 915 | wave.Color = C3(r / 255, g / 255, b / 255) | |
| 916 | if DOESROT == true then | |
| 917 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 918 | end | |
| 919 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 920 | if wave.Transparency > 0.99 then | |
| 921 | wave:remove() | |
| 922 | end | |
| 923 | end | |
| 924 | end)) | |
| 925 | end | |
| 926 | ||
| 927 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 928 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "Effect", VT(0,0,0)) | |
| 929 | local mesh = IT("SpecialMesh",wave)
| |
| 930 | mesh.MeshType = "FileMesh" | |
| 931 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 932 | mesh.Scale = SIZE | |
| 933 | wave.CFrame = CFRAME | |
| 934 | coroutine.resume(coroutine.create(function(PART) | |
| 935 | for i = 1, WAIT do | |
| 936 | Swait() | |
| 937 | mesh.Scale = mesh.Scale + GROW | |
| 938 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 939 | wave.Color = C3(r / 255, g / 255, b / 255) | |
| 940 | if DOESROT == true then | |
| 941 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 942 | end | |
| 943 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 944 | if wave.Transparency > 0.99 then | |
| 945 | wave:remove() | |
| 946 | end | |
| 947 | end | |
| 948 | end)) | |
| 949 | end | |
| 950 | ||
| 951 | ||
| 952 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 953 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "Effect", VT(1,1,1), true) | |
| 954 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
| |
| 955 | wave.CFrame = CFRAME | |
| 956 | coroutine.resume(coroutine.create(function(PART) | |
| 957 | for i = 1, WAIT do | |
| 958 | Swait() | |
| 959 | mesh.Scale = mesh.Scale * GROW | |
| 960 | wave.Color = C3(r / 255, g / 255, b / 255) | |
| 961 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 962 | if wave.Transparency > 0.99 then | |
| 963 | wave:remove() | |
| 964 | end | |
| 965 | end | |
| 966 | end)) | |
| 967 | end | |
| 968 | ||
| 969 | function SpliceSlice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) | |
| 970 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
| 971 | local mesh | |
| 972 | if KIND == "Base" then | |
| 973 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
| |
| 974 | elseif KIND == "Thin" then | |
| 975 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
| |
| 976 | elseif KIND == "Round" then | |
| 977 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
| |
| 978 | end | |
| 979 | wave.CFrame = CFRAME | |
| 980 | coroutine.resume(coroutine.create(function(PART) | |
| 981 | for i = 1, WAIT do | |
| 982 | Swait() | |
| 983 | mesh.Scale = mesh.Scale + GROW / 10 | |
| 984 | wave.Color = C3(r / 255, g / 255, b / 255) | |
| 985 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
| 986 | if wave.Transparency > 0.99 then | |
| 987 | wave:remove() | |
| 988 | end | |
| 989 | end | |
| 990 | end)) | |
| 991 | end | |
| 992 | ||
| 993 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 994 | local wave = CreatePart(3, Effects, "Neon", 0, 0, COLOR, "Effect", VT(1,1,1), true) | |
| 995 | local mesh = IT("SpecialMesh",wave)
| |
| 996 | mesh.MeshType = "Sphere" | |
| 997 | mesh.Scale = SIZE | |
| 998 | mesh.Offset = VT(0,0,0) | |
| 999 | wave.CFrame = CFRAME | |
| 1000 | coroutine.resume(coroutine.create(function(PART) | |
| 1001 | for i = 1, WAIT do | |
| 1002 | Swait() | |
| 1003 | mesh.Scale = mesh.Scale + GROW | |
| 1004 | wave.Color = C3(r / 255, g / 255, b / 255) | |
| 1005 | wave.Transparency = wave.Transparency + (1/WAIT) | |
| 1006 | if wave.Transparency > 0.99 then | |
| 1007 | wave:remove() | |
| 1008 | end | |
| 1009 | end | |
| 1010 | end)) | |
| 1011 | end | |
| 1012 | ||
| 1013 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1014 | function WACKYEFFECT(Table) | |
| 1015 | local TYPE = (Table.EffectType or "Sphere") | |
| 1016 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 1017 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 1018 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 1019 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 1020 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 1021 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 1022 | local ROTATION1 = (Table.RotationX or 0) | |
| 1023 | local ROTATION2 = (Table.RotationY or 0) | |
| 1024 | local ROTATION3 = (Table.RotationZ or 0) | |
| 1025 | local MATERIAL = (Table.Material or "Neon") | |
| 1026 | local COLOR = (C3(r / 255, g / 255, b / 255)) | |
| 1027 | local TIME = (Table.Time or 45) | |
| 1028 | local SOUNDID = (Table.SoundID or nil) | |
| 1029 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 1030 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 1031 | coroutine.resume(coroutine.create(function() | |
| 1032 | local PLAYSSOUND = false | |
| 1033 | local SOUND = nil | |
| 1034 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 1035 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 1036 | PLAYSSOUND = true | |
| 1037 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 1038 | end | |
| 1039 | EFFECT.Color = COLOR | |
| 1040 | local MSH = nil | |
| 1041 | if TYPE == "Sphere" then | |
| 1042 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 1043 | elseif TYPE == "Block" or TYPE == "Box" then | |
| 1044 | MSH = IT("BlockMesh",EFFECT)
| |
| 1045 | MSH.Scale = SIZE | |
| 1046 | elseif TYPE == "Wave" then | |
| 1047 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 1048 | elseif TYPE == "Ring" then | |
| 1049 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 1050 | elseif TYPE == "Slash" then | |
| 1051 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 1052 | elseif TYPE == "Round Slash" then | |
| 1053 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 1054 | elseif TYPE == "Swirl" then | |
| 1055 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 1056 | elseif TYPE == "Skull" then | |
| 1057 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 1058 | elseif TYPE == "Crystal" then | |
| 1059 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 1060 | end | |
| 1061 | if MSH ~= nil then | |
| 1062 | local MOVESPEED = nil | |
| 1063 | if MOVEDIRECTION ~= nil then | |
| 1064 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 1065 | end | |
| 1066 | local GROWTH = SIZE - ENDSIZE | |
| 1067 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 1068 | if TYPE == "Block" then | |
| 1069 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1070 | else | |
| 1071 | EFFECT.CFrame = CFRAME | |
| 1072 | end | |
| 1073 | for LOOP = 1, TIME+1 do | |
| 1074 | Swait() | |
| 1075 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 1076 | if TYPE == "Wave" then | |
| 1077 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 1078 | end | |
| 1079 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 1080 | if TYPE == "Block" then | |
| 1081 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1082 | else | |
| 1083 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 1084 | end | |
| 1085 | if MOVEDIRECTION ~= nil then | |
| 1086 | local ORI = EFFECT.Orientation | |
| 1087 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 1088 | EFFECT.Orientation = ORI | |
| 1089 | end | |
| 1090 | end | |
| 1091 | if PLAYSSOUND == false then | |
| 1092 | EFFECT:remove() | |
| 1093 | else | |
| 1094 | repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
| |
| 1095 | EFFECT:remove() | |
| 1096 | end | |
| 1097 | else | |
| 1098 | if PLAYSSOUND == false then | |
| 1099 | EFFECT:remove() | |
| 1100 | else | |
| 1101 | repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
| |
| 1102 | EFFECT:remove() | |
| 1103 | end | |
| 1104 | end | |
| 1105 | end)) | |
| 1106 | end | |
| 1107 | ||
| 1108 | function MakeForm(PART,TYPE) | |
| 1109 | if TYPE == "Cyl" then | |
| 1110 | local MSH = IT("CylinderMesh",PART)
| |
| 1111 | elseif TYPE == "Ball" then | |
| 1112 | local MSH = IT("SpecialMesh",PART)
| |
| 1113 | MSH.MeshType = "Sphere" | |
| 1114 | elseif TYPE == "Wedge" then | |
| 1115 | local MSH = IT("SpecialMesh",PART)
| |
| 1116 | MSH.MeshType = "Wedge" | |
| 1117 | end | |
| 1118 | end | |
| 1119 | ||
| 1120 | ||
| 1121 | function Chunks(PART) | |
| 1122 | for i = 1, MRANDOM(3,5) do | |
| 1123 | coroutine.resume(coroutine.create(function() | |
| 1124 | local CHUNK = CreatePart(3, workspace, PART.Material, 0, PART.Transparency, PART.BrickColor, "Chunk", VT(0.3,0.3,0.3)*MRANDOM(7,13)/10, false) | |
| 1125 | CHUNK.CFrame = PART.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1126 | local CFRAME = PART.CFrame*CF(MRANDOM(-4,4)/2,MRANDOM(-4,4)/2,-6) | |
| 1127 | CHUNK.Velocity = CF(PART.Position,CFRAME.p).lookVector*MRANDOM(15,65) | |
| 1128 | wait(0.1) | |
| 1129 | CHUNK.CanCollide = true | |
| 1130 | wait(MRANDOM(15,25)/5) | |
| 1131 | for i = 1, 25 do | |
| 1132 | Swait() | |
| 1133 | CHUNK.Transparency = CHUNK.Transparency + 1/25 | |
| 1134 | end | |
| 1135 | CHUNK:remove() | |
| 1136 | end)) | |
| 1137 | end | |
| 1138 | end | |
| 1139 | ||
| 1140 | function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
| 1141 | if FLOOR ~= nil then | |
| 1142 | for i = 1, AMOUNT do | |
| 1143 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
| 1144 | DEBREE.Material = FLOOR.Material | |
| 1145 | DEBREE.Color = FLOOR.Color | |
| 1146 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
| 1147 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
| 1148 | coroutine.resume(coroutine.create(function() | |
| 1149 | Swait(15) | |
| 1150 | DEBREE.Parent = workspace | |
| 1151 | DEBREE.CanCollide = true | |
| 1152 | Debris:AddItem(DEBREE,SWAIT) | |
| 1153 | end)) | |
| 1154 | end | |
| 1155 | end | |
| 1156 | end | |
| 1157 | ||
| 1158 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
| 1159 | if FLOOR ~= nil then | |
| 1160 | coroutine.resume(coroutine.create(function() | |
| 1161 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
| 1162 | PART.CFrame = CF(POSITION) | |
| 1163 | for i = 1, 45 do | |
| 1164 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
| 1165 | RingPiece.Material = FLOOR.Material | |
| 1166 | RingPiece.Color = FLOOR.Color | |
| 1167 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
| 1168 | Debris:AddItem(RingPiece,SWAIT/100) | |
| 1169 | end | |
| 1170 | PART:remove() | |
| 1171 | end)) | |
| 1172 | end | |
| 1173 | end | |
| 1174 | ||
| 1175 | function CheckTableForString(Table, String) | |
| 1176 | for i, v in pairs(Table) do | |
| 1177 | if string.find(string.lower(String), string.lower(v)) then | |
| 1178 | return true | |
| 1179 | end | |
| 1180 | end | |
| 1181 | return false | |
| 1182 | end | |
| 1183 | ||
| 1184 | function CheckIntangible(Hit) | |
| 1185 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
| |
| 1186 | if Hit and Hit.Parent then | |
| 1187 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
| |
| 1188 | return true | |
| 1189 | end | |
| 1190 | end | |
| 1191 | return false | |
| 1192 | end | |
| 1193 | ||
| 1194 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
| 1195 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
| 1196 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 1197 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
| |
| 1198 | if RayHit and CheckIntangible(RayHit) then | |
| 1199 | if DelayIfHit then | |
| 1200 | wait() | |
| 1201 | end | |
| 1202 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
| 1203 | end | |
| 1204 | return RayHit, RayPos, RayNormal | |
| 1205 | end | |
| 1206 | ||
| 1207 | function turnto(position) | |
| 1208 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 1209 | end | |
| 1210 | ||
| 1211 | function RemoveOutlines(part) | |
| 1212 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 1213 | end | |
| 1214 | ||
| 1215 | local Create = LoadLibrary("RbxUtility").Create
| |
| 1216 | ||
| 1217 | function CreatePartb(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1218 | local Part = Create("Part")({
| |
| 1219 | Parent = Parent, | |
| 1220 | Reflectance = Reflectance, | |
| 1221 | Transparency = Transparency, | |
| 1222 | CanCollide = false, | |
| 1223 | Locked = true, | |
| 1224 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1225 | Name = Name, | |
| 1226 | Size = Size, | |
| 1227 | Material = Material | |
| 1228 | }) | |
| 1229 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 1230 | RemoveOutlines(Part) | |
| 1231 | return Part | |
| 1232 | end | |
| 1233 | ||
| 1234 | CFuncs = {
| |
| 1235 | ["Part"] = {
| |
| 1236 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1237 | local Part = Create("Part"){
| |
| 1238 | Parent = Parent, | |
| 1239 | Reflectance = Reflectance, | |
| 1240 | Transparency = Transparency, | |
| 1241 | CanCollide = false, | |
| 1242 | Locked = true, | |
| 1243 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1244 | Name = Name, | |
| 1245 | Size = Size, | |
| 1246 | Material = Material, | |
| 1247 | } | |
| 1248 | RemoveOutlines(Part) | |
| 1249 | return Part | |
| 1250 | end; | |
| 1251 | }; | |
| 1252 | ||
| 1253 | ["Mesh"] = {
| |
| 1254 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1255 | local Msh = Create(Mesh){
| |
| 1256 | Parent = Part, | |
| 1257 | Offset = OffSet, | |
| 1258 | Scale = Scale, | |
| 1259 | } | |
| 1260 | if Mesh == "SpecialMesh" then | |
| 1261 | Msh.MeshType = MeshType | |
| 1262 | Msh.MeshId = MeshId | |
| 1263 | end | |
| 1264 | return Msh | |
| 1265 | end; | |
| 1266 | }; | |
| 1267 | ||
| 1268 | ["Mesh"] = {
| |
| 1269 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1270 | local Msh = Create(Mesh){
| |
| 1271 | Parent = Part, | |
| 1272 | Offset = OffSet, | |
| 1273 | Scale = Scale, | |
| 1274 | } | |
| 1275 | if Mesh == "SpecialMesh" then | |
| 1276 | Msh.MeshType = MeshType | |
| 1277 | Msh.MeshId = MeshId | |
| 1278 | end | |
| 1279 | return Msh | |
| 1280 | end; | |
| 1281 | }; | |
| 1282 | ||
| 1283 | ["Weld"] = {
| |
| 1284 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 1285 | local Weld = Create("Weld"){
| |
| 1286 | Parent = Parent, | |
| 1287 | Part0 = Part0, | |
| 1288 | Part1 = Part1, | |
| 1289 | C0 = C0, | |
| 1290 | C1 = C1, | |
| 1291 | } | |
| 1292 | return Weld | |
| 1293 | end; | |
| 1294 | }; | |
| 1295 | ||
| 1296 | ["Sound"] = {
| |
| 1297 | Create = function(id, par, vol, pit) | |
| 1298 | coroutine.resume(coroutine.create(function() | |
| 1299 | local S = Create("Sound"){
| |
| 1300 | Volume = vol, | |
| 1301 | Name = "EffectSoundo", | |
| 1302 | Pitch = pit or 1, | |
| 1303 | SoundId = id, | |
| 1304 | Parent = par or workspace, | |
| 1305 | } | |
| 1306 | wait() | |
| 1307 | S:play() | |
| 1308 | game:GetService("Debris"):AddItem(S, 10)
| |
| 1309 | end)) | |
| 1310 | end; | |
| 1311 | }; | |
| 1312 | ||
| 1313 | ["TimeSound"] = {
| |
| 1314 | Create = function(id, par, vol, pit, timepos) | |
| 1315 | coroutine.resume(coroutine.create(function() | |
| 1316 | local S = Create("Sound"){
| |
| 1317 | Volume = vol, | |
| 1318 | Name = "EffectSoundo", | |
| 1319 | Pitch = pit or 1, | |
| 1320 | SoundId = id, | |
| 1321 | TimePosition = timepos, | |
| 1322 | Parent = par or workspace, | |
| 1323 | } | |
| 1324 | wait() | |
| 1325 | S:play() | |
| 1326 | game:GetService("Debris"):AddItem(S, 10)
| |
| 1327 | end)) | |
| 1328 | end; | |
| 1329 | }; | |
| 1330 | ["EchoSound"] = {
| |
| 1331 | Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) | |
| 1332 | coroutine.resume(coroutine.create(function() | |
| 1333 | local Sas = Create("Sound"){
| |
| 1334 | Volume = vol, | |
| 1335 | Name = "EffectSoundo", | |
| 1336 | Pitch = pit or 1, | |
| 1337 | SoundId = id, | |
| 1338 | TimePosition = timepos, | |
| 1339 | Parent = par or workspace, | |
| 1340 | } | |
| 1341 | local E = Create("EchoSoundEffect"){
| |
| 1342 | Delay = echodelay, | |
| 1343 | Name = "Echo", | |
| 1344 | Feedback = fedb, | |
| 1345 | DryLevel = dryl, | |
| 1346 | Parent = Sas, | |
| 1347 | } | |
| 1348 | wait() | |
| 1349 | Sas:play() | |
| 1350 | game:GetService("Debris"):AddItem(Sas, delays)
| |
| 1351 | end)) | |
| 1352 | end; | |
| 1353 | }; | |
| 1354 | ||
| 1355 | ["LongSound"] = {
| |
| 1356 | Create = function(id, par, vol, pit) | |
| 1357 | coroutine.resume(coroutine.create(function() | |
| 1358 | local S = Create("Sound"){
| |
| 1359 | Volume = vol, | |
| 1360 | Pitch = pit or 1, | |
| 1361 | SoundId = id, | |
| 1362 | Parent = par or workspace, | |
| 1363 | } | |
| 1364 | wait() | |
| 1365 | S:play() | |
| 1366 | game:GetService("Debris"):AddItem(S, 60)
| |
| 1367 | end)) | |
| 1368 | end; | |
| 1369 | }; | |
| 1370 | ||
| 1371 | ["ParticleEmitter"] = {
| |
| 1372 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 1373 | local fp = Create("ParticleEmitter"){
| |
| 1374 | Parent = Parent, | |
| 1375 | Color = ColorSequence.new(Color1, Color2), | |
| 1376 | LightEmission = LightEmission, | |
| 1377 | Size = Size, | |
| 1378 | Texture = Texture, | |
| 1379 | Transparency = Transparency, | |
| 1380 | ZOffset = ZOffset, | |
| 1381 | Acceleration = Accel, | |
| 1382 | Drag = Drag, | |
| 1383 | LockedToPart = LockedToPart, | |
| 1384 | VelocityInheritance = VelocityInheritance, | |
| 1385 | EmissionDirection = EmissionDirection, | |
| 1386 | Enabled = Enabled, | |
| 1387 | Lifetime = LifeTime, | |
| 1388 | Rate = Rate, | |
| 1389 | Rotation = Rotation, | |
| 1390 | RotSpeed = RotSpeed, | |
| 1391 | Speed = Speed, | |
| 1392 | VelocitySpread = VelocitySpread, | |
| 1393 | } | |
| 1394 | return fp | |
| 1395 | end; | |
| 1396 | }; | |
| 1397 | ||
| 1398 | CreateTemplate = {
| |
| 1399 | ||
| 1400 | }; | |
| 1401 | } | |
| 1402 | ||
| 1403 | function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color) | |
| 1404 | local type = type | |
| 1405 | local rotenable = rotatingop | |
| 1406 | local rng = Instance.new("Part", Effects)
| |
| 1407 | rng.Anchored = true | |
| 1408 | rng.BrickColor = color | |
| 1409 | rng.CanCollide = false | |
| 1410 | rng.FormFactor = 3 | |
| 1411 | rng.Name = "Ring" | |
| 1412 | rng.Material = "Neon" | |
| 1413 | rng.Size = Vector3.new(1, 1, 1) | |
| 1414 | rng.Transparency = 0 | |
| 1415 | if typeoftrans == "In" then | |
| 1416 | rng.Transparency = 1 | |
| 1417 | end | |
| 1418 | rng.TopSurface = 0 | |
| 1419 | rng.BottomSurface = 0 | |
| 1420 | rng.CFrame = pos | |
| 1421 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1422 | rngm.MeshType = "FileMesh" | |
| 1423 | if typeofshape == "Normal" then | |
| 1424 | rngm.MeshId = "rbxassetid://662586858" | |
| 1425 | elseif typeofshape == "Round" then | |
| 1426 | rngm.MeshId = "rbxassetid://662585058" | |
| 1427 | end | |
| 1428 | rngm.Scale = scale | |
| 1429 | local scaler2 = 1/10 | |
| 1430 | if type == "Add" then | |
| 1431 | scaler2 = 1*value/10 | |
| 1432 | elseif type == "Divide" then | |
| 1433 | scaler2 = 1/value/10 | |
| 1434 | end | |
| 1435 | local randomrot = MRANDOM(1,2) | |
| 1436 | coroutine.resume(coroutine.create(function() | |
| 1437 | for i = 0,10/bonuspeed,0.1 do | |
| 1438 | Swait() | |
| 1439 | if type == "Add" then | |
| 1440 | scaler2 = scaler2 - 0.01*value/bonuspeed/10 | |
| 1441 | elseif type == "Divide" then | |
| 1442 | scaler2 = scaler2 - 0.01/value*bonuspeed/10 | |
| 1443 | end | |
| 1444 | if rotenable == true then | |
| 1445 | if randomrot == 1 then | |
| 1446 | rng.CFrame = rng.CFrame*CFrame.Angles(0,RAD(rotspeed*bonuspeed/2),0) | |
| 1447 | elseif randomrot == 2 then | |
| 1448 | rng.CFrame = rng.CFrame*CFrame.Angles(0,RAD(-rotspeed*bonuspeed/2),0) | |
| 1449 | end | |
| 1450 | end | |
| 1451 | if typeoftrans == "Out" then | |
| 1452 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 1453 | elseif typeoftrans == "In" then | |
| 1454 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
| 1455 | end | |
| 1456 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10) | |
| 1457 | end | |
| 1458 | rng:Destroy() | |
| 1459 | end)) | |
| 1460 | end | |
| 1461 | ||
| 1462 | function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3) | |
| 1463 | local type = type | |
| 1464 | local rng = Instance.new("Part", Effects)
| |
| 1465 | rng.Anchored = true | |
| 1466 | rng.BrickColor = color | |
| 1467 | rng.Color = color3 | |
| 1468 | rng.CanCollide = false | |
| 1469 | rng.FormFactor = 3 | |
| 1470 | rng.Name = "Ring" | |
| 1471 | rng.Material = "Neon" | |
| 1472 | rng.Size = Vector3.new(1, 1, 1) | |
| 1473 | rng.Transparency = 0 | |
| 1474 | rng.TopSurface = 0 | |
| 1475 | rng.BottomSurface = 0 | |
| 1476 | rng.CFrame = pos | |
| 1477 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1478 | rngm.MeshType = "Brick" | |
| 1479 | rngm.Scale = scale | |
| 1480 | local scaler2 = 1 | |
| 1481 | local scaler2b = 1 | |
| 1482 | local scaler2c = 1 | |
| 1483 | if type == "Add" then | |
| 1484 | scaler2 = 1*value | |
| 1485 | scaler2b = 1*value2 | |
| 1486 | scaler2c = 1*value3 | |
| 1487 | elseif type == "Divide" then | |
| 1488 | scaler2 = 1/value | |
| 1489 | scaler2b = 1/value2 | |
| 1490 | scaler2c = 1/value3 | |
| 1491 | end | |
| 1492 | coroutine.resume(coroutine.create(function() | |
| 1493 | for i = 0,10/bonuspeed,0.1 do | |
| 1494 | Swait() | |
| 1495 | if type == "Add" then | |
| 1496 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 1497 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
| 1498 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
| 1499 | elseif type == "Divide" then | |
| 1500 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 1501 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
| 1502 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
| 1503 | end | |
| 1504 | rng.CFrame = rng.CFrame*CFrame.Angles(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
| 1505 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 1506 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
| 1507 | end | |
| 1508 | rng:Destroy() | |
| 1509 | end)) | |
| 1510 | end | |
| 1511 | ||
| 1512 | function createBGCircle(size,parent,color) | |
| 1513 | local bgui = Instance.new("BillboardGui",parent)
| |
| 1514 | bgui.Size = UDim2.new(size, 0, size, 0) | |
| 1515 | local imgc = Instance.new("ImageLabel",bgui)
| |
| 1516 | imgc.BackgroundTransparency = 1 | |
| 1517 | imgc.ImageTransparency = 0 | |
| 1518 | imgc.Size = UDim2.new(1,0,1,0) | |
| 1519 | imgc.Image = "rbxassetid://997291547" --997291547,521073910 | |
| 1520 | imgc.ImageColor3 = color | |
| 1521 | return bgui,imgc | |
| 1522 | end | |
| 1523 | ||
| 1524 | function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay) | |
| 1525 | local bgui,imgc = createBGCircle(size,guipar,color) | |
| 1526 | bgui.AlwaysOnTop = true | |
| 1527 | imgc.Image = "rbxassetid://" ..img | |
| 1528 | local rrot = MRANDOM(1,2) | |
| 1529 | CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
| |
| 1530 | coroutine.resume(coroutine.create(function() | |
| 1531 | for i = 0, 24*delay do | |
| 1532 | Swait() | |
| 1533 | if rotationenabled == true then | |
| 1534 | if rrot == 1 then | |
| 1535 | imgc.Rotation = imgc.Rotation + rotsp | |
| 1536 | elseif rrot == 2 then | |
| 1537 | imgc.Rotation = imgc.Rotation - rotsp | |
| 1538 | end | |
| 1539 | end | |
| 1540 | bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0) | |
| 1541 | imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay | |
| 1542 | end | |
| 1543 | bgui:Destroy() | |
| 1544 | end)) | |
| 1545 | end | |
| 1546 | ||
| 1547 | function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color) | |
| 1548 | local type = type | |
| 1549 | local rng = Instance.new("Part", Effects)
| |
| 1550 | rng.Anchored = true | |
| 1551 | rng.BrickColor = color | |
| 1552 | rng.CanCollide = false | |
| 1553 | rng.FormFactor = 3 | |
| 1554 | rng.Name = "Ring" | |
| 1555 | rng.Material = "Neon" | |
| 1556 | rng.Size = Vector3.new(1, 1, 1) | |
| 1557 | rng.Transparency = 0 | |
| 1558 | rng.TopSurface = 0 | |
| 1559 | rng.BottomSurface = 0 | |
| 1560 | rng.CFrame = pos | |
| 1561 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1562 | rngm.MeshType = "Sphere" | |
| 1563 | rngm.Scale = scale | |
| 1564 | local scaler2 = 1 | |
| 1565 | local scaler2b = 1 | |
| 1566 | local scaler2c = 1 | |
| 1567 | if type == "Add" then | |
| 1568 | scaler2 = 1*value | |
| 1569 | scaler2b = 1*value2 | |
| 1570 | scaler2c = 1*value3 | |
| 1571 | elseif type == "Divide" then | |
| 1572 | scaler2 = 1/value | |
| 1573 | scaler2b = 1/value2 | |
| 1574 | scaler2c = 1/value3 | |
| 1575 | end | |
| 1576 | coroutine.resume(coroutine.create(function() | |
| 1577 | for i = 0,10/bonuspeed,0.1 do | |
| 1578 | Swait() | |
| 1579 | if type == "Add" then | |
| 1580 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 1581 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
| 1582 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
| 1583 | elseif type == "Divide" then | |
| 1584 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 1585 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
| 1586 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
| 1587 | end | |
| 1588 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 1589 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
| 1590 | end | |
| 1591 | rng:Destroy() | |
| 1592 | end)) | |
| 1593 | end | |
| 1594 | ||
| 1595 | function createSpeech(parent, text, font, textcolor, debris) | |
| 1596 | -- Instances: | |
| 1597 | local SpeechUi = Instance.new("ScreenGui")
| |
| 1598 | local SpeechFrame = Instance.new("Frame")
| |
| 1599 | local SpeechLabel = Instance.new("TextLabel")
| |
| 1600 | --Properties: | |
| 1601 | SpeechUi.Name = "SpeechUi" | |
| 1602 | SpeechUi.Parent = parent | |
| 1603 | ||
| 1604 | SpeechFrame.Name = "SpeechFrame" | |
| 1605 | SpeechFrame.Parent = SpeechUi | |
| 1606 | SpeechFrame.BackgroundColor3 = C3(0, 0, 0) | |
| 1607 | SpeechFrame.BackgroundTransparency = 0.5 | |
| 1608 | SpeechFrame.BorderColor3 = C3(0, 0, 0) | |
| 1609 | SpeechFrame.BorderSizePixel = 0 | |
| 1610 | SpeechFrame.Position = UDim2.new(0, 0, 0.646566153, 0) | |
| 1611 | SpeechFrame.Size = UDim2.new(1, 0, 0.185929641, 100) | |
| 1612 | ||
| 1613 | SpeechLabel.Name = "SpeechLabel" | |
| 1614 | SpeechLabel.Parent = SpeechFrame | |
| 1615 | SpeechLabel.BackgroundColor3 = C3(1, 1, 1) | |
| 1616 | SpeechLabel.BackgroundTransparency = 1 | |
| 1617 | SpeechLabel.BorderSizePixel = 0 | |
| 1618 | SpeechLabel.Position = UDim2.new(0, 0, 0.132701427, 0) | |
| 1619 | SpeechLabel.Size = UDim2.new(1, 0, 0, 155) | |
| 1620 | SpeechLabel.Font = font | |
| 1621 | SpeechLabel.Text = text | |
| 1622 | SpeechLabel.TextColor3 = textcolor | |
| 1623 | SpeechLabel.TextSize = 60 | |
| 1624 | SpeechLabel.TextStrokeTransparency = 0 | |
| 1625 | SpeechLabel.TextWrapped = true | |
| 1626 | Debris:AddItem(SpeechUi, debris) | |
| 1627 | end | |
| 1628 | ||
| 1629 | function SpawnTrail(FROM,TO,BIG) | |
| 1630 | local TRAIL = CreatePartC(3, Effects, "Neon", 0, 0.5, C3(r / 255, g / 255, b / 255), "Trail", VT(0,0,0)) | |
| 1631 | MakeForm(TRAIL,"Cyl") | |
| 1632 | local DIST = (FROM - TO).Magnitude | |
| 1633 | if BIG == true then | |
| 1634 | TRAIL.Size = VT(0.5,DIST,0.5) | |
| 1635 | else | |
| 1636 | TRAIL.Size = VT(0.25,DIST,0.25) | |
| 1637 | end | |
| 1638 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 1639 | coroutine.resume(coroutine.create(function() | |
| 1640 | for i = 1, 5 do | |
| 1641 | Swait() | |
| 1642 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 1643 | end | |
| 1644 | TRAIL:remove() | |
| 1645 | end)) | |
| 1646 | end | |
| 1647 | ||
| 1648 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 1649 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 1650 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 1651 | end | |
| 1652 | ||
| 1653 | function chatfunc(text) | |
| 1654 | local chat = coroutine.wrap(function() | |
| 1655 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 1656 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 1657 | end | |
| 1658 | local Bill = Instance.new("BillboardGui",Character)
| |
| 1659 | Bill.Size = UDim2.new(0,100,0,40) | |
| 1660 | Bill.StudsOffset = VT(0,3,0) | |
| 1661 | Bill.Adornee = Character.Head | |
| 1662 | Bill.Name = "TalkingBillBoard" | |
| 1663 | local Hehe = Instance.new("TextLabel",Bill)
| |
| 1664 | Hehe.BackgroundTransparency = 1 | |
| 1665 | Hehe.BorderSizePixel = 0 | |
| 1666 | Hehe.Text = "" | |
| 1667 | Hehe.Font = "Bodoni" | |
| 1668 | Hehe.TextSize = 40 | |
| 1669 | Hehe.TextStrokeTransparency = 0 | |
| 1670 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
| 1671 | coroutine.resume(coroutine.create(function() | |
| 1672 | while Hehe ~= nil do | |
| 1673 | Swait() | |
| 1674 | Hehe.Font = FONTS[MRANDOM(1, #FONTS)] | |
| 1675 | Hehe.Position = UDim2.new(0, 0, .05, 0) | |
| 1676 | Hehe.TextColor3 = C3(r / 255, g / 255, b / 255) | |
| 1677 | Hehe.TextStrokeColor3 = C3(r / 255, g / 255, b / 255) | |
| 1678 | end | |
| 1679 | end)) | |
| 1680 | for i = 1,string.len(text),1 do | |
| 1681 | Swait() | |
| 1682 | Hehe.Text = string.sub(text,1,i) | |
| 1683 | end | |
| 1684 | Swait(90) | |
| 1685 | for i = 0, 1, .025 do | |
| 1686 | Swait() | |
| 1687 | Hehe.TextStrokeTransparency = i | |
| 1688 | Hehe.TextTransparency = i | |
| 1689 | end | |
| 1690 | Bill:Destroy() | |
| 1691 | end) | |
| 1692 | chat() | |
| 1693 | end | |
| 1694 | ||
| 1695 | function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine) | |
| 1696 | if DoesCourontine == false then | |
| 1697 | local Direction = CF(Part.Position, ToLocation) | |
| 1698 | local Distance = (Part.Position - ToLocation).magnitude | |
| 1699 | for i = 1, AmountOfTime do | |
| 1700 | Swait() | |
| 1701 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
| 1702 | Direction = Part.CFrame | |
| 1703 | end | |
| 1704 | Part:remove() | |
| 1705 | elseif DoesCourontine == true then | |
| 1706 | coroutine.resume(coroutine.create(function() | |
| 1707 | local Direction = CF(Part.Position, ToLocation) | |
| 1708 | local Distance = (Part.Position - ToLocation).magnitude | |
| 1709 | for i = 1, AmountOfTime do | |
| 1710 | Swait() | |
| 1711 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
| 1712 | Direction = Part.CFrame | |
| 1713 | end | |
| 1714 | Part:remove() | |
| 1715 | end)) | |
| 1716 | end | |
| 1717 | end | |
| 1718 | ||
| 1719 | function AddChildrenToTable(FROM, PARENT, DIST, TABLE) | |
| 1720 | for _, c in pairs(PARENT:GetChildren()) do | |
| 1721 | if c.ClassName == "Model" then | |
| 1722 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
| |
| 1723 | local HUMANOID = c:FindFirstChildOfClass("Humanoid")
| |
| 1724 | local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
| |
| 1725 | if DIST > (TORSO.Position - FROM).Magnitude then | |
| 1726 | table.insert(TABLE, c) | |
| 1727 | end | |
| 1728 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
| 1729 | elseif c.ClassName == "Folder" then | |
| 1730 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
| 1731 | end | |
| 1732 | end | |
| 1733 | end | |
| 1734 | end | |
| 1735 | ||
| 1736 | function getRegion(point,range,ignore) | |
| 1737 | return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100) | |
| 1738 | end | |
| 1739 | ||
| 1740 | function printbye(Name) | |
| 1741 | local MESSAGES = {"That was your fault, ", "Sit down, ", "Take a load off, ", "Chill, ", "Begone, ", "What was the point of that, ", "Try to do the impossible and struggle, ", "I welcome you to the ban lands, ", "Welp, no return from here, ", "That was just bad luck, ","Don't try that ever again, "}
| |
| 1742 | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
| 1743 | end | |
| 1744 | ||
| 1745 | function CamShake(who,times,intense,origin) | |
| 1746 | coroutine.wrap(function() | |
| 1747 | if(script:FindFirstChild'CamShake')then | |
| 1748 | local cam = script.CamShake:Clone() | |
| 1749 | cam:WaitForChild'intensity'.Value = intense | |
| 1750 | cam:WaitForChild'times'.Value = times | |
| 1751 | ||
| 1752 | if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
| |
| 1753 | cam.Parent = who | |
| 1754 | wait() | |
| 1755 | cam.Disabled = false | |
| 1756 | elseif(who == Player or who == Character or who:IsDescendantOf(Player))then | |
| 1757 | local intensity = intense | |
| 1758 | local cam = workspace.CurrentCamera | |
| 1759 | for i = 1, times do | |
| 1760 | local camDistFromOrigin | |
| 1761 | if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then | |
| 1762 | camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25 | |
| 1763 | elseif(typeof(origin) == 'Vector3')then | |
| 1764 | camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25 | |
| 1765 | end | |
| 1766 | if(camDistFromOrigin)then | |
| 1767 | intensity = math.min(intense, math.floor(intense/camDistFromOrigin)) | |
| 1768 | end | |
| 1769 | cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(MRANDOM(-intensity,intensity)/100,MRANDOM(-intensity,intensity)/100,MRANDOM(-intensity,intensity)/100)*CFrame.Angles(RAD(MRANDOM(-intensity,intensity)/100),RAD(MRANDOM(-intensity,intensity)/100),RAD(MRANDOM(-intensity,intensity)/100)),.4) | |
| 1770 | Swait() | |
| 1771 | end | |
| 1772 | end | |
| 1773 | end)() | |
| 1774 | end | |
| 1775 | ||
| 1776 | ||
| 1777 | function CamShakeAll(times,intense,origin) | |
| 1778 | for _,v in next, Players:players() do | |
| 1779 | CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin) | |
| 1780 | end | |
| 1781 | end | |
| 1782 | ||
| 1783 | function CamShakeAOE(origin,range,times,intense,blacklist) | |
| 1784 | local hit = {}
| |
| 1785 | for _,v in next, getRegion(origin,range,blacklist or {}) do
| |
| 1786 | if(Players:GetPlayerFromCharacter(v.Parent) and v.Parent and not hit[v.Parent] and v.Parent:FindFirstChildOfClass'Humanoid')then | |
| 1787 | CamShake(v,times,intense,origin) | |
| 1788 | hit[v.Parent] = true | |
| 1789 | end | |
| 1790 | end | |
| 1791 | end | |
| 1792 | ||
| 1793 | function FocusCamAll(timer, focuson, up) | |
| 1794 | for _,v in next, Players:players() do | |
| 1795 | if(script:FindFirstChild'FocusCam')then | |
| 1796 | local focus = script.FocusCam:Clone() | |
| 1797 | focus:WaitForChild'FocusOn'.Value = focuson | |
| 1798 | focus:WaitForChild'Timer'.Value = timer | |
| 1799 | focus:WaitForChild'Up'.Value = up | |
| 1800 | focus.Parent = v.Character | |
| 1801 | wait() | |
| 1802 | focus.Disabled = false | |
| 1803 | end | |
| 1804 | end | |
| 1805 | end | |
| 1806 | ||
| 1807 | function Weld(part0,part1,c0,c1) | |
| 1808 | local weld = IT("Weld")
| |
| 1809 | weld.Parent = part0 | |
| 1810 | weld.Part0 = part0 | |
| 1811 | weld.Part1 = part1 | |
| 1812 | weld.C0 = c0 or CF() | |
| 1813 | weld.C1 = c1 or CF() | |
| 1814 | return weld | |
| 1815 | end | |
| 1816 | ||
| 1817 | --//=================================\\ | |
| 1818 | --|| WEAPON CREATION | |
| 1819 | --\\=================================// | |
| 1820 | ||
| 1821 | if Head:FindFirstChildOfClass("Decal") then
| |
| 1822 | Head:FindFirstChildOfClass("Decal").Texture = "rbxassetid://404306534"
| |
| 1823 | else | |
| 1824 | local newFace = Instance.new("Decal", Head)
| |
| 1825 | newFace.Parent = Head | |
| 1826 | newFace.Face = "Front" | |
| 1827 | newFace.Texture = "rbxassetid://404306534" | |
| 1828 | end | |
| 1829 | ||
| 1830 | New = function(Object, Parent, Name, Data) | |
| 1831 | local Object = Instance.new(Object) | |
| 1832 | for Index, Value in pairs(Data or {}) do
| |
| 1833 | Object[Index] = Value | |
| 1834 | end | |
| 1835 | Object.Parent = Parent | |
| 1836 | Object.Name = Name | |
| 1837 | return Object | |
| 1838 | end | |
| 1839 | ||
| 1840 | NewInstance = function(instance,parent,properties) | |
| 1841 | local inst = Instance.new(instance,parent) | |
| 1842 | if(properties)then | |
| 1843 | for i,v in next, properties do | |
| 1844 | pcall(function() inst[i] = v end) | |
| 1845 | end | |
| 1846 | end | |
| 1847 | return inst; | |
| 1848 | end | |
| 1849 | ||
| 1850 | Gaunty = New("Model",Character,"Gaunty",{})
| |
| 1851 | Handle = New("Part",Gaunty,"Handle",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1, 1.26999998, 1),CFrame = CFrame.new(-5.67319345, 3.02064276, -77.6615906, 0.999894261, 0.010924357, 0.00963267777, -0.0110270018, 0.999882579, 0.0106679145, -0.00951499958, -0.0107729975, 0.999897003),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1852 | Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),})
| |
| 1853 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.82765579, 3.62595344, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1854 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.161155701, 0.603512526, 0.00862884521, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1855 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-6.13765526, 3.62595367, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1856 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.471122265, 0.600126028, 0.00564575195, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1857 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.5176549, 3.62595415, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1858 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.148812294, 0.606899738, 0.0116195679, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1859 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.21765471, 3.62595463, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1860 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.448780537, 0.610177517, 0.014503479, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1861 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-6.13765526, 2.53595448, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1862 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.459102631, -0.489744425, -0.00598144531, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1863 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.82765627, 2.53595448, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1864 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.149136543, -0.486357927, -0.00299835205, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1865 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.51765537, 2.53595448, -77.6579361, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1866 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.160831451, -0.48297143, -1.52587891e-05, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1867 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.21765566, 2.53595424, -77.6579361, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1868 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.460799217, -0.479694128, 0.00286865234, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1869 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.07999992, 0.279999971, 1.06999993),CFrame = CFrame.new(-5.66865063, 3.64553881, -77.6613617, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1870 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),})
| |
| 1871 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(-0.00235080719, 0.624869347, 0.00694274902, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1872 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66490126, 3.73544312, -77.6652145, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1873 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),})
| |
| 1874 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.000443935394, 0.714845657, 0.00408172607, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1875 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66480446, 3.52554965, -77.65522, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1876 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),})
| |
| 1877 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.00275993347, 0.504870415, 0.0118331909, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1878 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.07999992, 0.279999971, 1.06999993),CFrame = CFrame.new(-5.6686511, 2.55553746, -77.6613541, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1879 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),})
| |
| 1880 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.00966835022, -0.465003252, -0.00468444824, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1881 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66490126, 2.64544272, -77.6652145, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1882 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),})
| |
| 1883 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.0124630928, -0.375026226, -0.00754547119, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1884 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66480494, 2.43554902, -77.65522, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1885 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),})
| |
| 1886 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.0147790909, -0.585001707, 0.000205993652, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1887 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265606, 3.62595463, -78.1079407, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1888 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.0018901825, 0.61005497, -0.439842224, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1889 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265606, 3.62595558, -77.8179321, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1890 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.00464963913, 0.606931448, -0.149864197, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1891 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 3.62595606, -77.4879303, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1892 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.00278997421, 0.603431463, 0.180152893, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1893 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 3.62595654, -77.1979294, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1894 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.00554895401, 0.600307703, 0.470123291, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1895 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 2.53595638, -77.1979294, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1896 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.0064702034, -0.489563704, 0.458496094, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1897 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 2.53595614, -77.4879303, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1898 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.00922966003, -0.486439705, 0.168525696, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1899 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265558, 2.53595638, -77.8179245, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1900 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.00736999512, -0.482939243, -0.161483765, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1901 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265606, 2.53595614, -78.1079254, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1902 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.0101289749, -0.479815245, -0.451454163, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1903 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765547, 3.62595677, -77.1979218, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1904 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.00554943085, 0.600307941, 0.47013092, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1905 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 3.62595701, -77.4879303, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1906 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.00278949738, 0.603432655, 0.180152893, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1907 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765451, 3.62595749, -77.8179321, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1908 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.000350952148, 0.606987953, -0.149810791, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1909 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765451, 3.62595749, -78.107933, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1910 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.00311040878, 0.61011219, -0.439788818, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1911 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.53595734, -78.107933, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1912 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.0151295662, -0.479759216, -0.451416016, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1913 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.5359571, -77.8179245, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1914 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.0123701096, -0.482883692, -0.161437988, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1915 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.5359571, -77.4879227, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1916 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.00923013687, -0.48643899, 0.168533325, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1917 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.53595686, -77.1979218, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1918 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.00647068024, -0.489563227, 0.458503723, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1919 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-6.13765478, 3.62595701, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1920 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.471121788, 0.600129128, 0.00566101074, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1921 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.82765484, 3.62595725, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1922 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.161154747, 0.603516102, 0.008644104, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1923 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.51765442, 3.62595773, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1924 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.148812771, 0.606903076, 0.0116348267, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1925 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.21765375, 3.6259582, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1926 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.44878149, 0.610180855, 0.0145187378, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1927 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.21765327, 2.53595781, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1928 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.460801125, -0.47969079, 0.00289154053, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1929 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.51765299, 2.53595757, -77.6579208, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1930 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.160833359, -0.48296833, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1931 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.82765341, 2.53595734, -77.6579208, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1932 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.149133682, -0.486355066, -0.00299072266, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1933 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-6.13765383, 2.53595734, -77.6579208, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1934 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.4591012, -0.489741802, -0.00597381592, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1935 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.25000003),CFrame = CFrame.new(-5.66203499, 3.4509573, -77.7865677, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1936 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.00760126114, 0.431732178, -0.120269775, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1937 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.280000031),CFrame = CFrame.new(-5.66203451, 3.45095778, -77.5215683, -1.0000006, -6.18456397e-10, -9.12696123e-08, 6.18456397e-10, 1.0000006, -4.65661287e-09, 8.38190317e-08, 4.65661287e-09, -1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1938 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1),C1 = CFrame.new(0.00508022308, 0.428877592, 0.144706726, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1939 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.25000003),CFrame = CFrame.new(-5.66203403, 2.81095791, -77.7865601, -1.0000006, 8.81700544e-08, 3.7252903e-09, -8.69331416e-08, -1.0000006, 4.65661287e-09, -3.7252903e-09, -4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1940 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, -8.74227766e-08, 0, 8.74227766e-08, -1, 0, 0, 0, 1),C1 = CFrame.new(0.0146594048, -0.208191872, -0.127082825, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1941 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.280000031),CFrame = CFrame.new(-5.66203356, 2.8209579, -77.5215607, 1.0000006, -8.69331416e-08, 8.38190317e-08, -8.81700544e-08, -1.0000006, -4.65661287e-09, 9.12696123e-08, -4.65661287e-09, -1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = C3(0.972549, 0.972549, 0.972549),})
| |
| 1942 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, -1, -7.64274186e-15, 8.74227766e-08, 0, -1),C1 = CFrame.new(0.0120282173, -0.201047897, 0.137992859, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1943 | Wedge = New("WedgePart",Gaunty,"Wedge",{BrickColor = BrickColor.new("Black"),Size = Vector3.new(1.1099999, 0.569999993, 1.13),CFrame = CFrame.new(-5.6508193, 4.06113148, -77.6620178, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,Color = C3(0.105882, 0.164706, 0.207843),})
| |
| 1944 | mot = New("Motor",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.0109024048, 1.04061508, 0.010887146, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),})
| |
| 1945 | local HW1 = NewInstance('Motor', Character, {Part0 = RightArm, Part1 = Handle, C0 = CF(0,-.51,0)})
| |
| 1946 | ||
| 1947 | for _,v in next, Gaunty:children() do | |
| 1948 | v.CanCollide = false | |
| 1949 | end | |
| 1950 | ||
| 1951 | local all, last = {}, nil
| |
| 1952 | ArmourParts = {}
| |
| 1953 | NeonParts = {}
| |
| 1954 | function scan(p) | |
| 1955 | for _, v in pairs(p:GetChildren()) do | |
| 1956 | if v:IsA("BasePart") then
| |
| 1957 | if v.BrickColor == BrickColor.new("Black") then
| |
| 1958 | table.insert(ArmourParts, v) | |
| 1959 | end | |
| 1960 | if v.BrickColor == BrickColor.new("Institutional white") then
| |
| 1961 | table.insert(NeonParts, v) | |
| 1962 | end | |
| 1963 | if last then | |
| 1964 | local w = Instance.new("Weld")
| |
| 1965 | w.Part0, w.Part1 = last, v | |
| 1966 | w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse() | |
| 1967 | w.Parent = last | |
| 1968 | end | |
| 1969 | table.insert(all, v) | |
| 1970 | last = v | |
| 1971 | end | |
| 1972 | scan(v) | |
| 1973 | end | |
| 1974 | end | |
| 1975 | scan(Gaunty) | |
| 1976 | for i, v in pairs(ArmourParts) do | |
| 1977 | v.BrickColor = BrickColor.new("Black")
| |
| 1978 | v.Material = Enum.Material.Neon | |
| 1979 | end | |
| 1980 | for i, v in pairs(NeonParts) do | |
| 1981 | v.BrickColor = BrickColor.Random() | |
| 1982 | end | |
| 1983 | ||
| 1984 | for i = 1, 10 do | |
| 1985 | local FACE = CreatePart(3, faceShadingFolder, "Neon", 0, 0+(i-1)/10.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false) | |
| 1986 | FACE.Color = C3(0,0,0) | |
| 1987 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
| |
| 1988 | CreateWeldOrSnapOrMotor("Weld", FACE, Head, FACE, CF(0,0.28-(i-1)/30,0), CF(0, 0, 0))
| |
| 1989 | end | |
| 1990 | ||
| 1991 | local LASTPART = Head | |
| 1992 | for i = 1, 20 do | |
| 1993 | local MATH = (1-(i/25)) | |
| 1994 | if LASTPART == Head then | |
| 1995 | local Horn = CreatePart(3, HornFolder, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 1996 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
| |
| 1997 | LASTPART = Horn | |
| 1998 | Horn.Color = BrickColor.Random().Color | |
| 1999 | else | |
| 2000 | local Horn = CreatePart(3, HornFolder, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 2001 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
| |
| 2002 | LASTPART = Horn | |
| 2003 | Horn.Color = BrickColor.Random().Color | |
| 2004 | end | |
| 2005 | end | |
| 2006 | local LASTPART = Head | |
| 2007 | for i = 1, 20 do | |
| 2008 | local MATH = (1-(i/25)) | |
| 2009 | if LASTPART == Head then | |
| 2010 | local Horn = CreatePart(3, HornFolder, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 2011 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
| |
| 2012 | LASTPART = Horn | |
| 2013 | Horn.Color = BrickColor.Random().Color | |
| 2014 | else | |
| 2015 | local Horn = CreatePart(3, HornFolder, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 2016 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
| |
| 2017 | LASTPART = Horn | |
| 2018 | Horn.Color = BrickColor.Random().Color | |
| 2019 | end | |
| 2020 | end | |
| 2021 | ||
| 2022 | -- IdleGun(Karma) -- | |
| 2023 | ||
| 2024 | local Handle = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.6,0.2),false) | |
| 2025 | local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(-1.2, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 2026 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) | |
| 2027 | MakeForm(Part,"Wedge") | |
| 2028 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 2029 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.3,0.2),false) | |
| 2030 | MakeForm(Part,"Wedge") | |
| 2031 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 2032 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.3),false) | |
| 2033 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2034 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false) | |
| 2035 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2036 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false) | |
| 2037 | MakeForm(Part,"Cyl") | |
| 2038 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2039 | for i = 1, 8 do | |
| 2040 | local Piece = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false) | |
| 2041 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 2042 | end | |
| 2043 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Eye", VT(0.38,0.41,0.38),false) | |
| 2044 | MakeForm(Part,"Cyl") | |
| 2045 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2046 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.37,0.5,0.37),false) | |
| 2047 | MakeForm(Part,"Ball") | |
| 2048 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2049 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.7,0.4),false) | |
| 2050 | MakeForm(Part,"Wedge") | |
| 2051 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 2052 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.2),false) | |
| 2053 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2054 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.35,0.35,0.35),false) | |
| 2055 | MakeForm(Part,"Cyl") | |
| 2056 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2057 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.5),false) | |
| 2058 | MakeForm(Part,"Cyl") | |
| 2059 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2060 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.45),false) | |
| 2061 | MakeForm(Part,"Cyl") | |
| 2062 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2063 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) | |
| 2064 | MakeForm(Part,"Wedge") | |
| 2065 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 2066 | local LASTPART = Handle | |
| 2067 | for i = 1, 10 do | |
| 2068 | if LASTPART == Handle then | |
| 2069 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "White", "Part", VT(0.1,0.2,0),false) | |
| 2070 | LASTPART = Part | |
| 2071 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2072 | else | |
| 2073 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "White", "Part", VT(0.1,0.05,0),false) | |
| 2074 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 2075 | LASTPART = Part | |
| 2076 | end | |
| 2077 | end | |
| 2078 | ||
| 2079 | local Barrel = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.15,2,0.15),false) | |
| 2080 | MakeForm(Barrel,"Cyl") | |
| 2081 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2082 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0.25,1,0.25),false) | |
| 2083 | MakeForm(Part,"Cyl") | |
| 2084 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 2085 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "Really black", "Part", VT(0,0.1,0.2),false) | |
| 2086 | MakeForm(Part,"Wedge") | |
| 2087 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2088 | local Hole = CreatePart(3, KarmaGun, "Metal", 0, 0, "White", "Eye", VT(0.125,0,0.125),false) | |
| 2089 | MakeForm(Hole,"Cyl") | |
| 2090 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 2091 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0, "White", "Part", VT(0,0,0),false) | |
| 2092 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 2093 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 2094 | local Part = CreatePart(3, KarmaGun, "Metal", 0, 0.5, "White", "Eye", VT(0,0,0),false) | |
| 2095 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 2096 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 2097 | coroutine.resume(coroutine.create(function() | |
| 2098 | while wait() do | |
| 2099 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 2100 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 2101 | end | |
| 2102 | end)) | |
| 2103 | -- UsedGun(Karma) -- | |
| 2104 | ||
| 2105 | local Handle2 = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.6,0.2),false) | |
| 2106 | local LeftArmGrasp = nil | |
| 2107 | if(script["Mode"].Value ~= "Insane") then | |
| 2108 | LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle2, RightArm, Handle2, CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 2109 | elseif(script["Mode"].Value == "Insane") then | |
| 2110 | LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle2, LeftArm, Handle2, CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 2111 | end | |
| 2112 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) | |
| 2113 | MakeForm(Part,"Wedge") | |
| 2114 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 2115 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.3,0.2),false) | |
| 2116 | MakeForm(Part,"Wedge") | |
| 2117 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 2118 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.3),false) | |
| 2119 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2120 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false) | |
| 2121 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2122 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false) | |
| 2123 | MakeForm(Part,"Cyl") | |
| 2124 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2125 | for i = 1, 8 do | |
| 2126 | local Piece = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false) | |
| 2127 | CreateWeldOrSnapOrMotor("Weld", Handle2, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 2128 | end | |
| 2129 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Eye", VT(0.38,0.41,0.38),false) | |
| 2130 | MakeForm(Part,"Cyl") | |
| 2131 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2132 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.37,0.5,0.37),false) | |
| 2133 | MakeForm(Part,"Ball") | |
| 2134 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2135 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.7,0.4),false) | |
| 2136 | MakeForm(Part,"Wedge") | |
| 2137 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 2138 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.2),false) | |
| 2139 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2140 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.35,0.35,0.35),false) | |
| 2141 | MakeForm(Part,"Cyl") | |
| 2142 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2143 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.5),false) | |
| 2144 | MakeForm(Part,"Cyl") | |
| 2145 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2146 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.45),false) | |
| 2147 | MakeForm(Part,"Cyl") | |
| 2148 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2149 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) | |
| 2150 | MakeForm(Part,"Wedge") | |
| 2151 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 2152 | local LASTPART = Handle2 | |
| 2153 | for i = 1, 10 do | |
| 2154 | if LASTPART == Handle then | |
| 2155 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "White", "Part", VT(0.1,0.2,0),false) | |
| 2156 | LASTPART = Part | |
| 2157 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2158 | else | |
| 2159 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "White", "Part", VT(0.1,0.05,0),false) | |
| 2160 | CreateWeldOrSnapOrMotor("Weld", Handle2, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 2161 | LASTPART = Part | |
| 2162 | end | |
| 2163 | end | |
| 2164 | ||
| 2165 | local Barrel2 = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.15,2,0.15),false) | |
| 2166 | MakeForm(Barrel,"Cyl") | |
| 2167 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Barrel2, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2168 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0.25,1,0.25),false) | |
| 2169 | MakeForm(Part,"Cyl") | |
| 2170 | CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 2171 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "Really black", "Part", VT(0,0.1,0.2),false) | |
| 2172 | MakeForm(Part,"Wedge") | |
| 2173 | CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2174 | local Hole2 = CreatePart(3, KarmaGun2, "Metal", 0, 0, "White", "Eye", VT(0.125,0,0.125),false) | |
| 2175 | MakeForm(Hole,"Cyl") | |
| 2176 | CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 2177 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0, "White", "Part", VT(0,0,0),false) | |
| 2178 | local GEARWELD3 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 2179 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 2180 | local Part = CreatePart(3, KarmaGun2, "Metal", 0, 0.5, "White", "Eye", VT(0,0,0),false) | |
| 2181 | local GEARWELD4 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 2182 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 2183 | coroutine.resume(coroutine.create(function() | |
| 2184 | while wait() do | |
| 2185 | GEARWELD3.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 2186 | GEARWELD4.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 2187 | end | |
| 2188 | end)) | |
| 2189 | ||
| 2190 | for _, b in pairs(Karma:GetChildren()) do | |
| 2191 | if b.ClassName == "Part" then | |
| 2192 | b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 2193 | end | |
| 2194 | end | |
| 2195 | ||
| 2196 | for _, b in pairs(Weapon:GetChildren()) do | |
| 2197 | if b.ClassName == "Part" then | |
| 2198 | b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 2199 | end | |
| 2200 | end | |
| 2201 | ||
| 2202 | ||
| 2203 | for _, b in pairs(KarmaGun2:GetChildren()) do | |
| 2204 | if b.ClassName == "Part" then | |
| 2205 | b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 2206 | end | |
| 2207 | end | |
| 2208 | ||
| 2209 | for _, b in pairs(KarmaGun:GetChildren()) do | |
| 2210 | if b.ClassName == "Part" then | |
| 2211 | b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 2212 | end | |
| 2213 | end | |
| 2214 | ||
| 2215 | coroutine.resume(coroutine.create(function() | |
| 2216 | while true do | |
| 2217 | Swait() | |
| 2218 | for _, c in pairs(KarmaGun2:GetDescendants()) do | |
| 2219 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 2220 | c.Material = "Glass" | |
| 2221 | c.Color = BrickColor.Random().Color | |
| 2222 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 2223 | c.Material = "Neon" | |
| 2224 | c.Color = C3(r / 255, g / 255, b / 255) | |
| 2225 | end | |
| 2226 | end | |
| 2227 | for _, c in pairs(KarmaGun:GetDescendants()) do | |
| 2228 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 2229 | c.Material = "Glass" | |
| 2230 | c.Color = BrickColor.Random().Color | |
| 2231 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 2232 | c.Material = "Neon" | |
| 2233 | c.Color = C3(r / 255, g / 255, b / 255) | |
| 2234 | end | |
| 2235 | end | |
| 2236 | end | |
| 2237 | end)) | |
| 2238 | ||
| 2239 | Weapon.Parent = Character | |
| 2240 | Karma.Parent = Character | |
| 2241 | if(script["Mode"].Value ~= "Insane")then | |
| 2242 | KarmaGun.Parent = Character | |
| 2243 | KarmaGun2.Parent = nil | |
| 2244 | elseif(script["Mode"].Value == "Insane")then | |
| 2245 | KarmaGun.Parent = nil | |
| 2246 | KarmaGun2.Parent = Character | |
| 2247 | end | |
| 2248 | Humanoid.Died:connect(function() | |
| 2249 | ATTACK = true | |
| 2250 | end) | |
| 2251 | ||
| 2252 | for _, skill in pairs(script.GuiFolder.SkillFrames:GetChildren()) do | |
| 2253 | if skill:IsA("Frame") then
| |
| 2254 | skill.Parent = WEAPONGUI | |
| 2255 | if(script["Mode"].Value ~= "Insane")then | |
| 2256 | if skill.Name == "Skill 9 Frame" then | |
| 2257 | skill:Remove() | |
| 2258 | else | |
| 2259 | for _, label in pairs(skill:GetChildren()) do | |
| 2260 | if label:IsA("TextLabel") then
| |
| 2261 | label.TextColor3 = SKILLTEXTCOLOR | |
| 2262 | end | |
| 2263 | end | |
| 2264 | end | |
| 2265 | end | |
| 2266 | end | |
| 2267 | end | |
| 2268 | ||
| 2269 | for i, v in pairs(WEAPONGUI:GetDescendants()) do | |
| 2270 | if v:IsA("TextLabel") then
| |
| 2271 | if(v.Text:sub(1, 7) ~= "[CLICK]")then | |
| 2272 | table.insert(ATTACKLIST, v.Text:sub(5)) | |
| 2273 | elseif(v.Text:sub(1, 7) == "[CLICK]")then | |
| 2274 | table.insert(ATTACKLIST, v.Text:sub(9)) | |
| 2275 | end | |
| 2276 | end | |
| 2277 | end | |
| 2278 | ||
| 2279 | local fullscreenz = IT("Frame")
| |
| 2280 | fullscreenz.Parent = WEAPONGUI | |
| 2281 | fullscreenz.BackgroundColor3 = C3(255, 255, 255) | |
| 2282 | fullscreenz.BackgroundTransparency = 1 | |
| 2283 | fullscreenz.BorderColor3 = C3(17, 17, 17) | |
| 2284 | fullscreenz.Size = UDim2.new(1, 0, 1, 0) | |
| 2285 | fullscreenz.Position = UDim2.new(0, 0, 0, 0) | |
| 2286 | local imgl2 = IT("ImageLabel",fullscreenz)
| |
| 2287 | imgl2.BackgroundTransparency = 1 | |
| 2288 | imgl2.BorderSizePixel = 0 | |
| 2289 | imgl2.ImageTransparency = 0.5 | |
| 2290 | imgl2.Position = UDim2.new(0.75,-100,0.55,-100) | |
| 2291 | imgl2.Size = UDim2.new(0,800,0,800) | |
| 2292 | imgl2.Image = "rbxassetid://2076458450" | |
| 2293 | local techc = imgl2:Clone() | |
| 2294 | techc.Parent = fullscreenz | |
| 2295 | techc.ImageTransparency = 0 | |
| 2296 | techc.Size = UDim2.new(0,900,0,900) | |
| 2297 | techc.Position = UDim2.new(0.75,-150,0.55,-150) | |
| 2298 | techc.Image = "rbxassetid://2092248396" | |
| 2299 | local circl = imgl2:Clone() | |
| 2300 | circl.Parent = fullscreenz | |
| 2301 | circl.ImageTransparency = 0 | |
| 2302 | circl.Size = UDim2.new(0,550,0,550) | |
| 2303 | circl.Position = UDim2.new(0.75,25,0.55,25) | |
| 2304 | circl.Image = "rbxassetid://2109052855" | |
| 2305 | local circl2 = imgl2:Clone() | |
| 2306 | circl2.Parent = fullscreenz | |
| 2307 | circl2.ImageTransparency = 0 | |
| 2308 | circl2.Size = UDim2.new(0,700,0,700) | |
| 2309 | circl2.Position = UDim2.new(0.75,-50,0.55,-50) | |
| 2310 | circl2.Image = "rbxassetid://2109045978" | |
| 2311 | local imgl2b = imgl2:Clone() | |
| 2312 | imgl2b.Parent = fullscreenz | |
| 2313 | imgl2b.ImageTransparency = 0 | |
| 2314 | imgl2b.Size = UDim2.new(0,600,0,600) | |
| 2315 | imgl2b.Position = UDim2.new(0.75,0,0.55,0) | |
| 2316 | local ned = IT("TextLabel",fullscreenz)
| |
| 2317 | ned.ZIndex = 2 | |
| 2318 | ned.Font = "SciFi" | |
| 2319 | ned.BackgroundTransparency = 1 | |
| 2320 | ned.BorderSizePixel = 0.65 | |
| 2321 | ned.Size = UDim2.new(0.3,0,0.2,0) | |
| 2322 | ned.Position = UDim2.new(0.7,0,0.8,0) | |
| 2323 | ned.TextColor3 = BrickColor.new("Really black").Color
| |
| 2324 | ned.TextStrokeColor3 = BrickColor.new("White").Color
| |
| 2325 | ned.TextScaled = true | |
| 2326 | ned.TextStrokeTransparency = 0 | |
| 2327 | ned.Text = "Karma" | |
| 2328 | ned.TextSize = 24 | |
| 2329 | ned.Rotation = 1 | |
| 2330 | ned.TextXAlignment = "Right" | |
| 2331 | ned.TextYAlignment = "Bottom" | |
| 2332 | ||
| 2333 | local Hearts = {}
| |
| 2334 | local hrt = NewInstance("Part",Effects,{Name='Heart',Anchored=false,CanCollide=false,Material=Enum.Material.Neon,Color=C3(1,0,0),Size=VT(.05,.05,.05),Locked=true,Archivable=false})
| |
| 2335 | local hrtMesh = NewInstance("SpecialMesh",hrt,{MeshId="rbxassetid://105992239",Offset=VT(0,0,0),Scale=VT(3.9,3.9,1)})
| |
| 2336 | local weld = Weld(Torso,hrt,CF(.5,.25,-.65)) | |
| 2337 | table.insert(Hearts,{hrt,hrtMesh})
| |
| 2338 | --//=================================\\ | |
| 2339 | --|| INTRO | |
| 2340 | --\\=================================// | |
| 2341 | ||
| 2342 | local skipBtn = script.GuiFolder.skipButton:Clone() | |
| 2343 | skipBtn.Parent = screenUi | |
| 2344 | skipBtn.MouseButton1Click:Connect(function() | |
| 2345 | if(skipintro == false)then | |
| 2346 | skipintro = true | |
| 2347 | skipBtn.Text = "Skipping Intro.." | |
| 2348 | end | |
| 2349 | end) | |
| 2350 | ||
| 2351 | coroutine.resume(coroutine.create(function() | |
| 2352 | while true do | |
| 2353 | Swait() | |
| 2354 | skipBtn.BackgroundColor3 = BrickColor.Random().Color | |
| 2355 | skipBtn.BorderColor3 = C3(1, 1, 1) | |
| 2356 | skipBtn.TextColor3 = BrickColor.Random().Color | |
| 2357 | skipBtn.TextStrokeColor3 = C3(1, 1, 1) | |
| 2358 | skipBtn.Rotation = 0 - 2 * COS(SINE / 24) | |
| 2359 | end | |
| 2360 | end)) | |
| 2361 | ||
| 2362 | function Intro() | |
| 2363 | ATTACK = true | |
| 2364 | Humanoid.WalkSpeed = 0 | |
| 2365 | if(not skipintro) then | |
| 2366 | if(script["Mode"].Value == "Karma")then | |
| 2367 | warnedpeople("I'm not usually the type to hold a grudge..")
| |
| 2368 | repeat | |
| 2369 | wait() | |
| 2370 | until sick.TimePosition > 120.6 | |
| 2371 | if(not skipintro) then | |
| 2372 | warnedpeople("But..")
| |
| 2373 | repeat | |
| 2374 | wait() | |
| 2375 | until sick.TimePosition > 121.8 | |
| 2376 | end | |
| 2377 | if(not skipintro) then | |
| 2378 | warnedpeople("You've effected me.")
| |
| 2379 | repeat | |
| 2380 | wait() | |
| 2381 | until sick.TimePosition > 124.1 | |
| 2382 | end | |
| 2383 | if(not skipintro) then | |
| 2384 | warnedpeople("And now,")
| |
| 2385 | repeat | |
| 2386 | wait() | |
| 2387 | until sick.TimePosition > 125.2 | |
| 2388 | end | |
| 2389 | if(not skipintro) then | |
| 2390 | warnedpeople("I'm nothing..")
| |
| 2391 | repeat | |
| 2392 | wait() | |
| 2393 | until sick.TimePosition > 127.1 | |
| 2394 | end | |
| 2395 | if(not skipintro) then | |
| 2396 | warnedpeople("But rage.")
| |
| 2397 | repeat | |
| 2398 | wait() | |
| 2399 | until sick.TimePosition > 129.3 | |
| 2400 | end | |
| 2401 | skipBtn:Destroy() | |
| 2402 | sick.TimePosition = 129.4 | |
| 2403 | hasarrived("KARMA")
| |
| 2404 | Humanoid.WalkSpeed = Speed | |
| 2405 | ATTACK = false | |
| 2406 | elseif(script["Mode"].Value == "ByeBye")then | |
| 2407 | if(not skipintro) then | |
| 2408 | warnedpeople("I try to keep my cool but..")
| |
| 2409 | repeat | |
| 2410 | wait() | |
| 2411 | until sick.TimePosition > 5.757 | |
| 2412 | end | |
| 2413 | if(not skipintro) then | |
| 2414 | warnedpeople("My life turns in slow motion..")
| |
| 2415 | repeat | |
| 2416 | wait() | |
| 2417 | until sick.TimePosition > 9.300 | |
| 2418 | end | |
| 2419 | skipBtn:Destroy() | |
| 2420 | sick.TimePosition = 9.300 | |
| 2421 | hasarrived("KARMA")
| |
| 2422 | Humanoid.WalkSpeed = Speed | |
| 2423 | ATTACK = false | |
| 2424 | elseif(script["Mode"].Value == "Insane")then | |
| 2425 | if(not skipintro) then | |
| 2426 | repeat | |
| 2427 | Swait() | |
| 2428 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2429 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2430 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
| 2431 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2432 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
| 2433 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
| 2434 | until sick.TimePosition > 115 | |
| 2435 | end | |
| 2436 | if(not skipintro) then | |
| 2437 | repeat | |
| 2438 | Swait() | |
| 2439 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed/8) | |
| 2440 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2441 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, 0.1 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed/8) | |
| 2442 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed/8) | |
| 2443 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed/8) | |
| 2444 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed/8) | |
| 2445 | until sick.TimePosition > 117 | |
| 2446 | end | |
| 2447 | local HITFLOOR,HITPOS = Raycast(RightArm.CFrame*CF(0,0.2,0).p+VT(0,0.2,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*RootPart.Size.X, Character) | |
| 2448 | if HITFLOOR then | |
| 2449 | for i = 1, 5 do | |
| 2450 | CreateFlyingDebree(HITFLOOR,CF(HITPOS),MRANDOM(1,2),VT(MRANDOM(10,60)/20,MRANDOM(10,60)/20,MRANDOM(10,60)/20),5,MRANDOM(45,85)) | |
| 2451 | end | |
| 2452 | Chunks(RightArm) | |
| 2453 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,2,1), Size2 = VT(15,0,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 765590102, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 4})
| |
| 2454 | end | |
| 2455 | local sp = Instance.new("Part", Hole2)
| |
| 2456 | sp.Anchored = true | |
| 2457 | sp.CanCollide = false | |
| 2458 | sp.Locked = true | |
| 2459 | sp.Transparency = 0 | |
| 2460 | sp.Material = "Neon" | |
| 2461 | sp.Size = Vector3.new(1,1,1) | |
| 2462 | sp.TopSurface = "SmoothNoOutlines" | |
| 2463 | sp.BottomSurface = "SmoothNoOutlines" | |
| 2464 | sp.BrickColor = BrickColor.new("Royal purple")
| |
| 2465 | local spm = Instance.new("SpecialMesh", sp)
| |
| 2466 | spm.MeshType = "Sphere" | |
| 2467 | spm.Scale = Vector3.new(21,21,21) | |
| 2468 | local sp2 = Instance.new("Part", Hole2)
| |
| 2469 | sp2.Name = "Energy" | |
| 2470 | sp2.BrickColor = BrickColor.new("Royal purple")
| |
| 2471 | sp2.Size = Vector3.new(1, 1, 1) | |
| 2472 | sp2.Shape = "Ball" | |
| 2473 | sp2.CanCollide = false | |
| 2474 | sp2.Anchored = true | |
| 2475 | sp2.Locked = true | |
| 2476 | sp2.TopSurface = 0 | |
| 2477 | sp2.BottomSurface = 0 | |
| 2478 | sp2.Transparency = 1 | |
| 2479 | local spm2 = Instance.new("SpecialMesh",sp2)
| |
| 2480 | spm2.MeshId = "rbxassetid://9982590" | |
| 2481 | spm2.Scale = Vector3.new(2,2,2) | |
| 2482 | local X = Instance.new("Part", Character)
| |
| 2483 | X.Locked = true | |
| 2484 | X.Name = "Shell" | |
| 2485 | X.Anchored = false | |
| 2486 | X.CanCollide = false | |
| 2487 | X.Transparency = 0 | |
| 2488 | X.Reflectance = 0 | |
| 2489 | X.BottomSurface = 0 | |
| 2490 | X.TopSurface = 0 | |
| 2491 | X.Shape = 0 | |
| 2492 | X.BrickColor = BrickColor.new("Royal purple")
| |
| 2493 | X.Size = Vector3.new(2, 2, 2) | |
| 2494 | X.Material = "Neon" | |
| 2495 | local Z = Instance.new("SpecialMesh", X)
| |
| 2496 | Z.MeshType = "Sphere" | |
| 2497 | Z.Scale = Vector3.new(0.5,0.5,1) | |
| 2498 | X.CFrame = Hole2.CFrame | |
| 2499 | if(not skipintro) then | |
| 2500 | repeat | |
| 2501 | Swait() | |
| 2502 | spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
| 2503 | sp.CFrame = RootPart.CFrame * CFrame.new(0,1,-2) | |
| 2504 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3) | |
| 2505 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2506 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45 * Player_Size, 0.2 * Player_Size, -0.125 * Player_Size) * ANGLES(RAD(60 + MRANDOM(-5,5)), RAD(0), RAD(25 + MRANDOM(-5,5))) * ANGLES(RAD(0), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed * 5) | |
| 2507 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2508 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 2509 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 2510 | until sick.TimePosition > 119 | |
| 2511 | end | |
| 2512 | for i = 1, 100, 20 do | |
| 2513 | Swait() | |
| 2514 | sp.CFrame = RootPart.CFrame*CFrame.new(0,1,-2) | |
| 2515 | end | |
| 2516 | skipBtn:Destroy() | |
| 2517 | sp:Destroy() | |
| 2518 | sp2:Destroy() | |
| 2519 | X:Destroy() | |
| 2520 | sick.TimePosition = 119.1 | |
| 2521 | hasarrived("KARMA")
| |
| 2522 | Humanoid.WalkSpeed = Speed | |
| 2523 | ATTACK = false | |
| 2524 | end | |
| 2525 | end | |
| 2526 | end | |
| 2527 | ||
| 2528 | coroutine.resume(coroutine.create(function() | |
| 2529 | while true do | |
| 2530 | Swait() | |
| 2531 | SINE = SINE + CHANGE | |
| 2532 | end | |
| 2533 | end)) | |
| 2534 | ||
| 2535 | Intro() | |
| 2536 | ||
| 2537 | --//=================================\\ | |
| 2538 | --|| DAMAGE FUNCTIONS | |
| 2539 | --\\=================================// | |
| 2540 | ||
| 2541 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
| 2542 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, BrickColor.Random(), "Effect", VT()) | |
| 2543 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
| 2544 | local BODYGYRO = IT("BodyGyro", STATPART)
| |
| 2545 | local BODYPOSITION = IT("BodyPosition", STATPART)
| |
| 2546 | BODYPOSITION.P = 2000 | |
| 2547 | BODYPOSITION.D = 100 | |
| 2548 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
| 2549 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
| 2550 | game:GetService("Debris"):AddItem(STATPART ,5)
| |
| 2551 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
| |
| 2552 | BILLBOARDGUI.Adornee = STATPART | |
| 2553 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
| 2554 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
| 2555 | BILLBOARDGUI.AlwaysOnTop = false | |
| 2556 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
| |
| 2557 | TEXTLABEL.BackgroundTransparency = 1 | |
| 2558 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
| 2559 | TEXTLABEL.Text = TEXT | |
| 2560 | TEXTLABEL.Font = "SciFi" | |
| 2561 | TEXTLABEL.FontSize="Size42" | |
| 2562 | TEXTLABEL.TextColor3 = COLOR | |
| 2563 | TEXTLABEL.TextStrokeTransparency = 1 | |
| 2564 | TEXTLABEL.TextScaled = true | |
| 2565 | TEXTLABEL.TextWrapped = true | |
| 2566 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
| 2567 | if LABELTYPE == "Normal" then | |
| 2568 | for i = 1, 30 do | |
| 2569 | Swait() | |
| 2570 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
| 2571 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
| 2572 | end | |
| 2573 | elseif LABELTYPE == "Debuff" then | |
| 2574 | for i = 1, 30 do | |
| 2575 | Swait() | |
| 2576 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
| 2577 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
| 2578 | end | |
| 2579 | elseif LABELTYPE == "Shock" then | |
| 2580 | local ORIGIN = STATPART.Position | |
| 2581 | for i = 1, 30 do | |
| 2582 | Swait() | |
| 2583 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
| 2584 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
| 2585 | end | |
| 2586 | end | |
| 2587 | THEPART.Parent = nil | |
| 2588 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
| 2589 | end | |
| 2590 | ||
| 2591 | --//=================================\\ | |
| 2592 | --|| DAMAGING | |
| 2593 | --\\=================================// | |
| 2594 | ||
| 2595 | function killnearest(position,range,maxstrength,direction) | |
| 2596 | for i,v in ipairs(workspace:GetChildren()) do | |
| 2597 | local body = v:GetChildren() | |
| 2598 | for part = 1, #body do | |
| 2599 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
| 2600 | if(body[part].Position - position).Magnitude < range then | |
| 2601 | if v.ClassName == "Model" then | |
| 2602 | --v:BreakJoints() | |
| 2603 | end | |
| 2604 | local POS = position | |
| 2605 | coroutine.resume(coroutine.create(function() | |
| 2606 | body[part].Anchored = true | |
| 2607 | body[part].Parent = Effects | |
| 2608 | body[part].CanCollide = true | |
| 2609 | local SIZE = body[part].Size | |
| 2610 | body[part].Material = "Neon" | |
| 2611 | CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
| |
| 2612 | for i = 1, 75 do | |
| 2613 | Swait() | |
| 2614 | body[part].Color = C3(255/255, 255/255, 255/255) | |
| 2615 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
| 2616 | end | |
| 2617 | coroutine.resume(coroutine.create(function() | |
| 2618 | while true do | |
| 2619 | Swait() | |
| 2620 | body[part].Color = C3(255/255, 255/255, 255/255) | |
| 2621 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
| 2622 | end | |
| 2623 | end)) | |
| 2624 | body[part].Anchored = false | |
| 2625 | body[part].Velocity = direction.lookVector*maxstrength | |
| 2626 | end)) | |
| 2627 | end | |
| 2628 | end | |
| 2629 | end | |
| 2630 | if v.ClassName == "Part" then | |
| 2631 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
| 2632 | local POS = position | |
| 2633 | coroutine.resume(coroutine.create(function() | |
| 2634 | v.Anchored = true | |
| 2635 | v.Parent = Effects | |
| 2636 | local SIZE = v.Size | |
| 2637 | v.Material = "Neon" | |
| 2638 | CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
| |
| 2639 | for i = 1, 75 do | |
| 2640 | Swait() | |
| 2641 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
| 2642 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
| 2643 | end | |
| 2644 | coroutine.resume(coroutine.create(function() | |
| 2645 | while true do | |
| 2646 | Swait() | |
| 2647 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
| 2648 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
| 2649 | end | |
| 2650 | end)) | |
| 2651 | v.Anchored = false | |
| 2652 | v.Velocity = direction.lookVector*maxstrength | |
| 2653 | end)) | |
| 2654 | end | |
| 2655 | end | |
| 2656 | end | |
| 2657 | end | |
| 2658 | ||
| 2659 | function Banish(Foe) | |
| 2660 | if Foe then | |
| 2661 | coroutine.resume(coroutine.create(function() | |
| 2662 | --if game.Players:FindFirstChild(Foe.Name) then | |
| 2663 | table.insert(TOBANISH,Foe.Name) | |
| 2664 | printbye(Foe.Name) | |
| 2665 | --end | |
| 2666 | Foe.Archivable = true | |
| 2667 | local CLONE = Foe:Clone() | |
| 2668 | Foe:Destroy() | |
| 2669 | CLONE.Parent = Effects | |
| 2670 | CLONE:BreakJoints() | |
| 2671 | local MATERIALS = {"Glass","Neon"}
| |
| 2672 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 2673 | if c:IsA("BasePart") then
| |
| 2674 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
| 2675 | CreateSound(340722848, c, 10, 1, false) | |
| 2676 | end | |
| 2677 | c.Anchored = true | |
| 2678 | c.Transparency = c.Transparency + 0.2 | |
| 2679 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 2680 | c.Color = C3(1,0,0) | |
| 2681 | if c.ClassName == "MeshPart" then | |
| 2682 | c.TextureID = "" | |
| 2683 | end | |
| 2684 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 2685 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 2686 | end | |
| 2687 | if c:FindFirstChildOfClass("Decal") then
| |
| 2688 | c:FindFirstChildOfClass("Decal"):remove()
| |
| 2689 | end | |
| 2690 | c.Name = "Banished" | |
| 2691 | c.CanCollide = false | |
| 2692 | else | |
| 2693 | c:remove() | |
| 2694 | end | |
| 2695 | end | |
| 2696 | local A = false | |
| 2697 | for i = 1, 35 do | |
| 2698 | if A == false then | |
| 2699 | A = true | |
| 2700 | elseif A == true then | |
| 2701 | A = false | |
| 2702 | end | |
| 2703 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 2704 | if c:IsA("BasePart") then
| |
| 2705 | c.Anchored = true | |
| 2706 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 2707 | c.Transparency = c.Transparency + 0.8/35 | |
| 2708 | if A == false then | |
| 2709 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 2710 | elseif A == true then | |
| 2711 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 2712 | end | |
| 2713 | end | |
| 2714 | end | |
| 2715 | Swait() | |
| 2716 | end | |
| 2717 | CLONE:remove() | |
| 2718 | end)) | |
| 2719 | end | |
| 2720 | end | |
| 2721 | ||
| 2722 | function BANISHAOE(POSITION,RANGE,ISBANISH) | |
| 2723 | local CHILDREN = workspace:GetDescendants() | |
| 2724 | for index, CHILD in pairs(CHILDREN) do | |
| 2725 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 2726 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2727 | if HUM then | |
| 2728 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2729 | if TORSO then | |
| 2730 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 2731 | if ISBANISH == true then | |
| 2732 | Banish(CHILD) | |
| 2733 | else | |
| 2734 | if ISBANISH == "Gravity" then | |
| 2735 | HUM.PlatformStand = true | |
| 2736 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 2737 | local grav = Instance.new("BodyPosition",TORSO)
| |
| 2738 | grav.D = 15 | |
| 2739 | grav.P = 20000 | |
| 2740 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 2741 | grav.position = TORSO.Position | |
| 2742 | grav.Name = "V3BanishForce"..Player.Name | |
| 2743 | else | |
| 2744 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
| |
| 2745 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
| 2746 | end | |
| 2747 | else | |
| 2748 | HUM.PlatformStand = false | |
| 2749 | end | |
| 2750 | end | |
| 2751 | elseif ISBANISH == "Gravity" then | |
| 2752 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 2753 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
| |
| 2754 | HUM.PlatformStand = false | |
| 2755 | end | |
| 2756 | end | |
| 2757 | end | |
| 2758 | end | |
| 2759 | end | |
| 2760 | end | |
| 2761 | end | |
| 2762 | ||
| 2763 | local DAMAGEMULTIPLIER = 1 | |
| 2764 | function ManualDamage(Humanoid,Damage,TorsoPart) | |
| 2765 | local defence = Instance.new("BoolValue",Humanoid.Parent)
| |
| 2766 | defence.Name = ("HitBy"..Player.Name)
| |
| 2767 | game:GetService("Debris"):AddItem(defence, 0.001)
| |
| 2768 | Damage = Damage * DAMAGEMULTIPLIER | |
| 2769 | if Humanoid.Health ~= 0 then | |
| 2770 | local CritChance = MRANDOM(1,100) | |
| 2771 | if Damage > Humanoid.Health then | |
| 2772 | Damage = math.ceil(Humanoid.Health) | |
| 2773 | if Damage == 0 then | |
| 2774 | Damage = 0.1 | |
| 2775 | end | |
| 2776 | end | |
| 2777 | Humanoid.Health = Humanoid.Health - Damage | |
| 2778 | end | |
| 2779 | end | |
| 2780 | ||
| 2781 | function ManualAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
| 2782 | local CHILDREN = workspace:GetDescendants() | |
| 2783 | for index, CHILD in pairs(CHILDREN) do | |
| 2784 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 2785 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2786 | if HUM then | |
| 2787 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2788 | if TORSO then | |
| 2789 | if (TORSO.Position - POSITION).Magnitude < RANGE then | |
| 2790 | if INSTAKILL == true then | |
| 2791 | CHILD:BreakJoints() | |
| 2792 | else | |
| 2793 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
| 2794 | ManualDamage(HUM,DMG,TORSO) | |
| 2795 | end | |
| 2796 | if FLING > 0 then | |
| 2797 | for _, c in pairs(CHILD:GetChildren()) do | |
| 2798 | if c:IsA("BasePart") then
| |
| 2799 | local bv = Instance.new("BodyVelocity")
| |
| 2800 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 2801 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
| 2802 | bv.Parent = c | |
| 2803 | Debris:AddItem(bv,0.05) | |
| 2804 | end | |
| 2805 | end | |
| 2806 | end | |
| 2807 | end | |
| 2808 | end | |
| 2809 | end | |
| 2810 | end | |
| 2811 | end | |
| 2812 | end | |
| 2813 | ||
| 2814 | function dmg(dude) | |
| 2815 | if dude.Name ~= Character then | |
| 2816 | local keptcolor = MAINRUINCOLOR | |
| 2817 | local bgf = Instance.new("BodyGyro",dude.Head)
| |
| 2818 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(RAD(-90),0,0) | |
| 2819 | --[[local val = Instance.new("BoolValue",dude)
| |
| 2820 | val.Name = "IsHit"]]-- | |
| 2821 | local ds = coroutine.wrap(function() | |
| 2822 | dude:WaitForChild("Head"):BreakJoints()
| |
| 2823 | for i, v in pairs(dude:GetChildren()) do | |
| 2824 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 2825 | v.Name = "DEMINISHED" | |
| 2826 | end | |
| 2827 | end | |
| 2828 | wait(0.5) | |
| 2829 | CFuncs["Sound"].Create("rbxassetid://62339698", Effects, 0.75, 0.285)
| |
| 2830 | coroutine.resume(coroutine.create(function() | |
| 2831 | for i, v in pairs(dude:GetChildren()) do | |
| 2832 | if v:IsA("Accessory") then
| |
| 2833 | v:Destroy() | |
| 2834 | end | |
| 2835 | if v:IsA("Humanoid") then
| |
| 2836 | v:Destroy() | |
| 2837 | end | |
| 2838 | if v:IsA("CharacterMesh") then
| |
| 2839 | v:Destroy() | |
| 2840 | end | |
| 2841 | if v:IsA("Model") then
| |
| 2842 | v:Destroy() | |
| 2843 | end | |
| 2844 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 2845 | for x, o in pairs(v:GetChildren()) do | |
| 2846 | if o:IsA("Decal") then
| |
| 2847 | o:Destroy() | |
| 2848 | end | |
| 2849 | end | |
| 2850 | coroutine.resume(coroutine.create(function() | |
| 2851 | v.Material = "Neon" | |
| 2852 | v.CanCollide = false | |
| 2853 | v.Anchored = false | |
| 2854 | local bld = Instance.new("ParticleEmitter",v)
| |
| 2855 | bld.LightEmission = 0.75 | |
| 2856 | bld.Texture = "rbxassetid://363275192" ---284205403 | |
| 2857 | bld.Color = ColorSequence.new(keptcolor.Color) | |
| 2858 | bld.Rate = 500 | |
| 2859 | bld.Lifetime = NumberRange.new(1) | |
| 2860 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2861 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 2862 | bld.Speed = NumberRange.new(2,5) | |
| 2863 | bld.VelocitySpread = 50000 | |
| 2864 | bld.Rotation = NumberRange.new(-500,500) | |
| 2865 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 2866 | local sbs = Instance.new("BodyPosition", v)
| |
| 2867 | sbs.P = 3000 | |
| 2868 | sbs.D = 1000 | |
| 2869 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 2870 | sbs.position = v.Position + Vector3.new(MRANDOM(-2,2),10 + MRANDOM(-2,2),MRANDOM(-2,2)) | |
| 2871 | v.Color = keptcolor.Color | |
| 2872 | coroutine.resume(coroutine.create(function() | |
| 2873 | for i = 0, 49 do | |
| 2874 | Swait(1) | |
| 2875 | v:BreakJoints() | |
| 2876 | v.Transparency = v.Transparency + 0.02 | |
| 2877 | end | |
| 2878 | v:BreakJoints() | |
| 2879 | sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor) | |
| 2880 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
| |
| 2881 | bld.Speed = NumberRange.new(10,25) | |
| 2882 | bld.Drag = 5 | |
| 2883 | bld.Acceleration = vt(0,2,0) | |
| 2884 | wait(0.5) | |
| 2885 | bld.Enabled = false | |
| 2886 | wait(8) | |
| 2887 | v:Destroy() | |
| 2888 | dude:Destroy() | |
| 2889 | end)) | |
| 2890 | end)) | |
| 2891 | end | |
| 2892 | end | |
| 2893 | end)) | |
| 2894 | end) | |
| 2895 | ds() | |
| 2896 | end | |
| 2897 | end | |
| 2898 | ||
| 2899 | function ShowDamage(Pos, Text, Time, Color) | |
| 2900 | local Rate = 0.03333333333333333 | |
| 2901 | local Pos = Pos or Vector3.new(0, 0, 0) | |
| 2902 | local Text = Text or "" | |
| 2903 | local Time = Time or 2 | |
| 2904 | local Color = Color or C3(1, 0, 1) | |
| 2905 | local EffectPart = CreatePartb(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 2906 | EffectPart.Anchored = true | |
| 2907 | local BillboardGui = Create("BillboardGui")({
| |
| 2908 | Size = UDim2.new(3, 0, 3, 0), | |
| 2909 | Adornee = EffectPart, | |
| 2910 | Parent = EffectPart | |
| 2911 | }) | |
| 2912 | local TextLabel = Create("TextLabel")({
| |
| 2913 | BackgroundTransparency = 1, | |
| 2914 | Size = UDim2.new(1, 0, 1, 0), | |
| 2915 | Text = Text, | |
| 2916 | TextColor3 = Color, | |
| 2917 | TextScaled = true, | |
| 2918 | Font = Enum.Font.ArialBold, | |
| 2919 | Parent = BillboardGui | |
| 2920 | }) | |
| 2921 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 2922 | EffectPart.Parent = game:GetService("Workspace")
| |
| 2923 | delay(0, function() | |
| 2924 | local Frames = Time / Rate | |
| 2925 | for Frame = 1, Frames do | |
| 2926 | wait(Rate) | |
| 2927 | local Percent = Frame / Frames | |
| 2928 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 2929 | TextLabel.TextTransparency = Percent | |
| 2930 | end | |
| 2931 | if EffectPart and EffectPart.Parent then | |
| 2932 | EffectPart:Destroy() | |
| 2933 | end | |
| 2934 | end) | |
| 2935 | end | |
| 2936 | ||
| 2937 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 2938 | if hit.Parent == nil then | |
| 2939 | return | |
| 2940 | end | |
| 2941 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2942 | for _, v in pairs(hit.Parent:children()) do | |
| 2943 | if v:IsA("Humanoid") then
| |
| 2944 | h = v | |
| 2945 | end | |
| 2946 | end | |
| 2947 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
| |
| 2948 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 2949 | return | |
| 2950 | end | |
| 2951 | local c = Create("ObjectValue")({
| |
| 2952 | Name = "creator", | |
| 2953 | Value = script.Parent.Parent.Parent:FindFirstChild(script.Parent.Parent.Name), | |
| 2954 | Parent = h | |
| 2955 | }) | |
| 2956 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 2957 | if HitSound ~= nil and HitPitch ~= nil then | |
| 2958 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 2959 | end | |
| 2960 | local Damage = MRANDOM(minim, maxim) | |
| 2961 | local blocked = false | |
| 2962 | local block = hit.Parent:findFirstChild("Block")
| |
| 2963 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 2964 | blocked = true | |
| 2965 | block.Value = block.Value - 1 | |
| 2966 | print(block.Value) | |
| 2967 | end | |
| 2968 | h.Health = h.Health - Damage / 2 | |
| 2969 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 2970 | if Type == "Knockdown" then | |
| 2971 | local hum = hit.Parent.Humanoid | |
| 2972 | hum.PlatformStand = true | |
| 2973 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 2974 | Swait(1) | |
| 2975 | HHumanoid.PlatformStand = false | |
| 2976 | end), hum) | |
| 2977 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 2978 | local bodvol = Create("BodyVelocity")({
| |
| 2979 | velocity = angle * knockback, | |
| 2980 | P = 5000, | |
| 2981 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 2982 | Parent = hit | |
| 2983 | }) | |
| 2984 | local rl = Create("BodyAngularVelocity")({
| |
| 2985 | P = 3000, | |
| 2986 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 2987 | angularvelocity = Vector3.new(MRANDOM(-10, 10), MRANDOM(-10, 10), MRANDOM(-10, 10)), | |
| 2988 | Parent = hit | |
| 2989 | }) | |
| 2990 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 2991 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 2992 | elseif Type == "Normal" then | |
| 2993 | local vp = Create("BodyVelocity")({
| |
| 2994 | P = 500, | |
| 2995 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 2996 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 2997 | }) | |
| 2998 | if knockback > 0 then | |
| 2999 | vp.Parent = hit.Parent.Head | |
| 3000 | end | |
| 3001 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 3002 | elseif Type == "Up" then | |
| 3003 | local bodyVelocity = Create("BodyVelocity")({
| |
| 3004 | velocity = Vector3.new(0, 20, 0), | |
| 3005 | P = 5000, | |
| 3006 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 3007 | Parent = hit | |
| 3008 | }) | |
| 3009 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 3010 | local bodyVelocity = Create("BodyVelocity")({
| |
| 3011 | velocity = Vector3.new(0, 20, 0), | |
| 3012 | P = 5000, | |
| 3013 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 3014 | Parent = hit | |
| 3015 | }) | |
| 3016 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 3017 | elseif Type == "UpKnock" then | |
| 3018 | local hum = hit.Parent.Humanoid | |
| 3019 | hum.PlatformStand = true | |
| 3020 | if hum ~= nil then | |
| 3021 | hitr = true | |
| 3022 | end | |
| 3023 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 3024 | Swait(5) | |
| 3025 | HHumanoid.PlatformStand = false | |
| 3026 | hitr = false | |
| 3027 | end), hum) | |
| 3028 | local bodyVelocity = Create("BodyVelocity")({
| |
| 3029 | velocity = Vector3.new(0, 20, 0), | |
| 3030 | P = 5000, | |
| 3031 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 3032 | Parent = hit | |
| 3033 | }) | |
| 3034 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 3035 | local bodyVelocity = Create("BodyVelocity")({
| |
| 3036 | velocity = Vector3.new(0, 20, 0), | |
| 3037 | P = 5000, | |
| 3038 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 3039 | Parent = hit | |
| 3040 | }) | |
| 3041 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 3042 | elseif Type == "Snare" then | |
| 3043 | local bp = Create("BodyPosition")({
| |
| 3044 | P = 2000, | |
| 3045 | D = 100, | |
| 3046 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 3047 | position = hit.Parent.Torso.Position, | |
| 3048 | Parent = hit.Parent.Torso | |
| 3049 | }) | |
| 3050 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 3051 | elseif Type == "Freeze" then | |
| 3052 | local BodPos = Create("BodyPosition")({
| |
| 3053 | P = 50000, | |
| 3054 | D = 1000, | |
| 3055 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 3056 | position = hit.Parent.Torso.Position, | |
| 3057 | Parent = hit.Parent.Torso | |
| 3058 | }) | |
| 3059 | local BodGy = Create("BodyGyro")({
| |
| 3060 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
| 3061 | P = 20000, | |
| 3062 | Parent = hit.Parent.Torso, | |
| 3063 | cframe = hit.Parent.Torso.CFrame | |
| 3064 | }) | |
| 3065 | hit.Parent.Torso.Anchored = true | |
| 3066 | coroutine.resume(coroutine.create(function(Part) | |
| 3067 | Swait(1.5) | |
| 3068 | Part.Anchored = false | |
| 3069 | end), hit.Parent.Torso) | |
| 3070 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 3071 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 3072 | end | |
| 3073 | local debounce = Create("BoolValue")({
| |
| 3074 | Name = "DebounceHit", | |
| 3075 | Parent = hit.Parent, | |
| 3076 | Value = true | |
| 3077 | }) | |
| 3078 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 3079 | c = Instance.new("ObjectValue")
| |
| 3080 | c.Name = "creator" | |
| 3081 | c.Value = Player | |
| 3082 | c.Parent = h | |
| 3083 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 3084 | end | |
| 3085 | end | |
| 3086 | ||
| 3087 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 3088 | for _, c in pairs(workspace:children()) do | |
| 3089 | local hum = c:findFirstChildOfClass("Humanoid")
| |
| 3090 | if hum ~= nil then | |
| 3091 | local head = c:findFirstChild("Head")
| |
| 3092 | if head ~= nil then | |
| 3093 | local targ = head.Position - Part.Position | |
| 3094 | local mag = targ.magnitude | |
| 3095 | if magni >= mag and c.Name ~= Player.Name then | |
| 3096 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 3097 | end | |
| 3098 | end | |
| 3099 | end | |
| 3100 | end | |
| 3101 | end | |
| 3102 | ||
| 3103 | workspace.ChildAdded:connect(function(instance) | |
| 3104 | for BANISH = 1, #TOBANISH do | |
| 3105 | if TOBANISH[BANISH] ~= nil then | |
| 3106 | if instance.Name == TOBANISH[BANISH] then | |
| 3107 | coroutine.resume(coroutine.create(function() | |
| 3108 | printbye(instance.Name) | |
| 3109 | instance:ClearAllChildren() | |
| 3110 | Debris:AddItem(instance,0.0005) | |
| 3111 | end)) | |
| 3112 | end | |
| 3113 | end | |
| 3114 | end | |
| 3115 | end) | |
| 3116 | ||
| 3117 | --//=================================\\ | |
| 3118 | --|| ATTACK FUNCTIONS AND STUFF | |
| 3119 | --\\=================================// | |
| 3120 | ||
| 3121 | function AttackTemplate() | |
| 3122 | ATTACK = true | |
| 3123 | Rooted = false | |
| 3124 | for i=0, 1, 0.1 / Animation_Speed do | |
| 3125 | Swait() | |
| 3126 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
| 3127 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
| 3128 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
| 3129 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
| 3130 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3131 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3132 | end | |
| 3133 | ATTACK = false | |
| 3134 | Rooted = false | |
| 3135 | end | |
| 3136 | ||
| 3137 | function ByeBye() | |
| 3138 | turnto(Mouse.Hit.p) | |
| 3139 | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, BrickColor.Random(), "Punch", VT(50,50,50),false) | |
| 3140 | PART.CFrame = RootPart.CFrame * CF(0,0,-25) | |
| 3141 | PART.Shape = "Ball" | |
| 3142 | local bv = Instance.new("BodyVelocity")
| |
| 3143 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3144 | bv.velocity = RootPart.CFrame.lookVector*600 | |
| 3145 | bv.Parent = PART | |
| 3146 | bv.Name = "PROJECTILEVELOCITY" | |
| 3147 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,BrickColor.Random(),VT(2.5,0.2,2.5)) | |
| 3148 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,BrickColor.Random(),VT(3,0.2,3)) | |
| 3149 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,BrickColor.Random(),VT(2,0.6,2)) | |
| 3150 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,BrickColor.Random(),VT(2.2,0.6,2.2)) | |
| 3151 | CFuncs["Sound"].Create("rbxassetid://438666141", Character, 3,1)
| |
| 3152 | CFuncs["Sound"].Create("rbxassetid://1208650519", Character, 4, 1)
| |
| 3153 | coroutine.resume(coroutine.create(function() | |
| 3154 | for i = 1, 10 do | |
| 3155 | Swait() | |
| 3156 | PART.Transparency = PART.Transparency + 0.2/10 | |
| 3157 | PART.Size = PART.Size + VT(5,5,5) | |
| 3158 | killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
| 3159 | end | |
| 3160 | PART:Destroy() | |
| 3161 | end)) | |
| 3162 | for i=0, 1, 0.1 / Animation_Speed do | |
| 3163 | Swait() | |
| 3164 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
| 3165 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
| 3166 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 3167 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 3168 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 3169 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 3170 | end | |
| 3171 | end | |
| 3172 | ||
| 3173 | function HisGrasp() | |
| 3174 | ATTACK = true | |
| 3175 | Rooted = false | |
| 3176 | local HASGRABBED = false | |
| 3177 | local WELD = nil | |
| 3178 | local TORS = nil | |
| 3179 | local hitting = RightArm.Touched:connect(function(hit) | |
| 3180 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 3181 | if hit.Parent.Humanoid.Health ~= 0 then | |
| 3182 | UNANCHOR = false | |
| 3183 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 3184 | TORS.Anchored = true | |
| 3185 | TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
| 3186 | WELD = weldBetween(RightArm,TORS) | |
| 3187 | HASGRABBED = true | |
| 3188 | Rooted = true | |
| 3189 | end | |
| 3190 | end | |
| 3191 | end) | |
| 3192 | for i=0, 1, 0.1 / Animation_Speed do | |
| 3193 | Swait() | |
| 3194 | if HASGRABBED == true then | |
| 3195 | break | |
| 3196 | end | |
| 3197 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed) | |
| 3198 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
| 3199 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 3200 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 3201 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3202 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3203 | end | |
| 3204 | hitting:disconnect() | |
| 3205 | if HASGRABBED == true then | |
| 3206 | TORS.Anchored = false | |
| 3207 | RootPart.Anchored = true | |
| 3208 | for i=0, 2, 0.1 / Animation_Speed do | |
| 3209 | Swait() | |
| 3210 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 3211 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 3212 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 3213 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 3214 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 3215 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 3216 | end | |
| 3217 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5)) | |
| 3218 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6)) | |
| 3219 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) | |
| 3220 | SOUNDPART.CFrame = RootPart.CFrame | |
| 3221 | Debris:AddItem(SOUNDPART,5) | |
| 3222 | CreateSound("1295446488", SOUNDPART, 2, 1)
| |
| 3223 | warnedpeople("UP WE GO!")
| |
| 3224 | for i = 1, 15 do | |
| 3225 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15) | |
| 3226 | end | |
| 3227 | for i=0, 2, 0.1 / Animation_Speed do | |
| 3228 | Swait() | |
| 3229 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3230 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 3231 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 3232 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 3233 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 3234 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 3235 | end | |
| 3236 | for i=0, 0.25, 0.1 / Animation_Speed do | |
| 3237 | Swait() | |
| 3238 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 3239 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 3240 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 3241 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 3242 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3243 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3244 | end | |
| 3245 | if HITFLOOR ~= nil then | |
| 3246 | CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85) | |
| 3247 | end | |
| 3248 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
| |
| 3249 | WELD:remove() | |
| 3250 | warnedpeople("DOWN GOES YOUR HEARTRATE!")
| |
| 3251 | for i = 1, 25 do | |
| 3252 | Swait() | |
| 3253 | killnearest(RootPart.Position,45,100,Torso.CFrame) | |
| 3254 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3)) | |
| 3255 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,BrickColor.Random(),VT(1,0.4,1)) | |
| 3256 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,BrickColor.Random(),VT(2.3,0.3,2.3)) | |
| 3257 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5) | |
| 3258 | Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),BrickColor.Random(), 1 + MRANDOM(1,30)/15) | |
| 3259 | end | |
| 3260 | end | |
| 3261 | UNANCHOR = true | |
| 3262 | ATTACK = false | |
| 3263 | Rooted = false | |
| 3264 | end | |
| 3265 | ||
| 3266 | function Rush() | |
| 3267 | local ORIGIN = RootPart.Position | |
| 3268 | CreateWave2(VT(1,1,1),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,1,0.2)) | |
| 3269 | CreateWave2(VT(1,1,1),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,1,0.2)) | |
| 3270 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) | |
| 3271 | SOUNDPART.CFrame = RootPart.CFrame | |
| 3272 | Debris:AddItem(SOUNDPART,5) | |
| 3273 | CreateSound("1295446488", SOUNDPART, 2, 1)
| |
| 3274 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z)) | |
| 3275 | Swait() | |
| 3276 | CreateWave2(VT(1,1,1),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,1,0.2)) | |
| 3277 | CreateWave2(VT(1,1,1),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,1,0.2)) | |
| 3278 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) | |
| 3279 | SOUNDPART.CFrame = RootPart.CFrame | |
| 3280 | Debris:AddItem(SOUNDPART,5) | |
| 3281 | CreateSound("1295446488", SOUNDPART, 2, 1)
| |
| 3282 | if MRANDOM(1,8) == 1 then | |
| 3283 | ATTACK = true | |
| 3284 | Rooted = true | |
| 3285 | local FRUITSTABLE = {
| |
| 3286 | {MeshId = "16190555", TextureId = "16190577", Color = BrickColor.Random()},
| |
| 3287 | {MeshId = "119574562", TextureId = "64374853", Color = BrickColor.Random()},
| |
| 3288 | {MeshId = "24394186", TextureId = "24394178", Color = BrickColor.Random()}
| |
| 3289 | } | |
| 3290 | local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)] | |
| 3291 | local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false) | |
| 3292 | CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
| |
| 3293 | FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0) | |
| 3294 | weldBetween(RightArm,FRUITMODEL) | |
| 3295 | for i=0, 4, 0.1 / Animation_Speed do | |
| 3296 | Swait() | |
| 3297 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3298 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3299 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 3300 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 3301 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3302 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3303 | end | |
| 3304 | CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
| |
| 3305 | FRUITMODEL:remove() | |
| 3306 | for i = 1, 15 do | |
| 3307 | Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15) | |
| 3308 | end | |
| 3309 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 3310 | Swait() | |
| 3311 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3312 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3313 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 3314 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 3315 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3316 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3317 | end | |
| 3318 | ATTACK = false | |
| 3319 | Rooted = false | |
| 3320 | end | |
| 3321 | end | |
| 3322 | ||
| 3323 | function OtherSideOfParadise() | |
| 3324 | ATTACK = true | |
| 3325 | Rooted = true | |
| 3326 | turnto(Mouse.Hit.p) | |
| 3327 | warnedpeople("THIS IS..")
| |
| 3328 | CFuncs["EchoSound"].Create("rbxassetid://1548599511", Character, 4.5, 1,0,10,0.15,0.5,1)
| |
| 3329 | CFuncs["EchoSound"].Create("rbxassetid://1548599511", RootPart, 30, 1,0,10,0.15,0.5,1)
| |
| 3330 | CFuncs["Sound"].Create("rbxassetid://1208650519", Character, 4, 1)
| |
| 3331 | MagicSphere(VT(8,8,8),150,RootPart.CFrame * CF(0,0,-6),BrickColor.Random(),VT(-0.04,-0.04,-0.04)) | |
| 3332 | MagicSphere(VT(7.5,7.5,7.5),150,RootPart.CFrame * CF(0,0,-6),BrickColor.Random(),VT(-0.035,-0.035,-0.035)) | |
| 3333 | coroutine.resume(coroutine.create(function() | |
| 3334 | for i = 0, 15, 0.1 do | |
| 3335 | Swait() | |
| 3336 | end | |
| 3337 | for i = 1, 5 do | |
| 3338 | MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),BrickColor.Random(),VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i)))) | |
| 3339 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,BrickColor.Random(),VT(4.5*i,0.2,4.5*i)) | |
| 3340 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,BrickColor.Random(),VT(5*i,0.2,5*i)) | |
| 3341 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,BrickColor.Random(),VT(4*i,0.6,4*i)) | |
| 3342 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,BrickColor.Random(),VT(5.2*i,0.6,5.2*i)) | |
| 3343 | end | |
| 3344 | CFuncs["Sound"].Create("rbxassetid://438666141", Character, 3,1)
| |
| 3345 | CFuncs["Sound"].Create("rbxassetid://1208650519", Character, 4, 1)
| |
| 3346 | warnedpeople("THE END!")
| |
| 3347 | CFuncs["EchoSound"].Create("rbxassetid://1548599962", Character, 8, 1,0,10,0.15,0.5,1)
| |
| 3348 | CFuncs["EchoSound"].Create("rbxassetid://1548599962", RootPart, 40, 1,0,10,0.15,0.5,1)
| |
| 3349 | killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame) | |
| 3350 | coroutine.resume(coroutine.create(function() | |
| 3351 | for i = 1, 50 do | |
| 3352 | Swait() | |
| 3353 | for i = 1, 1 do | |
| 3354 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5) | |
| 3355 | end | |
| 3356 | for i = 1, 2 do | |
| 3357 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),BrickColor.Random(), 1 + MRANDOM(1,30)/3) | |
| 3358 | end | |
| 3359 | end | |
| 3360 | end)) | |
| 3361 | end)) | |
| 3362 | for i = 0, 18, 0.1 do | |
| 3363 | Swait() | |
| 3364 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
| 3365 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
| 3366 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 3367 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 3368 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 3369 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 3370 | end | |
| 3371 | ATTACK = false | |
| 3372 | Rooted = false | |
| 3373 | end | |
| 3374 | ||
| 3375 | function ShatteredHeart() | |
| 3376 | local function poof() | |
| 3377 | for i = 0, 99 do | |
| 3378 | local dis = CreateParta(Character,1,1,"Neon",MAINRUINCOLOR) | |
| 3379 | dis.CFrame = RootPart.CFrame*CFrame.new(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))*CFrame.Angles(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
| 3380 | local at1 = Instance.new("Attachment",dis)
| |
| 3381 | at1.Position = vt(-25000,0,0) | |
| 3382 | local at2 = Instance.new("Attachment",dis)
| |
| 3383 | at2.Position = vt(25000,0,0) | |
| 3384 | local trl = Instance.new('Trail',dis)
| |
| 3385 | trl.Attachment0 = at1 | |
| 3386 | trl.FaceCamera = true | |
| 3387 | trl.Attachment1 = at2 | |
| 3388 | trl.Texture = "rbxassetid://1049219073" | |
| 3389 | trl.LightEmission = 1 | |
| 3390 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 3391 | trl.Color = ColorSequence.new(BrickColor.random().Color) | |
| 3392 | trl.Lifetime = 5 | |
| 3393 | local bv = Instance.new("BodyVelocity")
| |
| 3394 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3395 | bv.velocity = dis.CFrame.lookVector*MRANDOM(500,2500) | |
| 3396 | bv.Parent = dis | |
| 3397 | game:GetService("Debris"):AddItem(dis, 5)
| |
| 3398 | end | |
| 3399 | symbolizeBlink(RootPart,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,RootPart,false,0,1) | |
| 3400 | symbolizeBlink(RootPart,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,RootPart,false,0,1.5) | |
| 3401 | symbolizeBlink(RootPart,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,RootPart,false,0,3) | |
| 3402 | sphere2(2,"Add",RootPart.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color) | |
| 3403 | sphere2(2,"Add",RootPart.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color) | |
| 3404 | sphere2(2,"Add",RootPart.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color) | |
| 3405 | sphere2(2,"Add",RootPart.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color) | |
| 3406 | CFuncs["Sound"].Create("rbxassetid://1841058541", RootPart, 10,1)
| |
| 3407 | CFuncs["Sound"].Create("rbxassetid://2095993595", Character, 5,0.8)
| |
| 3408 | CFuncs["Sound"].Create("rbxassetid://1841058541", Character, 5,1)
| |
| 3409 | Humanoid.CameraOffset = vt(0,0,0) | |
| 3410 | for i = 0, 24 do | |
| 3411 | slash(MRANDOM(10,30)/10,5,true,"Round","Add","Out",RootPart.CFrame*CFrame.Angles(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),vt(0.01,0.01,0.01),MRANDOM(500,1500)/250,BrickColor.random()) | |
| 3412 | end | |
| 3413 | killnearest(RootPart.Position,9999,99999,Torso.CFrame) | |
| 3414 | CamShakeAll(30, 99999, RootPart.Position) | |
| 3415 | end | |
| 3416 | ATTACK = true | |
| 3417 | Rooted = true | |
| 3418 | CFuncs["Sound"].Create("rbxassetid://1368598393", Effects, 2.5, 0.5)
| |
| 3419 | CFuncs["Sound"].Create("rbxassetid://1368598393", RootPart, 10, 0.5)
| |
| 3420 | CFuncs["EchoSound"].Create("rbxassetid://1718412034", Effects, 4, 1,0,10,0.15,0.5,1)
| |
| 3421 | local keptcolor = MAINRUINCOLOR | |
| 3422 | warnedpeople("SHATTER!")
| |
| 3423 | FocusCamAll(8, Head, true) | |
| 3424 | for i = 0,8,0.1 do | |
| 3425 | Swait() | |
| 3426 | Humanoid.CameraOffset = vt(MRANDOM(-10,10)/100,MRANDOM(-10,10)/100,MRANDOM(-10,10)/100) | |
| 3427 | slash(MRANDOM(25,50)/10,5,true,"Round","Add","Out",RootPart.CFrame*CFrame.new(0,25,0)*CFrame.Angles(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),vt(2,0.01,2),-2,BrickColor.random()) | |
| 3428 | block(10,"Add",RootPart.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color) | |
| 3429 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3430 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3431 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3432 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3433 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3434 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3435 | end | |
| 3436 | poof() | |
| 3437 | local distam = 0 | |
| 3438 | coroutine.resume(coroutine.create(function() | |
| 3439 | for i = 0, 99 do | |
| 3440 | wait() | |
| 3441 | distam = distam + 1 | |
| 3442 | local xa = CreateParta(Character,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3443 | xa.Anchored = true | |
| 3444 | xa.CFrame = RootPart.CFrame*CFrame.new(MRANDOM(-distam,distam),MRANDOM(-distam,distam),MRANDOM(-distam,distam))*CFrame.Angles(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
| 3445 | game:GetService("Debris"):AddItem(xa, 5)
| |
| 3446 | for i = 0, 4 do | |
| 3447 | slash(MRANDOM(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),vt(0.01,0.01,0.01),MRANDOM(200,500)/250,BrickColor.random()) | |
| 3448 | end | |
| 3449 | coroutine.resume(coroutine.create(function() | |
| 3450 | local eff = Instance.new("ParticleEmitter",xa)
| |
| 3451 | eff.Texture = "rbxassetid://2344870656" | |
| 3452 | eff.LightEmission = 1 | |
| 3453 | eff.Color = ColorSequence.new(xa.Color) | |
| 3454 | eff.Rate = 10000000 | |
| 3455 | eff.Enabled = true | |
| 3456 | eff.Lifetime = NumberRange.new(2.5) | |
| 3457 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,75,0),NumberSequenceKeypoint.new(0.1,20,0),NumberSequenceKeypoint.new(0.8,40,0),NumberSequenceKeypoint.new(1,60,0)})
| |
| 3458 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 3459 | eff.Speed = NumberRange.new(200) | |
| 3460 | eff.Drag = 5 | |
| 3461 | eff.Rotation = NumberRange.new(-500,500) | |
| 3462 | eff.SpreadAngle = Vector2.new(0,900) | |
| 3463 | eff.RotSpeed = NumberRange.new(-500,500) | |
| 3464 | wait(0.2) | |
| 3465 | eff.Enabled = false | |
| 3466 | end)) | |
| 3467 | coroutine.resume(coroutine.create(function() | |
| 3468 | local eff = Instance.new("ParticleEmitter",xa)
| |
| 3469 | eff.Texture = "rbxassetid://2273224484" | |
| 3470 | eff.LightEmission = 1 | |
| 3471 | eff.Color = ColorSequence.new(BrickColor.random().Color) | |
| 3472 | eff.Rate = 500000 | |
| 3473 | eff.Lifetime = NumberRange.new(1,3) | |
| 3474 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 3475 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 3476 | eff.Speed = NumberRange.new(50,500) | |
| 3477 | eff.Drag = 5 | |
| 3478 | eff.Rotation = NumberRange.new(-500,500) | |
| 3479 | eff.VelocitySpread = 9000 | |
| 3480 | eff.RotSpeed = NumberRange.new(-50,50) | |
| 3481 | wait(0.25) | |
| 3482 | eff.Enabled = false | |
| 3483 | end)) | |
| 3484 | coroutine.resume(coroutine.create(function() | |
| 3485 | for i = 0, 19 do | |
| 3486 | Swait() | |
| 3487 | Humanoid.CameraOffset = vt(MRANDOM(-10,10)/10,MRANDOM(-10,10)/10,MRANDOM(-10,10)/10) | |
| 3488 | end | |
| 3489 | Humanoid.CameraOffset = vt(0,0,0) | |
| 3490 | end)) | |
| 3491 | CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,MRANDOM(100,200)/200)
| |
| 3492 | sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color) | |
| 3493 | sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color) | |
| 3494 | killnearest(RootPart.Position,60,100,Torso.CFrame) | |
| 3495 | CamShakeAOE(Torso.CFrame.p,60,30,250) | |
| 3496 | end | |
| 3497 | poof() | |
| 3498 | end)) | |
| 3499 | Rooted = false | |
| 3500 | ATTACK = false | |
| 3501 | end | |
| 3502 | ||
| 3503 | function Taunt() | |
| 3504 | ATTACK = true | |
| 3505 | Rooted = true | |
| 3506 | local orip0 = nil | |
| 3507 | if script["Mode"].Value == "Insane" then | |
| 3508 | orip0 = LeftArmGrasp.Part0 | |
| 3509 | LeftArmGrasp.Part0 = RightArm | |
| 3510 | end | |
| 3511 | for i=0, 1, 0.1 / Animation_Speed do | |
| 3512 | Swait() | |
| 3513 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3514 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3515 | if script["Mode"].Value ~= "Insane" then | |
| 3516 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 3517 | elseif script["Mode"].Value == "Insane" then | |
| 3518 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 3519 | end | |
| 3520 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 3521 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3522 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3523 | end | |
| 3524 | CreateSound("907330011", Head, 10, 1.1)
| |
| 3525 | for i=0, 2, 0.1 / Animation_Speed do | |
| 3526 | Swait() | |
| 3527 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3528 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3529 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 3530 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 3531 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3532 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3533 | end | |
| 3534 | if script["Mode"].Value == "Insane" then | |
| 3535 | LeftArmGrasp.Part0 = orip0 | |
| 3536 | end | |
| 3537 | ATTACK = false | |
| 3538 | Rooted = false | |
| 3539 | end | |
| 3540 | ||
| 3541 | function TrustIssues() | |
| 3542 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
| 3543 | if HITFLOOR ~= nil then | |
| 3544 | do | |
| 3545 | local HITBODIES = {}
| |
| 3546 | ATTACK = true | |
| 3547 | Rooted = true | |
| 3548 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "White", "ABSOLUTEUM", VT(0, 0, 0)) | |
| 3549 | MakeForm(ABSOLUTE, "Ball") | |
| 3550 | CreateSound("416200578", RootPart, 10, 1)
| |
| 3551 | for i = 0, 8, 0.1 / Animation_Speed do | |
| 3552 | Swait() | |
| 3553 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2, 0.2, 0.2) | |
| 3554 | ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0) | |
| 3555 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
| 3556 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, MAINRUINCOLOR, "ABSOLUTEUM", VT(2, 2, 2)) | |
| 3557 | MakeForm(CHARGE, "Ball") | |
| 3558 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) | |
| 3559 | FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true) | |
| 3560 | RightHip.C0=Clerp(RightHip.C0,cf(1,-1 - 0.05 * COS(SINE / 32),0)*ANGLES(RAD(0),RAD(90),RAD(0))*ANGLES(RAD(-3),RAD(0 - 1 * COS(SINE / 56)),RAD(-15 - 2 * COS(SINE / 32))),.1) | |
| 3561 | LeftHip.C0=Clerp(LeftHip.C0,cf(-1,-1 - 0.05 * COS(SINE / 32),0)*ANGLES(RAD(0),RAD(-90),RAD(0))*ANGLES(RAD(-3),RAD(0 - 1 * COS(SINE / 56)),RAD(15 + 2 * COS(SINE / 32))),.1) | |
| 3562 | RootJoint.C0=Clerp(RootJoint.C0,EULER(-1.57,0,3.14)*cf(0,0.15 + 0.02 * COS(SINE / 32),-0.1 + 0.05 * COS(SINE / 32))*ANGLES(RAD(-15 - 2 * COS(SINE / 32)),RAD(0),RAD(0)),.1) | |
| 3563 | Torso.Neck.C0=Clerp(Torso.Neck.C0,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)*ANGLES(RAD(-25 - 2 * COS(SINE / 37)),RAD(0 + 1 * COS(SINE / 58)),RAD(0 + 2 * COS(SINE / 53))),.1) | |
| 3564 | RightShoulder.C0=Clerp(RightShoulder.C0,cf(1.35,1 + 0.025 * COS(SINE / 45),0)*ANGLES(RAD(165 + 5 * COS(SINE / 74)),RAD(1 - 3 * COS(SINE / 53)),RAD(-10 + 3 * COS(SINE / 45))),.1) | |
| 3565 | LeftShoulder.C0=Clerp(LeftShoulder.C0,cf(-1.35,1 + 0.025 * COS(SINE / 45),0)*ANGLES(RAD(165 - 3 * COS(SINE / 73)),RAD(2 - 1 * COS(SINE / 55)),RAD(13 - 3 * COS(SINE / 45))),.1) | |
| 3566 | end | |
| 3567 | for i = 1, 45 do | |
| 3568 | Swait() | |
| 3569 | RightHip.C0=Clerp(RightHip.C0,cf(1,-1 - 0.05 * COS(SINE / 32),0)*ANGLES(RAD(0),RAD(90),RAD(0))*ANGLES(RAD(-3),RAD(0 - 1 * COS(SINE / 56)),RAD(-15 - 2 * COS(SINE / 32))),.1) | |
| 3570 | LeftHip.C0=Clerp(LeftHip.C0,cf(-1,-1 - 0.05 * COS(SINE / 32),0)*ANGLES(RAD(0),RAD(-90),RAD(0))*ANGLES(RAD(-3),RAD(0 - 1 * COS(SINE / 56)),RAD(15 + 2 * COS(SINE / 32))),.1) | |
| 3571 | RootJoint.C0=Clerp(RootJoint.C0,EULER(-1.57,0,3.14)*cf(0,0.15 + 0.02 * COS(SINE / 32),-0.1 + 0.05 * COS(SINE / 32))*ANGLES(RAD(-15 - 2 * COS(SINE / 32)),RAD(0),RAD(0)),.1) | |
| 3572 | Torso.Neck.C0=Clerp(Torso.Neck.C0,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)*ANGLES(RAD(-25 - 2 * COS(SINE / 37)),RAD(0 + 1 * COS(SINE / 58)),RAD(0 + 2 * COS(SINE / 53))),.1) | |
| 3573 | RightShoulder.C0=Clerp(RightShoulder.C0,cf(1.35,1 + 0.025 * COS(SINE / 45),0)*ANGLES(RAD(165 + 5 * COS(SINE / 74)),RAD(1 - 3 * COS(SINE / 53)),RAD(-10 + 3 * COS(SINE / 45))),.1) | |
| 3574 | LeftShoulder.C0=Clerp(LeftShoulder.C0,cf(-1.35,1 + 0.025 * COS(SINE / 45),0)*ANGLES(RAD(165 - 3 * COS(SINE / 73)),RAD(2 - 1 * COS(SINE / 55)),RAD(13 - 3 * COS(SINE / 45))),.1) | |
| 3575 | end | |
| 3576 | coroutine.resume(coroutine.create(function() | |
| 3577 | local IMPACT = true | |
| 3578 | local BULLET = ABSOLUTE | |
| 3579 | MakeForm(BULLET, "Ball") | |
| 3580 | BULLET.CFrame = CF(BULLET.Position, Mouse.Hit.p) | |
| 3581 | if IMPACT == false then | |
| 3582 | for i = 1, 40 do | |
| 3583 | Swait() | |
| 3584 | BULLET.Size = BULLET.Size * 0.9 | |
| 3585 | end | |
| 3586 | BULLET:remove() | |
| 3587 | else | |
| 3588 | CreateSound("1127492102", BULLET, 10, MRANDOM(8, 13) / 10)
| |
| 3589 | CFuncs["EchoSound"].Create("rbxassetid://1690475123", Character, 1.5, 1,0,10,0.15,0.5,1)
| |
| 3590 | CFuncs["EchoSound"].Create("rbxassetid://1690475123", RootPart, 10, 1,0,10,0.15,0.5,1)
| |
| 3591 | warnedpeople("THIS IS IT!")
| |
| 3592 | CreateSound("438666001", BULLET, 10, 3)
| |
| 3593 | Swait(35) | |
| 3594 | BULLET.Transparency = 1 | |
| 3595 | for i = 1, 20 do | |
| 3596 | for e = 1, 5 do | |
| 3597 | MagicSphere(VT(0.2, 0.2, 0.2), 50, CF(BULLET.CFrame * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, BULLET.Position), MAINRUINCOLOR, VT(1, 1, i * 4), 0) | |
| 3598 | SpliceSlice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), MAINRUINCOLOR.Color, VT(i, 0, i) / 3)
| |
| 3599 | end | |
| 3600 | AddChildrenToTable(BULLET.Position, workspace, i * 25, HITBODIES) | |
| 3601 | CreateSound("178452241", BULLET, 10, MRANDOM(8, 13) / 10)
| |
| 3602 | CreateSound("178452243", BULLET, 10, MRANDOM(8, 13) / 10)
| |
| 3603 | MagicSphere(BULLET.Size, 35, BULLET.CFrame, C3(MRANDOM(0, 10) / 10, MRANDOM(0, 10) / 10, 0), VT(i, i, i) * 2) | |
| 3604 | Swait(5) | |
| 3605 | killnearest(RootPart.Position,100,100,Torso.CFrame) | |
| 3606 | CreateWave(VT(0, 2, 0), 75, CF(BULLET.Position), true, -15, MAINRUINCOLOR, VT(i, 0, i) * 2) | |
| 3607 | end | |
| 3608 | MagicSphere(BULLET.Size, 100, BULLET.CFrame, C3(0.4, 0.4, 0), VT(12, 12, 12)) | |
| 3609 | Debris:AddItem(BULLET, 10) | |
| 3610 | end | |
| 3611 | end)) | |
| 3612 | ATTACK = false | |
| 3613 | Rooted = false | |
| 3614 | end | |
| 3615 | end | |
| 3616 | end | |
| 3617 | ||
| 3618 | function BanishBullet() | |
| 3619 | ATTACK = true | |
| 3620 | Rooted = true | |
| 3621 | if script["Mode"].Value ~= "Insane" then | |
| 3622 | KarmaGun2.Parent = Character | |
| 3623 | KarmaGun.Parent = nil | |
| 3624 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3625 | for i=0, 0.4, 0.05 / Animation_Speed do | |
| 3626 | Swait() | |
| 3627 | turnto(Mouse.Hit.p) | |
| 3628 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3629 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3630 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 3631 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 3632 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3633 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3634 | end | |
| 3635 | repeat | |
| 3636 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 3637 | Swait() | |
| 3638 | turnto(Mouse.Hit.p) | |
| 3639 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3640 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3641 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 3642 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 3643 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3644 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3645 | end | |
| 3646 | local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000000, Character) | |
| 3647 | SpawnTrail(Hole2.Position,POS) | |
| 3648 | if HIT ~= nil then | |
| 3649 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 3650 | Banish(HIT.Parent) | |
| 3651 | end | |
| 3652 | end | |
| 3653 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 3654 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 2})
| |
| 3655 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3656 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3657 | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 | |
| 3658 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 3659 | Swait() | |
| 3660 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3661 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3662 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(92), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 3663 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 3664 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3665 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3666 | end | |
| 3667 | until KEYHOLD == false | |
| 3668 | KarmaGun2.Parent = nil | |
| 3669 | KarmaGun.Parent = Character | |
| 3670 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3671 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel2.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3672 | elseif script["Mode"].Value == "Insane" then | |
| 3673 | local orip0 = LeftArmGrasp.Part0 | |
| 3674 | LeftArmGrasp.Part0 = RightArm | |
| 3675 | for i=0, 0.4, 0.05 / Animation_Speed do | |
| 3676 | Swait() | |
| 3677 | turnto(Mouse.Hit.p) | |
| 3678 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed) | |
| 3679 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
| 3680 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 3681 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 3682 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 3683 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 3684 | end | |
| 3685 | repeat | |
| 3686 | for i=0, 0.05, 0.05 / Animation_Speed do | |
| 3687 | Swait() | |
| 3688 | turnto(Mouse.Hit.p) | |
| 3689 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed) | |
| 3690 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.5 / Animation_Speed) | |
| 3691 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 3692 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.6, -0.4) * ANGLES(RAD(170), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 3693 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 3694 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 3695 | end | |
| 3696 | local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character) | |
| 3697 | SpawnTrail(Hole2.Position,POS) | |
| 3698 | if HIT ~= nil then | |
| 3699 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 3700 | Banish(HIT.Parent) | |
| 3701 | end | |
| 3702 | end | |
| 3703 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 3704 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3705 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3706 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3707 | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 | |
| 3708 | for i=0, 0.3, 0.05 / Animation_Speed do | |
| 3709 | Swait() | |
| 3710 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(60)), 0.5 / Animation_Speed) | |
| 3711 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.25 / Animation_Speed) | |
| 3712 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 3713 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.6, -0.4) * ANGLES(RAD(172), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 3714 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 3715 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 3716 | end | |
| 3717 | until KEYHOLD == false | |
| 3718 | LeftArmGrasp.Part0 = orip0 | |
| 3719 | end | |
| 3720 | ATTACK = false | |
| 3721 | Rooted = false | |
| 3722 | end | |
| 3723 | ||
| 3724 | function KarmaStrike() | |
| 3725 | ATTACK = true | |
| 3726 | Rooted = true | |
| 3727 | CreateSound(1368573150, RightArm, 3, 1.5) | |
| 3728 | for i=0, 2, 0.1 / Animation_Speed do | |
| 3729 | Swait() | |
| 3730 | WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = Hole2.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 3731 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 0.15 / Animation_Speed) | |
| 3732 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3733 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35), RAD(0), RAD(27)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 3734 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(165), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 3735 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3736 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3737 | end | |
| 3738 | local POWER = 1 | |
| 3739 | repeat | |
| 3740 | Swait() | |
| 3741 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.01*POWER,0,0.01*POWER), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame*CF(0,0,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
| |
| 3742 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = Hole2.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 3743 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0 + 0.05 * COS(SINE / 16)) * ANGLES(RAD(-25), RAD(0), RAD(-30)), 0.15 / Animation_Speed) | |
| 3744 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 32)), RAD(0), RAD(30 + 10 * COS(SINE / 14))), 0.15 / Animation_Speed) | |
| 3745 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 + 5 * COS(SINE / 21)), RAD(0), RAD(28 + 5 * COS(SINE / 19))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 3746 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1 - 0.1 * COS(SINE / 25), 0) * ANGLES(RAD(150 + 15 * COS(SINE / 53)), RAD(0), RAD(-15 + 5 * COS(SINE / 43))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 3747 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 16), -0.01) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 3748 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 - 0.1 * COS(SINE / 33), -0.6) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8 + 3 * COS(SINE / 30)), RAD(0), RAD(0 + 7 * COS(SINE / 64))), 0.15 / Animation_Speed) | |
| 3749 | POWER = POWER + 0.009 | |
| 3750 | if POWER >= 6 then | |
| 3751 | POWER = 6 | |
| 3752 | end | |
| 3753 | until KEYHOLD == false | |
| 3754 | BANISHAOE(Mouse.hit.Position,13*POWER,true) | |
| 3755 | WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(20*POWER,9999,20*POWER), Size2 = VT(0,9999,0), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Mouse.Hit.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 0.9, SoundVolume = 15})
| |
| 3756 | WACKYEFFECT({Time = 60, EffectType = "Block", Size = VT(5*POWER,5*POWER,5*POWER), Size2 = VT(30*POWER,30*POWER,30*POWER), Transparency = 0, Transparency2 = 1, CFrame = CF(Mouse.Hit.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 0.9, SoundVolume = 15})
| |
| 3757 | for i=0, 1, 0.1 / Animation_Speed do | |
| 3758 | Swait() | |
| 3759 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = Hole2.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 3760 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.6 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(30), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3761 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3762 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3763 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3764 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-20), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3765 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.2 - 0.05 * COS(SINE / 12), -0.6) * ANGLES(RAD(30), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3766 | end | |
| 3767 | ATTACK = false | |
| 3768 | Rooted = false | |
| 3769 | end | |
| 3770 | ||
| 3771 | function BulletRoller() | |
| 3772 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 3773 | if HITFLOOR then | |
| 3774 | ATTACK = true | |
| 3775 | Rooted = true | |
| 3776 | local orip0 = nil | |
| 3777 | if script["Mode"].Value ~= "Insane" then | |
| 3778 | KarmaGun.Parent = nil | |
| 3779 | KarmaGun2.Parent = Character | |
| 3780 | elseif script["Mode"].Value == "Insane" then | |
| 3781 | orip0 = LeftArmGrasp.Part0 | |
| 3782 | LeftArmGrasp.Part0 = RightArm | |
| 3783 | end | |
| 3784 | local bv = Instance.new("BodyVelocity")
| |
| 3785 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3786 | bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1,-4).p).lookVector*175 | |
| 3787 | bv.Parent = RootPart | |
| 3788 | local GYRO = IT("BodyGyro",RootPart)
| |
| 3789 | GYRO.D = 2 | |
| 3790 | GYRO.P = 20000 | |
| 3791 | GYRO.MaxTorque = VT(0,4000000,0) | |
| 3792 | GYRO.CFrame = CF(RootPart.Position,RootPart.CFrame*CF(0,0,-5).p) | |
| 3793 | CreateSound(145486992,Torso,10,0.85,false) | |
| 3794 | for i=0, 0.05, 0.1 / Animation_Speed do | |
| 3795 | Swait() | |
| 3796 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(-10)), 1 / Animation_Speed) | |
| 3797 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(10)), 1 / Animation_Speed) | |
| 3798 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(-20), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3799 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(20), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3800 | if ANIM == "Fall" or ANIM == "Jump" then | |
| 3801 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3802 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3803 | else | |
| 3804 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-5), RAD(80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3805 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3806 | end | |
| 3807 | end | |
| 3808 | bv:Remove() | |
| 3809 | local E = 360/15 | |
| 3810 | for i = 1, 15 do | |
| 3811 | Swait() | |
| 3812 | WACKYEFFECT({Time = 10, EffectType = "Wave", Size = VT(8,1,8), Size2 = VT(2,15,2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position,HITPOS) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 3813 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3814 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3815 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(5), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3816 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-5), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3817 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(-35), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3818 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3819 | end | |
| 3820 | local LANDED = nil | |
| 3821 | local POS = nil | |
| 3822 | coroutine.resume(coroutine.create(function() | |
| 3823 | repeat | |
| 3824 | Swait() | |
| 3825 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3826 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3827 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3828 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3829 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3830 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3831 | until LANDED ~= nil | |
| 3832 | end)) | |
| 3833 | repeat | |
| 3834 | Swait() | |
| 3835 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4.2, Character) | |
| 3836 | if HITFLOOR then | |
| 3837 | LANDED = HITFLOOR | |
| 3838 | POS = HITPOS | |
| 3839 | end | |
| 3840 | until LANDED ~= nil | |
| 3841 | GYRO:remove() | |
| 3842 | Swait(4) | |
| 3843 | ManualAoE(RootPart.Position,10,20,50,0,false) | |
| 3844 | CreateSound(765590102, Torso, 2, (MRANDOM(8,12)/10)+0.3, false) | |
| 3845 | WACKYEFFECT({EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(20,20,20), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255,0/255,0/255), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 3846 | for i = 0, 4 do | |
| 3847 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(0,0.33,0), Size2 = VT(8,0.11,8), Transparency = 0.4, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-2.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-10,10), RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 3848 | end | |
| 3849 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 3850 | Swait() | |
| 3851 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -2.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3852 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3853 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(179), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3854 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(179), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3855 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3856 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3857 | end | |
| 3858 | repeat | |
| 3859 | for i=0, 0.1, 0.05 / Animation_Speed do | |
| 3860 | Swait() | |
| 3861 | turnto(Mouse.Hit.p) | |
| 3862 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -2.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3863 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0.35, 0 + ((1) - 1)) * ANGLES(RAD(-75 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3864 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(179), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3865 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.4, 0.8, 0) * ANGLES(RAD(179), RAD(0), RAD(70)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3866 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3867 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3868 | end | |
| 3869 | local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character) | |
| 3870 | SpawnTrail(Hole2.Position,POS) | |
| 3871 | if HIT ~= nil then | |
| 3872 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 3873 | Banish(HIT.Parent) | |
| 3874 | end | |
| 3875 | end | |
| 3876 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 3877 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3878 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3879 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 3880 | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 | |
| 3881 | for i=0, 0.075, 0.05 / Animation_Speed do | |
| 3882 | Swait() | |
| 3883 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -2.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3884 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0.35, 0 + ((1) - 1)) * ANGLES(RAD(-85 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3885 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(190), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3886 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.4, 0.8, 0) * ANGLES(RAD(190), RAD(0), RAD(70)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3887 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3888 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3889 | end | |
| 3890 | until KEYHOLD == false | |
| 3891 | ATTACK = false | |
| 3892 | Rooted = false | |
| 3893 | if script["Mode"].Value ~= "Insane" then | |
| 3894 | KarmaGun2.Parent = nil | |
| 3895 | KarmaGun.Parent = Character | |
| 3896 | elseif script["Mode"].Value == "Insane" then | |
| 3897 | LeftArmGrasp.Part0 = orip0 | |
| 3898 | end | |
| 3899 | end | |
| 3900 | end | |
| 3901 | ||
| 3902 | function GetAttackFromList(Attack) | |
| 3903 | if Attack == "bye bye" then | |
| 3904 | ByeBye() | |
| 3905 | elseif Attack == "his grasp" then | |
| 3906 | HisGrasp() | |
| 3907 | elseif Attack == "rush" then | |
| 3908 | Rush() | |
| 3909 | elseif Attack == "the other side of paradise" then | |
| 3910 | OtherSideOfParadise() | |
| 3911 | elseif Attack == "kristian's last hope" then | |
| 3912 | ShatteredHeart() | |
| 3913 | elseif Attack == "trust issues" then | |
| 3914 | TrustIssues() | |
| 3915 | elseif Attack == "smite" then | |
| 3916 | KarmaStrike() | |
| 3917 | elseif Attack == "debanish" then | |
| 3918 | TOBANISH = {}
| |
| 3919 | chatfunc("You have been freed from the banlands.")
| |
| 3920 | end | |
| 3921 | end | |
| 3922 | ||
| 3923 | --//=================================\\ | |
| 3924 | --|| ASSIGN THINGS TO KEYS | |
| 3925 | --\\=================================// | |
| 3926 | ||
| 3927 | function MouseDown(Mouse) | |
| 3928 | ByeBye() | |
| 3929 | end | |
| 3930 | ||
| 3931 | function MouseUp(Mouse) | |
| 3932 | HOLD = false | |
| 3933 | end | |
| 3934 | ||
| 3935 | function KeyDown(Key) | |
| 3936 | KEYHOLD = true | |
| 3937 | if Key == "z" and ATTACK == false then | |
| 3938 | HisGrasp() | |
| 3939 | end | |
| 3940 | ||
| 3941 | if Key == "q" and ATTACK == false then | |
| 3942 | Rush() | |
| 3943 | end | |
| 3944 | ||
| 3945 | if Key == "e" and ATTACK == false then | |
| 3946 | BanishBullet() | |
| 3947 | end | |
| 3948 | ||
| 3949 | if Key == "r" and ATTACK == false then | |
| 3950 | BulletRoller() | |
| 3951 | end | |
| 3952 | ||
| 3953 | if Key == "t" and ATTACK == false then | |
| 3954 | Taunt() | |
| 3955 | end | |
| 3956 | ||
| 3957 | if Key == "y" and ATTACK == false then | |
| 3958 | if script["Mode"].Value == "Insane" then | |
| 3959 | KarmaStrike() | |
| 3960 | end | |
| 3961 | end | |
| 3962 | ||
| 3963 | if Key == "f" and ATTACK == false then | |
| 3964 | OtherSideOfParadise() | |
| 3965 | end | |
| 3966 | ||
| 3967 | if Key == "g" and ATTACK == false then | |
| 3968 | ShatteredHeart() | |
| 3969 | end | |
| 3970 | ||
| 3971 | if Key == "h" and ATTACK == false then | |
| 3972 | TrustIssues() | |
| 3973 | end | |
| 3974 | ||
| 3975 | if Key == "x" and ATTACK == false then | |
| 3976 | TOBANISH = {}
| |
| 3977 | chatfunc("You have been freed from the banlands.")
| |
| 3978 | end | |
| 3979 | ||
| 3980 | if Key == "j" and ATTACK == false then | |
| 3981 | script["Mode"].Value = "Karma" | |
| 3982 | end | |
| 3983 | ||
| 3984 | if Key == "k" and ATTACK == false then | |
| 3985 | script["Mode"].Value = "ByeBye" | |
| 3986 | end | |
| 3987 | ||
| 3988 | if Key == "l" and ATTACK == false then | |
| 3989 | script["Mode"].Value = "Insane" | |
| 3990 | end | |
| 3991 | end | |
| 3992 | ||
| 3993 | function KeyUp(Key) | |
| 3994 | KEYHOLD = false | |
| 3995 | end | |
| 3996 | ||
| 3997 | function Chatted(Message) | |
| 3998 | Message = Message:lower() | |
| 3999 | if ATTACK == false then | |
| 4000 | for i, attackFromList in ipairs(ATTACKLIST) do | |
| 4001 | local AttackFromList = attackFromList:lower() | |
| 4002 | if Message:sub(1, #AttackFromList) == AttackFromList then | |
| 4003 | GetAttackFromList(AttackFromList) | |
| 4004 | end | |
| 4005 | end | |
| 4006 | end | |
| 4007 | end | |
| 4008 | ||
| 4009 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 4010 | MouseDown(NEWKEY) | |
| 4011 | end) | |
| 4012 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 4013 | MouseUp(NEWKEY) | |
| 4014 | end) | |
| 4015 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 4016 | KeyDown(NEWKEY) | |
| 4017 | end) | |
| 4018 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 4019 | KeyUp(NEWKEY) | |
| 4020 | end) | |
| 4021 | Player.Chatted:connect(function(NEWMESSAGE) | |
| 4022 | Chatted(NEWMESSAGE) | |
| 4023 | end) | |
| 4024 | ||
| 4025 | --//=================================\\ | |
| 4026 | --\\=================================// | |
| 4027 | ||
| 4028 | function unanchor() | |
| 4029 | if UNANCHOR == true then | |
| 4030 | local g = Character:GetChildren() | |
| 4031 | for i = 1, #g do | |
| 4032 | if g[i].ClassName == "Part" then | |
| 4033 | g[i].Anchored = false | |
| 4034 | end | |
| 4035 | end | |
| 4036 | end | |
| 4037 | end | |
| 4038 | ||
| 4039 | ||
| 4040 | --//=================================\\ | |
| 4041 | --|| WRAP THE WHOLE SCRIPT UP | |
| 4042 | --\\=================================// | |
| 4043 | ||
| 4044 | Humanoid.Changed:connect(function(Jump) | |
| 4045 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 4046 | Humanoid.Jump = false | |
| 4047 | end | |
| 4048 | end) | |
| 4049 | ||
| 4050 | while true do | |
| 4051 | Swait() | |
| 4052 | ANIMATE.Parent = nil | |
| 4053 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
| 4054 | IDLEANIMATION:Play() | |
| 4055 | neccc = MRANDOM(1, 4) | |
| 4056 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 4057 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 4058 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
| 4059 | HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
| 4060 | local WALKSPEEDVALUE = 0 | |
| 4061 | if Speed < 35 then | |
| 4062 | WALKSPEEDVALUE = 6 | |
| 4063 | else | |
| 4064 | WALKSPEEDVALUE = 3 | |
| 4065 | end | |
| 4066 | for _,v in next, Hearts do | |
| 4067 | local part,mesh,count = v[1],v[2],v[3] | |
| 4068 | part.Color = C3(r / 255, g / 255, b / 255) | |
| 4069 | mesh.Scale = VT(GetClientProperty(sick,'PlaybackLoudness')/125,GetClientProperty(sick,'PlaybackLoudness')/125,1) | |
| 4070 | end | |
| 4071 | local sickPlaybackLoudness = GetClientProperty(sick,'PlaybackLoudness') | |
| 4072 | if(script["Mode"].Value ~= "Insane")then | |
| 4073 | if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then | |
| 4074 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed) | |
| 4075 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 4076 | if Speed < 35 then | |
| 4077 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
| 4078 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
| 4079 | else | |
| 4080 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
| 4081 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
| 4082 | end | |
| 4083 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then | |
| 4084 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 4085 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 4086 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 4087 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 4088 | end | |
| 4089 | end | |
| 4090 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 4091 | ANIM = "Jump" | |
| 4092 | if ATTACK == false then | |
| 4093 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 4094 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 4095 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 4096 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 4097 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 4098 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 4099 | end | |
| 4100 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 4101 | ANIM = "Fall" | |
| 4102 | if ATTACK == false then | |
| 4103 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 4104 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 4105 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 4106 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 4107 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 4108 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 4109 | end | |
| 4110 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 4111 | ANIM = "Idle" | |
| 4112 | if ATTACK == false then | |
| 4113 | if(script["Mode"].Value ~= "Insane")then | |
| 4114 | local bouncyboi = sickPlaybackLoudness / 1200 | |
| 4115 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.1, -0.1 + 0.05 * COS(SINE / 12) + bouncyboi) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 4116 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 4117 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5 + sickPlaybackLoudness / 1200, -0.3) * ANGLES(RAD(-200), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 4118 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12) - bouncyboi, -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 4119 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) - bouncyboi, -0.01) * ANGLES(RAD(5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 4120 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
| 4121 | if MRANDOM(1, 10) == 1 then | |
| 4122 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
| 4123 | end | |
| 4124 | elseif(script["Mode"].Value == "Insane")then | |
| 4125 | if MRANDOM(1, 10) == 1 then | |
| 4126 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.01*3,0,0.01*3), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame*CF(0,0,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
| |
| 4127 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = Hole2.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 4128 | end | |
| 4129 | local bouncyboi = sickPlaybackLoudness / 1000 | |
| 4130 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0 + 0.05 * COS(SINE / 16) + bouncyboi) * ANGLES(RAD(-25), RAD(0), RAD(-30)), 0.15 / Animation_Speed) | |
| 4131 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 32)), RAD(0), RAD(30 + 10 * COS(SINE / 14))), 0.15 / Animation_Speed) | |
| 4132 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 + 5 * COS(SINE / 21)), RAD(0), RAD(28 + 5 * COS(SINE / 19))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 4133 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1 - 0.1 * COS(SINE / 25) + sickPlaybackLoudness / 1200, 0) * ANGLES(RAD(150 + 15 * COS(SINE / 53)), RAD(0), RAD(-15 + 5 * COS(SINE / 43))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 4134 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 16) - bouncyboi, -0.01) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 4135 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 - 0.1 * COS(SINE / 33) - bouncyboi, -0.6) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8 + 3 * COS(SINE / 30)), RAD(0), RAD(0 + 7 * COS(SINE / 64))), 0.15 / Animation_Speed) | |
| 4136 | end | |
| 4137 | end | |
| 4138 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then | |
| 4139 | ANIM = "Walk" | |
| 4140 | WALK = WALK + 1 / Animation_Speed | |
| 4141 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
| 4142 | WALK = 0 | |
| 4143 | if WALKINGANIM == true then | |
| 4144 | WALKINGANIM = false | |
| 4145 | elseif WALKINGANIM == false then | |
| 4146 | WALKINGANIM = true | |
| 4147 | end | |
| 4148 | end | |
| 4149 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 4150 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 4151 | if ATTACK == false then | |
| 4152 | if(script["Mode"].Value ~= "Insane")then | |
| 4153 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 4154 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 4155 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(-200), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 4156 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 4157 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 4158 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20 + MRANDOM(-5,5) - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(MRANDOM(-5,5)), RAD(0)), 1 / Animation_Speed) | |
| 4159 | if MRANDOM(1,10) == 1 then | |
| 4160 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
| 4161 | end | |
| 4162 | elseif(script["Mode"].Value == "Insane")then | |
| 4163 | Neck.C0 = Clerp(Neck.C0,CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)*ANGLES(RAD(-17 - 5 * COS(SINE / 52)),RAD(0 - 3 * COS(SINE / 37)),RAD(0 + 2 * COS(SINE / 78))),.2) | |
| 4164 | RightShoulder.C0 = Clerp(RightShoulder.C0,CF(1.5,0.5 + 0.05 * COS(SINE / 28),0)*ANGLES(RAD(-8 - 4 * COS(SINE / 59)),RAD(-20 + 7 * COS(SINE / 62)),RAD(20 + 5 * COS(SINE / 50))),.2) | |
| 4165 | RootJoint.C0 = Clerp(RootJoint.C0,EULER(-1.57,0,3.14)*CF(0 - 0.15 * COS(SINE / 47),-0.5,0.5 + 0.1 * COS(SINE / 28))*ANGLES(RAD(70),RAD(0 - RootPart.RotVelocity.Y),RAD(0 - RootPart.RotVelocity.Y *4.5 + 3 * COS(SINE / 47))),.2) | |
| 4166 | LeftShoulder.C0 = Clerp(LeftShoulder.C0,CF(-1.5,0.5 + 0.1 * COS(SINE / 28),0)*ANGLES(RAD(-8 - 3 * COS(SINE / 55)),RAD(20 + 8 * COS(SINE / 67)),RAD(-20 - 4 * COS(SINE / 29))),.2) | |
| 4167 | RightHip.C0 = Clerp(RightHip.C0,CF(1,-0.5,-0.6)*ANGLES(RAD(0),RAD(90),RAD(0))*ANGLES(RAD(1.5),RAD(0),RAD(-20 - 5 * COS(SINE / 34))),.2) | |
| 4168 | LeftHip.C0 = Clerp(LeftHip.C0,CF(-1,-1,0)*ANGLES(RAD(0),RAD(-90),RAD(0))*ANGLES(RAD(1),RAD(0),RAD(20 + 2 * COS(SINE / 38))),.2) | |
| 4169 | if MRANDOM(1,10) == 1 then | |
| 4170 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
| 4171 | end | |
| 4172 | end | |
| 4173 | end | |
| 4174 | end | |
| 4175 | unanchor() | |
| 4176 | for _, c in pairs(HornFolder:GetChildren()) do | |
| 4177 | c.Color = C3(r / 255, g / 255, b / 255) -- BrickColor.Random().Color | |
| 4178 | end | |
| 4179 | for _, c in pairs(faceShadingFolder:GetChildren()) do | |
| 4180 | c.Color = C3(r / 255, g / 255, b / 255) | |
| 4181 | end | |
| 4182 | for i, v in pairs(NeonParts) do | |
| 4183 | v.Color = BrickColor.Random().Color | |
| 4184 | end | |
| 4185 | for i, v in pairs(ArmourParts) do | |
| 4186 | v.Color = C3(r / 255, g / 255, b / 255) | |
| 4187 | end | |
| 4188 | for _, c in pairs(Character:GetChildren()) do | |
| 4189 | if c:IsA('CharacterMesh') then
| |
| 4190 | c:Destroy() | |
| 4191 | end | |
| 4192 | end | |
| 4193 | if(script["Mode"].Value == "ByeBye")then | |
| 4194 | if(sick.TimePosition > 47.0) then | |
| 4195 | sick.TimePosition = 0 | |
| 4196 | end | |
| 4197 | end | |
| 4198 | if(script["Mode"].Value == "Karma")then | |
| 4199 | sick.SoundId = "rbxassetid://"..SONG1 | |
| 4200 | elseif(script["Mode"].Value == "ByeBye")then | |
| 4201 | sick.SoundId = "rbxassetid://"..SONG2 | |
| 4202 | elseif(script["Mode"].Value == "Insane")then | |
| 4203 | sick.SoundId = "rbxassetid://"..SONG3 | |
| 4204 | end | |
| 4205 | sideLabel.Text = "Side: " .. script["Mode"].Value | |
| 4206 | if ATTACK == false then | |
| 4207 | if(script["Mode"].Value ~= "Insane")then | |
| 4208 | LeftArmGrasp.Part0 = RightArm | |
| 4209 | KarmaGun2.Parent = nil | |
| 4210 | KarmaGun.Parent = Character | |
| 4211 | elseif(script["Mode"].Value == "Insane")then | |
| 4212 | LeftArmGrasp.Part0 = LeftArm | |
| 4213 | KarmaGun2.Parent = Character | |
| 4214 | KarmaGun.Parent = nil | |
| 4215 | end | |
| 4216 | end | |
| 4217 | local fontNum = MRANDOM(1, 17) | |
| 4218 | for _, label in pairs(WEAPONGUI:GetDescendants()) do | |
| 4219 | if label:IsA("TextLabel") then
| |
| 4220 | label.TextColor3 = BrickColor.Random().Color | |
| 4221 | label.TextScaled = true | |
| 4222 | label.Font = FONTS[MRANDOM(1, #FONTS)] | |
| 4223 | end | |
| 4224 | end | |
| 4225 | techc.Rotation = techc.Rotation + 1 | |
| 4226 | techc.ImageColor3 = C3(r / 255, g / 255, b / 255) | |
| 4227 | circl.Rotation = circl.Rotation - sickPlaybackLoudness/75 - 1 | |
| 4228 | circl.ImageColor3 = C3(r / 255, g / 255, b / 255) | |
| 4229 | circl2.Rotation = circl2.Rotation + sickPlaybackLoudness/50 + 1 | |
| 4230 | circl2.ImageColor3 = C3(r / 255, g / 255, b / 255) | |
| 4231 | imgl2.Rotation = imgl2.Rotation - sickPlaybackLoudness/50 + 1 | |
| 4232 | imgl2.ImageColor3 = BrickColor.Random().Color | |
| 4233 | imgl2b.Rotation = imgl2b.Rotation + sickPlaybackLoudness/25 - 1 | |
| 4234 | imgl2b.ImageColor3 = BrickColor.Random().Color | |
| 4235 | ned.Rotation = 0 - 2 * math.cos(SINE / 24) | |
| 4236 | ned.Position = UDim2.new(0.7,0 - 10 * math.cos(SINE / 32),0.8,0 - 10 * math.cos(SINE / 45)) | |
| 4237 | Humanoid.MaxHealth = "inf" | |
| 4238 | Humanoid.Health = "inf" | |
| 4239 | if Rooted == false then | |
| 4240 | Disable_Jump = false | |
| 4241 | Humanoid.WalkSpeed = Speed | |
| 4242 | elseif Rooted == true then | |
| 4243 | Disable_Jump = true | |
| 4244 | Humanoid.WalkSpeed = 0 | |
| 4245 | end | |
| 4246 | local MATHS = {"0","1"}
| |
| 4247 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
| 4248 | Humanoid.PlatformStand = false | |
| 4249 | MAINRUINCOLOR = BrickColor.Random() | |
| 4250 | end | |
| 4251 | ||
| 4252 | --//=================================\\ | |
| 4253 | --\\=================================// | |
| 4254 | ||
| 4255 | ||
| 4256 | ||
| 4257 | ||
| 4258 | ||
| 4259 | --//====================================================\\-- | |
| 4260 | --|| END OF SCRIPT | |
| 4261 | --\\====================================================//-- |