SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local ScriptLink = [[https://paste.ee/r/XCFEV]] |
| 1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | - | --//Do not touch anything below this line, you may break it. |
| 3 | + | local RealPlayer = Player |
| 4 | - | local FeSource = nil;pcall(function()FeSource = game:GetService("HttpService"):GetAsync("https://raw.githubusercontent.com/WaverlyCole/FE-Compatibility-VoidSb-/master/translate.lua")end);
|
| 4 | + | do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
|
| 5 | - | local ScriptSource = nil;pcall(function()ScriptSource = game:GetService("HttpService"):GetAsync(ScriptLink)end);
|
| 5 | + | script.Parent = InternalData.RealOwner.Character |
| 6 | - | if not FeSource then error("Failed to grab update! Try again later.",0)end;if not ScriptSource then error("Failed to get link!",0)end;
|
| 6 | + | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
|
| 7 | - | local FeConversion = loadstring(FeSource);local FeSucc,FeErr = pcall(FeConversion);if not FeSucc then warn(FeErr)error("Failed to initiate! Try again later.",0) end;
|
| 7 | + | local function createObject (connections, index) |
| 8 | - | local Script = loadstring(ScriptSource);local Succ,Err = pcall(Script);if not Succ then warn(Err)error("Error loading script.",0) end; |
| 8 | + | local proxy = newproxy (true);local meta = getmetatable (proxy); |
| 9 | local runbind = function (self, i, ...) connections[i]:Fire (...); end; | |
| 10 | while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
| |
| 11 | meta.__index = function (self, i) | |
| 12 | if (i == 'TriggerEvent') then return runbind end; | |
| 13 | return connections[i] and connections[i].Event or index[i]; | |
| 14 | end; | |
| 15 | meta.__newindex = index;meta.__metatable = false;return proxy | |
| 16 | end; | |
| 17 | local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
| |
| 18 | local UserInputService = createObject({"InputBegan","InputEnded"},{})
| |
| 19 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 20 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 21 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 22 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 23 | if FiredBy ~= InternalData.RealOwner then return end | |
| 24 | if Input.MouseEvent then | |
| 25 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 26 | elseif Input.Sound then | |
| 27 | if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end | |
| 28 | else | |
| 29 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 30 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end | |
| 31 | for _,Action in pairs(ContextActionService.Actions) do | |
| 32 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 33 | end | |
| 34 | Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 35 | end | |
| 36 | end) | |
| 37 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 38 | Event.Parent = NLS([[ | |
| 39 | local Player = owner; | |
| 40 | local Sounds = {};
| |
| 41 | local Event = script:WaitForChild("UserInput");
| |
| 42 | local UserInputService = game:GetService("UserInputService");
| |
| 43 | local Mouse = Player:GetMouse(); | |
| 44 | local Input = function(Input,gameProcessedEvent) | |
| 45 | if gameProcessedEvent then return end | |
| 46 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 47 | end | |
| 48 | Event.OnClientEvent:connect(function(Args) | |
| 49 | if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end | |
| 50 | end) | |
| 51 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 52 | local Hit,Target | |
| 53 | while wait(1/30) do | |
| 54 | for x,Sound in pairs(Sounds) do | |
| 55 | if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
| |
| 56 | end | |
| 57 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 58 | Hit = Mouse.Hit;Target = Mouse.Target; | |
| 59 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 60 | end | |
| 61 | end | |
| 62 | ]],InternalData.RealOwner.Character) | |
| 63 | end | |
| 64 | InternalData.NewOwner = setmetatable({},{
| |
| 65 | __index = function (self,Index) | |
| 66 | local Type = type(InternalData.RealOwner[Index]) | |
| 67 | if Type == "function" then | |
| 68 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 69 | return function (self)return InternalData["Mouse"] end | |
| 70 | end | |
| 71 | return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end | |
| 72 | elseif Index == "FakePlayer" then | |
| 73 | return true | |
| 74 | end | |
| 75 | return InternalData.RealOwner[Index] | |
| 76 | end; | |
| 77 | __tostring = function(self) return tostring(InternalData.RealOwner) end | |
| 78 | }) | |
| 79 | --LoadLibrary("RbxUtility").Create
| |
| 80 | InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library) | |
| 81 | if Library == "RbxUtility" then | |
| 82 | return setmetatable({},{
| |
| 83 | __tostring = function() return "RbxUtility" end; | |
| 84 | __index = function(self, Index) | |
| 85 | if Index:lower() == "create" then | |
| 86 | return function(Type) | |
| 87 | return function(Data) | |
| 88 | Data = Data or {}
| |
| 89 | local Inst = Instance.new(Type) | |
| 90 | for x,y in pairs(Data) do | |
| 91 | if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end | |
| 92 | if y == owner then y = InternalData.RealOwner end | |
| 93 | Inst[x] = y | |
| 94 | end | |
| 95 | return Inst | |
| 96 | end | |
| 97 | end | |
| 98 | end | |
| 99 | return InternalData.LoadLibrary(Library)[Index] | |
| 100 | end | |
| 101 | }) | |
| 102 | end | |
| 103 | return InternalData.LoadLibrary(Library) | |
| 104 | end | |
| 105 | InternalData.RealInstance = Instance;Instance = setmetatable({},{
| |
| 106 | __index = function (self,Index) | |
| 107 | if Index:lower() == 'new' then | |
| 108 | return function (Type, Parent) | |
| 109 | if Parent == owner then Parent = InternalData.RealOwner end | |
| 110 | if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end | |
| 111 | local Real = InternalData.RealInstance.new(Type,Parent) | |
| 112 | if not Type then return end | |
| 113 | if Type == "BillboardGui" then | |
| 114 | local ToReturn = setmetatable({},{
| |
| 115 | __index = function (self,Index) | |
| 116 | if type(Real[Index]) == "function" then | |
| 117 | if Index:lower() == "clone" then | |
| 118 | return function (self) | |
| 119 | local Real = Real:Clone() | |
| 120 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 121 | __index = function (self,Index) | |
| 122 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 123 | return Real[Index] | |
| 124 | end; | |
| 125 | __newindex = function (self,Index,Value) | |
| 126 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 127 | if Value == owner then Value = InternalData.RealOwner end | |
| 128 | Real[Index] = Value | |
| 129 | end; | |
| 130 | __tostring = function(self) return tostring(Real) end; | |
| 131 | }) | |
| 132 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 133 | end | |
| 134 | end | |
| 135 | return function (self,...) return Real[Index](Real,...)end | |
| 136 | end | |
| 137 | return Real[Index] | |
| 138 | end; | |
| 139 | __newindex = function (self,Index,Value) | |
| 140 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 141 | if Value == owner then Value = InternalData.RealOwner end | |
| 142 | Real[Index] = Value | |
| 143 | end; | |
| 144 | __tostring = function(self) return tostring(Real) end; | |
| 145 | }) | |
| 146 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 147 | elseif Type:lower() == "sound" then | |
| 148 | Real.Parent = owner.Character; | |
| 149 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 150 | __index = function (self,Index) | |
| 151 | if Index:lower() == "playbackloudness" then | |
| 152 | return InternalData.SoundLoudness[Real] or 0 | |
| 153 | elseif type(Real[Index]) == "function" then | |
| 154 | if Index:lower() == "clone" then | |
| 155 | return function (self) | |
| 156 | local Real = Real:Clone() | |
| 157 | local ToReturn = setmetatable({},{
| |
| 158 | __index = function (self,Index) | |
| 159 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 160 | return Real[Index] | |
| 161 | end; | |
| 162 | __newindex = function (self,Index,Value) | |
| 163 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 164 | if Value == owner then Value = InternalData.RealOwner end | |
| 165 | Real[Index] = Value | |
| 166 | end; | |
| 167 | __tostring = function(self) return tostring(Real) end; | |
| 168 | }) | |
| 169 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 170 | end | |
| 171 | end | |
| 172 | return function (self,...) return Real[Index](Real,...)end | |
| 173 | end | |
| 174 | return Real[Index] | |
| 175 | end; | |
| 176 | __newindex = function (self,Index,Value) | |
| 177 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 178 | if Value == owner then Value = InternalData.RealOwner end | |
| 179 | Real[Index] = Value | |
| 180 | end; | |
| 181 | __tostring = function(self) return tostring(Real) end; | |
| 182 | }) | |
| 183 | InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
| |
| 184 | else | |
| 185 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 186 | __index = function (self,Index) | |
| 187 | if type(Real[Index]) == "function" then | |
| 188 | if Index:lower() == "clone" then | |
| 189 | return function (self) | |
| 190 | local Real = Real:Clone() | |
| 191 | local ToReturn = setmetatable({},{
| |
| 192 | __index = function (self,Index) | |
| 193 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 194 | return Real[Index] | |
| 195 | end; | |
| 196 | __newindex = function (self,Index,Value) | |
| 197 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 198 | if Value == owner then Value = InternalData.RealOwner end | |
| 199 | Real[Index] = Value | |
| 200 | end; | |
| 201 | __tostring = function(self) return tostring(Real) end; | |
| 202 | }) | |
| 203 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 204 | end | |
| 205 | end | |
| 206 | return function (self,...) return Real[Index](Real,...)end | |
| 207 | end | |
| 208 | return Real[Index] | |
| 209 | end; | |
| 210 | __newindex = function (self,Index,Value) | |
| 211 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 212 | if Value == owner then Value = InternalData.RealOwner end | |
| 213 | Real[Index] = Value | |
| 214 | end; | |
| 215 | __tostring = function(self) return tostring(Real) end; | |
| 216 | }) | |
| 217 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 218 | end | |
| 219 | end | |
| 220 | end | |
| 221 | return InternalData.RealInstance[Index] | |
| 222 | end; | |
| 223 | __tostring = function(self) return tostring(InternalData.RealInstance) end; | |
| 224 | }); | |
| 225 | InternalData.RealGame = game;game = setmetatable({},{
| |
| 226 | __index = function (self,Index) | |
| 227 | if InternalData.RealGame[Index] then | |
| 228 | local Type = type(InternalData.RealGame[Index]) | |
| 229 | if Type == "function" then | |
| 230 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 231 | return function (self,Service) | |
| 232 | local FakeServices = {
| |
| 233 | ["players"] = function() | |
| 234 | return setmetatable({},{
| |
| 235 | __index = function (self2,Index2) | |
| 236 | local RealService = InternalData.RealGame:GetService(Service) | |
| 237 | local Type2 = type(RealService[Index2]) | |
| 238 | if Type2 == "function" then | |
| 239 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 240 | else | |
| 241 | if Index2:lower() == "localplayer" then return InternalData.NewOwner end | |
| 242 | return RealService[Index2] | |
| 243 | end | |
| 244 | end; | |
| 245 | __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end | |
| 246 | }) | |
| 247 | end; | |
| 248 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 249 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 250 | ["debris"] = function() | |
| 251 | return setmetatable({},{
| |
| 252 | __index = function(self2,Index2) | |
| 253 | local RealService = InternalData.RealGame:GetService(Service) | |
| 254 | local Type2 = type(RealService[Index2]) | |
| 255 | if Type2 == "function" then | |
| 256 | if Index2:lower() == "additem" then | |
| 257 | return function (self,Item,Time) | |
| 258 | if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end | |
| 259 | return RealService:AddItem(Item,Time) | |
| 260 | end | |
| 261 | end | |
| 262 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 263 | end | |
| 264 | return RealService[Index2] | |
| 265 | end; | |
| 266 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
| |
| 267 | }) | |
| 268 | end; | |
| 269 | ["runservice"] = function() | |
| 270 | return setmetatable({},{
| |
| 271 | __index = function(self2,Index2) | |
| 272 | local RealService = InternalData.RealGame:GetService(Service) | |
| 273 | local Type2 = type(RealService[Index2]) | |
| 274 | if Type2 == "function" then | |
| 275 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 276 | else | |
| 277 | local RunServices = {
| |
| 278 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 279 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 280 | } | |
| 281 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 282 | return RealService[Index2] | |
| 283 | end | |
| 284 | end; | |
| 285 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
| |
| 286 | }) | |
| 287 | end | |
| 288 | } | |
| 289 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 290 | return InternalData.RealGame:GetService(Service) | |
| 291 | end | |
| 292 | end | |
| 293 | return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end | |
| 294 | else | |
| 295 | if game:GetService(Index) then return game:GetService(Index) end | |
| 296 | return InternalData.RealGame[Index] | |
| 297 | end | |
| 298 | end | |
| 299 | return nil | |
| 300 | end; | |
| 301 | __tostring = function(self) return tostring(InternalData.game) end | |
| 302 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
| |
| 303 | ||
| 304 | script.Name = "Banisher Gun V3 / 1" | |
| 305 | --//====================================================\\-- | |
| 306 | --|| CREATED BY SHACKLUSTER | |
| 307 | --\\====================================================//-- | |
| 308 | ||
| 309 | script:ClearAllChildren() | |
| 310 | wait(0.2) | |
| 311 | ||
| 312 | Player = game:GetService("Players").LocalPlayer
| |
| 313 | PlayerGui = Player.PlayerGui | |
| 314 | Cam = workspace.CurrentCamera | |
| 315 | Backpack = Player.Backpack | |
| 316 | Character = Player.Character | |
| 317 | Humanoid = Character.Humanoid | |
| 318 | Mouse = Player:GetMouse() | |
| 319 | RootPart = Character["HumanoidRootPart"] | |
| 320 | Torso = Character["Torso"] | |
| 321 | Head = Character["Head"] | |
| 322 | RightArm = Character["Right Arm"] | |
| 323 | LeftArm = Character["Left Arm"] | |
| 324 | RightLeg = Character["Right Leg"] | |
| 325 | LeftLeg = Character["Left Leg"] | |
| 326 | RootJoint = RootPart["RootJoint"] | |
| 327 | Neck = Torso["Neck"] | |
| 328 | RightShoulder = Torso["Right Shoulder"] | |
| 329 | LeftShoulder = Torso["Left Shoulder"] | |
| 330 | RightHip = Torso["Right Hip"] | |
| 331 | LeftHip = Torso["Left Hip"] | |
| 332 | local TIME = 0 | |
| 333 | local sick = Instance.new("Sound",Torso)
| |
| 334 | ||
| 335 | IT = Instance.new | |
| 336 | CF = CFrame.new | |
| 337 | VT = Vector3.new | |
| 338 | RAD = math.rad | |
| 339 | C3 = Color3.new | |
| 340 | UD2 = UDim2.new | |
| 341 | BRICKC = BrickColor.new | |
| 342 | ANGLES = CFrame.Angles | |
| 343 | EULER = CFrame.fromEulerAnglesXYZ | |
| 344 | COS = math.cos | |
| 345 | ACOS = math.acos | |
| 346 | SIN = math.sin | |
| 347 | ASIN = math.asin | |
| 348 | ABS = math.abs | |
| 349 | MRANDOM = math.random | |
| 350 | FLOOR = math.floor | |
| 351 | ||
| 352 | --//=================================\\ | |
| 353 | --|| USEFUL VALUES | |
| 354 | --\\=================================// | |
| 355 | ||
| 356 | Animation_Speed = 3 | |
| 357 | local FORCERESET = false | |
| 358 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 359 | local Speed = 16 | |
| 360 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 361 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 362 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 363 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 364 | local DAMAGEMULTIPLIER = 1 | |
| 365 | local ANIM = "Idle" | |
| 366 | local ATTACK = false | |
| 367 | local EQUIPPED = false | |
| 368 | local HOLD = false | |
| 369 | local COMBO = 1 | |
| 370 | local Rooted = false | |
| 371 | local SINE = 0 | |
| 372 | local KEYHOLD = false | |
| 373 | local CHANGE = 2 / Animation_Speed | |
| 374 | local WALKINGANIM = false | |
| 375 | local WALK = 0 | |
| 376 | local VALUE1 = false | |
| 377 | local VALUE2 = false | |
| 378 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 379 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 380 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 381 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 382 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 383 | WEAPONGUI.Name = "BanishV3Gui" | |
| 384 | local Weapon = IT("Model")
| |
| 385 | Weapon.Name = "Adds" | |
| 386 | local Effects = IT("Folder", Weapon)
| |
| 387 | Effects.Name = "Effects" | |
| 388 | local Weapon2 = IT("Model")
| |
| 389 | Weapon2.Name = "Adds" | |
| 390 | local Effects = IT("Folder", Weapon2)
| |
| 391 | Effects.Name = "Effects" | |
| 392 | local Weapon3 = IT("Model")
| |
| 393 | Weapon3.Name = "Adds" | |
| 394 | local Effects = IT("Folder", Weapon3)
| |
| 395 | Effects.Name = "Effects" | |
| 396 | local Weapon4 = IT("Model")
| |
| 397 | Weapon4.Name = "Adds" | |
| 398 | local Effects = IT("Folder", Weapon4)
| |
| 399 | Effects.Name = "Effects" | |
| 400 | local Weapon5 = IT("Model")
| |
| 401 | Weapon5.Name = "Adds" | |
| 402 | local Effects = IT("Folder", Weapon5)
| |
| 403 | Effects.Name = "Effects" | |
| 404 | local Weapon6 = IT("Model")
| |
| 405 | Weapon6.Name = "Adds" | |
| 406 | local Effects = IT("Folder", Weapon6)
| |
| 407 | Effects.Name = "Effects" | |
| 408 | local Weapon7 = IT("Model")
| |
| 409 | Weapon7.Name = "Adds" | |
| 410 | local Effects = IT("Folder", Weapon7)
| |
| 411 | Effects.Name = "Effects" | |
| 412 | local ANIMATOR = Humanoid.Animator | |
| 413 | local ANIMATE = Character:FindFirstChild("Animate")
| |
| 414 | local UNANCHOR = true | |
| 415 | local TOBANISH = {}
| |
| 416 | local SIZE = 1 | |
| 417 | local INSTANT = false | |
| 418 | local INTRO = false | |
| 419 | local Player_Size = 1 | |
| 420 | script.Parent = PlayerGui | |
| 421 | ||
| 422 | --//=================================\\ | |
| 423 | --\\=================================// | |
| 424 | ||
| 425 | ||
| 426 | --//=================================\\ | |
| 427 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 428 | --\\=================================// | |
| 429 | ||
| 430 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 431 | ArtificialHB.Name = "ArtificialHB" | |
| 432 | ||
| 433 | script:WaitForChild("ArtificialHB")
| |
| 434 | ||
| 435 | frame = Frame_Speed | |
| 436 | tf = 0 | |
| 437 | allowframeloss = false | |
| 438 | tossremainder = false | |
| 439 | lastframe = tick() | |
| 440 | script.ArtificialHB:Fire() | |
| 441 | ||
| 442 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 443 | tf = tf + s | |
| 444 | if tf >= frame then | |
| 445 | if allowframeloss then | |
| 446 | script.ArtificialHB:Fire() | |
| 447 | lastframe = tick() | |
| 448 | else | |
| 449 | for i = 1, math.floor(tf / frame) do | |
| 450 | script.ArtificialHB:Fire() | |
| 451 | end | |
| 452 | lastframe = tick() | |
| 453 | end | |
| 454 | if tossremainder then | |
| 455 | tf = 0 | |
| 456 | else | |
| 457 | tf = tf - frame * math.floor(tf / frame) | |
| 458 | end | |
| 459 | end | |
| 460 | end) | |
| 461 | ||
| 462 | --//=================================\\ | |
| 463 | --\\=================================// | |
| 464 | ||
| 465 | --//=================================\\ | |
| 466 | --|| SOME FUNCTIONS | |
| 467 | --\\=================================// | |
| 468 | ||
| 469 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 470 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 471 | end | |
| 472 | ||
| 473 | function PositiveAngle(NUMBER) | |
| 474 | if NUMBER >= 0 then | |
| 475 | NUMBER = 0 | |
| 476 | end | |
| 477 | return NUMBER | |
| 478 | end | |
| 479 | ||
| 480 | function NegativeAngle(NUMBER) | |
| 481 | if NUMBER <= 0 then | |
| 482 | NUMBER = 0 | |
| 483 | end | |
| 484 | return NUMBER | |
| 485 | end | |
| 486 | ||
| 487 | function Swait(NUMBER) | |
| 488 | if NUMBER == 0 or NUMBER == nil then | |
| 489 | ArtificialHB.Event:wait() | |
| 490 | else | |
| 491 | for i = 1, NUMBER do | |
| 492 | ArtificialHB.Event:wait() | |
| 493 | end | |
| 494 | end | |
| 495 | end | |
| 496 | ||
| 497 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 498 | local NEWMESH = IT(MESH) | |
| 499 | if MESH == "SpecialMesh" then | |
| 500 | NEWMESH.MeshType = MESHTYPE | |
| 501 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 502 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 503 | end | |
| 504 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 505 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 506 | end | |
| 507 | end | |
| 508 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 509 | NEWMESH.Scale = SCALE | |
| 510 | NEWMESH.Parent = PARENT | |
| 511 | return NEWMESH | |
| 512 | end | |
| 513 | ||
| 514 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 515 | local NEWPART = IT("Part")
| |
| 516 | NEWPART.formFactor = FORMFACTOR | |
| 517 | NEWPART.Reflectance = REFLECTANCE | |
| 518 | NEWPART.Transparency = TRANSPARENCY | |
| 519 | NEWPART.CanCollide = false | |
| 520 | NEWPART.Locked = true | |
| 521 | NEWPART.Anchored = true | |
| 522 | if ANCHOR == false then | |
| 523 | NEWPART.Anchored = false | |
| 524 | end | |
| 525 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 526 | NEWPART.Name = NAME | |
| 527 | NEWPART.Size = SIZE | |
| 528 | NEWPART.Position = Torso.Position | |
| 529 | NEWPART.Material = MATERIAL | |
| 530 | NEWPART:BreakJoints() | |
| 531 | NEWPART.Parent = PARENT | |
| 532 | return NEWPART | |
| 533 | end | |
| 534 | ||
| 535 | local function weldBetween(a, b) | |
| 536 | local weldd = Instance.new("ManualWeld")
| |
| 537 | weldd.Part0 = a | |
| 538 | weldd.Part1 = b | |
| 539 | weldd.C0 = CFrame.new() | |
| 540 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 541 | weldd.Parent = a | |
| 542 | return weldd | |
| 543 | end | |
| 544 | ||
| 545 | ||
| 546 | function QuaternionFromCFrame(cf) | |
| 547 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 548 | local trace = m00 + m11 + m22 | |
| 549 | if trace > 0 then | |
| 550 | local s = math.sqrt(1 + trace) | |
| 551 | local recip = 0.5 / s | |
| 552 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 553 | else | |
| 554 | local i = 0 | |
| 555 | if m11 > m00 then | |
| 556 | i = 1 | |
| 557 | end | |
| 558 | if m22 > (i == 0 and m00 or m11) then | |
| 559 | i = 2 | |
| 560 | end | |
| 561 | if i == 0 then | |
| 562 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 563 | local recip = 0.5 / s | |
| 564 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 565 | elseif i == 1 then | |
| 566 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 567 | local recip = 0.5 / s | |
| 568 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 569 | elseif i == 2 then | |
| 570 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 571 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 572 | end | |
| 573 | end | |
| 574 | end | |
| 575 | ||
| 576 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 577 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
| 578 | local mesh = IT("SpecialMesh",wave)
| |
| 579 | mesh.MeshType = "Sphere" | |
| 580 | mesh.Scale = SIZE | |
| 581 | mesh.Offset = VT(0,0,0) | |
| 582 | wave.CFrame = CFRAME | |
| 583 | coroutine.resume(coroutine.create(function(PART) | |
| 584 | for i = 1, WAIT do | |
| 585 | Swait() | |
| 586 | mesh.Scale = mesh.Scale + GROW | |
| 587 | wave.Transparency = wave.Transparency + (1/WAIT) | |
| 588 | if wave.Transparency > 0.99 then | |
| 589 | wave:remove() | |
| 590 | end | |
| 591 | end | |
| 592 | end)) | |
| 593 | end | |
| 594 | ||
| 595 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 596 | local xs, ys, zs = x + x, y + y, z + z | |
| 597 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 598 | local xx = x * xs | |
| 599 | local xy = x * ys | |
| 600 | local xz = x * zs | |
| 601 | local yy = y * ys | |
| 602 | local yz = y * zs | |
| 603 | local zz = z * zs | |
| 604 | 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)) | |
| 605 | end | |
| 606 | ||
| 607 | function QuaternionSlerp(a, b, t) | |
| 608 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 609 | local startInterp, finishInterp; | |
| 610 | if cosTheta >= 0.0001 then | |
| 611 | if (1 - cosTheta) > 0.0001 then | |
| 612 | local theta = ACOS(cosTheta) | |
| 613 | local invSinTheta = 1 / SIN(theta) | |
| 614 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 615 | finishInterp = SIN(t * theta) * invSinTheta | |
| 616 | else | |
| 617 | startInterp = 1 - t | |
| 618 | finishInterp = t | |
| 619 | end | |
| 620 | else | |
| 621 | if (1 + cosTheta) > 0.0001 then | |
| 622 | local theta = ACOS(-cosTheta) | |
| 623 | local invSinTheta = 1 / SIN(theta) | |
| 624 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 625 | finishInterp = SIN(t * theta) * invSinTheta | |
| 626 | else | |
| 627 | startInterp = t - 1 | |
| 628 | finishInterp = t | |
| 629 | end | |
| 630 | end | |
| 631 | 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 | |
| 632 | end | |
| 633 | ||
| 634 | function Clerp(a, b, t) | |
| 635 | local qa = {QuaternionFromCFrame(a)}
| |
| 636 | local qb = {QuaternionFromCFrame(b)}
| |
| 637 | local ax, ay, az = a.x, a.y, a.z | |
| 638 | local bx, by, bz = b.x, b.y, b.z | |
| 639 | local _t = 1 - t | |
| 640 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 641 | end | |
| 642 | ||
| 643 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 644 | local frame = IT("Frame")
| |
| 645 | frame.BackgroundTransparency = TRANSPARENCY | |
| 646 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 647 | frame.Position = POSITION | |
| 648 | frame.Size = SIZE | |
| 649 | frame.BackgroundColor3 = COLOR | |
| 650 | frame.BorderColor3 = BORDERCOLOR | |
| 651 | frame.Name = NAME | |
| 652 | frame.Parent = PARENT | |
| 653 | return frame | |
| 654 | end | |
| 655 | ||
| 656 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 657 | local label = IT("TextLabel")
| |
| 658 | label.BackgroundTransparency = 1 | |
| 659 | label.Size = UD2(1, 0, 1, 0) | |
| 660 | label.Position = UD2(0, 0, 0, 0) | |
| 661 | label.TextColor3 = TEXTCOLOR | |
| 662 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 663 | label.TextTransparency = TRANSPARENCY | |
| 664 | label.FontSize = TEXTFONTSIZE | |
| 665 | label.Font = TEXTFONT | |
| 666 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 667 | label.TextScaled = false | |
| 668 | label.Text = TEXT | |
| 669 | label.Name = NAME | |
| 670 | label.Parent = PARENT | |
| 671 | return label | |
| 672 | end | |
| 673 | ||
| 674 | function NoOutlines(PART) | |
| 675 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 676 | end | |
| 677 | ||
| 678 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 679 | local NEWWELD = IT(TYPE) | |
| 680 | NEWWELD.Part0 = PART0 | |
| 681 | NEWWELD.Part1 = PART1 | |
| 682 | NEWWELD.C0 = C0 | |
| 683 | NEWWELD.C1 = C1 | |
| 684 | NEWWELD.Parent = PARENT | |
| 685 | return NEWWELD | |
| 686 | end | |
| 687 | ||
| 688 | local S = IT("Sound")
| |
| 689 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 690 | local NEWSOUND = nil | |
| 691 | coroutine.resume(coroutine.create(function() | |
| 692 | NEWSOUND = S:Clone() | |
| 693 | NEWSOUND.Parent = PARENT | |
| 694 | NEWSOUND.Volume = VOLUME | |
| 695 | NEWSOUND.Pitch = PITCH | |
| 696 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 697 | NEWSOUND:play() | |
| 698 | if DOESLOOP == true then | |
| 699 | NEWSOUND.Looped = true | |
| 700 | else | |
| 701 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
| 702 | NEWSOUND:remove() | |
| 703 | end | |
| 704 | end)) | |
| 705 | return NEWSOUND | |
| 706 | end | |
| 707 | ||
| 708 | function CFrameFromTopBack(at, top, back) | |
| 709 | local right = top:Cross(back) | |
| 710 | 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) | |
| 711 | end | |
| 712 | ||
| 713 | function CamShake(SHAKE,TIMER) | |
| 714 | coroutine.resume(coroutine.create(function() | |
| 715 | local FADER = SHAKE/TIMER | |
| 716 | for i = 1, TIMER do | |
| 717 | wait() | |
| 718 | Humanoid.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10) | |
| 719 | end | |
| 720 | Humanoid.CameraOffset = VT(0,0,0) | |
| 721 | end)) | |
| 722 | end | |
| 723 | ||
| 724 | --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})
| |
| 725 | function WACKYEFFECT(Table) | |
| 726 | local TYPE = (Table.EffectType or "Sphere") | |
| 727 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 728 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 729 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 730 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 731 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 732 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 733 | local ROTATION1 = (Table.RotationX or 0) | |
| 734 | local ROTATION2 = (Table.RotationY or 0) | |
| 735 | local ROTATION3 = (Table.RotationZ or 0) | |
| 736 | local MATERIAL = (Table.Material or "Neon") | |
| 737 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 738 | local TIME = (Table.Time or 45) | |
| 739 | local SOUNDID = (Table.SoundID or nil) | |
| 740 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 741 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 742 | coroutine.resume(coroutine.create(function() | |
| 743 | local PLAYSSOUND = false | |
| 744 | local SOUND = nil | |
| 745 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 746 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 747 | PLAYSSOUND = true | |
| 748 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 749 | end | |
| 750 | EFFECT.Color = COLOR | |
| 751 | local MSH = nil | |
| 752 | if TYPE == "Sphere" then | |
| 753 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 754 | elseif TYPE == "Block" then | |
| 755 | MSH = IT("BlockMesh",EFFECT)
| |
| 756 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 757 | elseif TYPE == "Wave" then | |
| 758 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 759 | elseif TYPE == "Ring" then | |
| 760 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 761 | elseif TYPE == "Slash" then | |
| 762 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 763 | elseif TYPE == "Round Slash" then | |
| 764 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 765 | elseif TYPE == "Swirl" then | |
| 766 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 767 | elseif TYPE == "Skull" then | |
| 768 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 769 | elseif TYPE == "Crystal" then | |
| 770 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 771 | end | |
| 772 | if MSH ~= nil then | |
| 773 | local MOVESPEED = nil | |
| 774 | if MOVEDIRECTION ~= nil then | |
| 775 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 776 | end | |
| 777 | local GROWTH = SIZE - ENDSIZE | |
| 778 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 779 | if TYPE == "Block" then | |
| 780 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 781 | else | |
| 782 | EFFECT.CFrame = CFRAME | |
| 783 | end | |
| 784 | for LOOP = 1, TIME+1 do | |
| 785 | Swait() | |
| 786 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 787 | if TYPE == "Wave" then | |
| 788 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 789 | end | |
| 790 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 791 | if TYPE == "Block" then | |
| 792 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 793 | else | |
| 794 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 795 | end | |
| 796 | if MOVEDIRECTION ~= nil then | |
| 797 | local ORI = EFFECT.Orientation | |
| 798 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 799 | EFFECT.Orientation = ORI | |
| 800 | end | |
| 801 | end | |
| 802 | if PLAYSSOUND == false then | |
| 803 | EFFECT:remove() | |
| 804 | else | |
| 805 | SOUND.Stopped:Connect(function() | |
| 806 | EFFECT:remove() | |
| 807 | end) | |
| 808 | end | |
| 809 | else | |
| 810 | if PLAYSSOUND == false then | |
| 811 | EFFECT:remove() | |
| 812 | else | |
| 813 | repeat Swait() until SOUND.Playing == false | |
| 814 | EFFECT:remove() | |
| 815 | end | |
| 816 | end | |
| 817 | end)) | |
| 818 | end | |
| 819 | ||
| 820 | function MakeForm(PART,TYPE) | |
| 821 | if TYPE == "Cyl" then | |
| 822 | local MSH = IT("CylinderMesh",PART)
| |
| 823 | elseif TYPE == "Ball" then | |
| 824 | local MSH = IT("SpecialMesh",PART)
| |
| 825 | MSH.MeshType = "Sphere" | |
| 826 | elseif TYPE == "Wedge" then | |
| 827 | local MSH = IT("SpecialMesh",PART)
| |
| 828 | MSH.MeshType = "Wedge" | |
| 829 | end | |
| 830 | end | |
| 831 | ||
| 832 | function SpawnTrail(FROM,TO,BIG) | |
| 833 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
| 834 | MakeForm(TRAIL,"Cyl") | |
| 835 | local DIST = (FROM - TO).Magnitude | |
| 836 | if BIG == true then | |
| 837 | TRAIL.Size = VT(0.5,DIST,0.5) | |
| 838 | else | |
| 839 | TRAIL.Size = VT(0.25,DIST,0.25) | |
| 840 | end | |
| 841 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 842 | coroutine.resume(coroutine.create(function() | |
| 843 | for i = 1, 5 do | |
| 844 | Swait() | |
| 845 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 846 | end | |
| 847 | TRAIL:remove() | |
| 848 | end)) | |
| 849 | end | |
| 850 | ||
| 851 | Debris = game:GetService("Debris")
| |
| 852 | ||
| 853 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 854 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 855 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 856 | end | |
| 857 | ||
| 858 | function turnto(position) | |
| 859 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 860 | end | |
| 861 | ||
| 862 | --//=================================\\ | |
| 863 | --|| WEAPON CREATION | |
| 864 | --\\=================================// | |
| 865 | ||
| 866 | ||
| 867 | ||
| 868 | local Particle = IT("ParticleEmitter",nil)
| |
| 869 | Particle.Enabled = false | |
| 870 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
| |
| 871 | Particle.LightEmission = 0.5 | |
| 872 | Particle.Rate = 150 | |
| 873 | Particle.ZOffset = 0.2 | |
| 874 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 875 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
| 876 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
| 877 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(1.5,0,1)) | |
| 878 | ||
| 879 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
| |
| 880 | function ParticleEmitter(Table) | |
| 881 | local PRTCL = Particle:Clone() | |
| 882 | local Speed = Table.Speed or 5 | |
| 883 | local Drag = Table.Drag or 0 | |
| 884 | local Size1 = Table.Size1 or 1 | |
| 885 | local Size2 = Table.Size2 or 5 | |
| 886 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 887 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 888 | local Parent = Table.Parent or Torso | |
| 889 | local Emit = Table.Emit or 100 | |
| 890 | local Offset = Table.Offset or 360 | |
| 891 | local Acel = Table.Acel or VT(0,0,0) | |
| 892 | local Enabled = Table.Enabled or false | |
| 893 | PRTCL.Parent = Parent | |
| 894 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 895 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 896 | PRTCL.Speed = NumberRange.new(Speed) | |
| 897 | PRTCL.VelocitySpread = Offset | |
| 898 | PRTCL.Drag = Drag | |
| 899 | PRTCL.Acceleration = Acel | |
| 900 | if Enabled == false then | |
| 901 | PRTCL:Emit(Emit) | |
| 902 | Debris:AddItem(PRTCL,Lifetime2) | |
| 903 | else | |
| 904 | PRTCL.Enabled = true | |
| 905 | end | |
| 906 | return PRTCL | |
| 907 | end | |
| 908 | ||
| 909 | ||
| 910 | ||
| 911 | local Handle = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
| 912 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 913 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 914 | MakeForm(Part,"Wedge") | |
| 915 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 916 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 917 | MakeForm(Part,"Wedge") | |
| 918 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 919 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 920 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 921 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 922 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 923 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 924 | MakeForm(Part,"Cyl") | |
| 925 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 926 | for i = 1, 8 do | |
| 927 | local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 928 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 929 | end | |
| 930 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 931 | MakeForm(Part,"Cyl") | |
| 932 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 933 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 934 | MakeForm(Part,"Ball") | |
| 935 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 936 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 937 | MakeForm(Part,"Wedge") | |
| 938 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 939 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 940 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 941 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 942 | MakeForm(Part,"Cyl") | |
| 943 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 944 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 945 | MakeForm(Part,"Cyl") | |
| 946 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 947 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 948 | MakeForm(Part,"Cyl") | |
| 949 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 950 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 951 | MakeForm(Part,"Wedge") | |
| 952 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 953 | local LASTPART = Handle | |
| 954 | for i = 1, 10 do | |
| 955 | if LASTPART == Handle then | |
| 956 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 957 | LASTPART = Part | |
| 958 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 959 | else | |
| 960 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 961 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 962 | LASTPART = Part | |
| 963 | end | |
| 964 | end | |
| 965 | ||
| 966 | local Barrel = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 967 | MakeForm(Barrel,"Cyl") | |
| 968 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 969 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 970 | MakeForm(Part,"Cyl") | |
| 971 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 972 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 973 | MakeForm(Part,"Wedge") | |
| 974 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 975 | local Hole2 = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 976 | MakeForm(Hole2,"Cyl") | |
| 977 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 978 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 979 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 980 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 981 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 982 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 983 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 984 | coroutine.resume(coroutine.create(function() | |
| 985 | while wait() do | |
| 986 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 987 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 988 | end | |
| 989 | end)) | |
| 990 | ---------- | |
| 991 | ||
| 992 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
| 993 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 994 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 995 | MakeForm(Part,"Wedge") | |
| 996 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 997 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 998 | MakeForm(Part,"Wedge") | |
| 999 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 1000 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 1001 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1002 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 1003 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1004 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 1005 | MakeForm(Part,"Cyl") | |
| 1006 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1007 | for i = 1, 8 do | |
| 1008 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 1009 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 1010 | end | |
| 1011 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 1012 | MakeForm(Part,"Cyl") | |
| 1013 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1014 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 1015 | MakeForm(Part,"Ball") | |
| 1016 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1017 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 1018 | MakeForm(Part,"Wedge") | |
| 1019 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 1020 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 1021 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1022 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 1023 | MakeForm(Part,"Cyl") | |
| 1024 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1025 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 1026 | MakeForm(Part,"Cyl") | |
| 1027 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1028 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 1029 | MakeForm(Part,"Cyl") | |
| 1030 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1031 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 1032 | MakeForm(Part,"Wedge") | |
| 1033 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 1034 | local LASTPART = Handle | |
| 1035 | for i = 1, 10 do | |
| 1036 | if LASTPART == Handle then | |
| 1037 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 1038 | LASTPART = Part | |
| 1039 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1040 | else | |
| 1041 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 1042 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 1043 | LASTPART = Part | |
| 1044 | end | |
| 1045 | end | |
| 1046 | ||
| 1047 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 1048 | MakeForm(Barrel,"Cyl") | |
| 1049 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1050 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 1051 | MakeForm(Part,"Cyl") | |
| 1052 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 1053 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 1054 | MakeForm(Part,"Wedge") | |
| 1055 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1056 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 1057 | MakeForm(Hole,"Cyl") | |
| 1058 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 1059 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 1060 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 1061 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 1062 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 1063 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 1064 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 1065 | coroutine.resume(coroutine.create(function() | |
| 1066 | while wait() do | |
| 1067 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 1068 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 1069 | end | |
| 1070 | end)) | |
| 1071 | ||
| 1072 | ||
| 1073 | ---epic | |
| 1074 | local Handle = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
| 1075 | local Right42ArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(5,0, 0.5) * ANGLES(RAD(180), RAD(0), RAD(-15 - 13 * SIN(SINE / 12))), CF(0, 0.21, 0))
| |
| 1076 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 1077 | MakeForm(Part,"Wedge") | |
| 1078 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 1079 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 1080 | MakeForm(Part,"Wedge") | |
| 1081 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 1082 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 1083 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1084 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 1085 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1086 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 1087 | MakeForm(Part,"Cyl") | |
| 1088 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1089 | for i = 1, 8 do | |
| 1090 | local Piece = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 1091 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 1092 | end | |
| 1093 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 1094 | MakeForm(Part,"Cyl") | |
| 1095 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1096 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 1097 | MakeForm(Part,"Ball") | |
| 1098 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1099 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 1100 | MakeForm(Part,"Wedge") | |
| 1101 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 1102 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 1103 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1104 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 1105 | MakeForm(Part,"Cyl") | |
| 1106 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1107 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 1108 | MakeForm(Part,"Cyl") | |
| 1109 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1110 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 1111 | MakeForm(Part,"Cyl") | |
| 1112 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1113 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 1114 | MakeForm(Part,"Wedge") | |
| 1115 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 1116 | local LASTPART = Handle | |
| 1117 | for i = 1, 10 do | |
| 1118 | if LASTPART == Handle then | |
| 1119 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 1120 | LASTPART = Part | |
| 1121 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1122 | else | |
| 1123 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 1124 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 1125 | LASTPART = Part | |
| 1126 | end | |
| 1127 | end | |
| 1128 | ||
| 1129 | local Barrel = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 1130 | MakeForm(Barrel,"Cyl") | |
| 1131 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1132 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 1133 | MakeForm(Part,"Cyl") | |
| 1134 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 1135 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 1136 | MakeForm(Part,"Wedge") | |
| 1137 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1138 | local Hole4 = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 1139 | MakeForm(Hole4,"Cyl") | |
| 1140 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole4, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 1141 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 1142 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 1143 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 1144 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 1145 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 1146 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 1147 | coroutine.resume(coroutine.create(function() | |
| 1148 | while wait() do | |
| 1149 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 1150 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 1151 | end | |
| 1152 | end)) | |
| 1153 | ----epic | |
| 1154 | ||
| 1155 | local Handle = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
| 1156 | local Left12ArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(-5,0, 0.5) * ANGLES(RAD(180), RAD(0), RAD(15 - 13 * SIN(SINE / 12))), CF(0, 0.21, 0))
| |
| 1157 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 1158 | MakeForm(Part,"Wedge") | |
| 1159 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 1160 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 1161 | MakeForm(Part,"Wedge") | |
| 1162 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 1163 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 1164 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1165 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 1166 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1167 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 1168 | MakeForm(Part,"Cyl") | |
| 1169 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1170 | for i = 1, 8 do | |
| 1171 | local Piece = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 1172 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 1173 | end | |
| 1174 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 1175 | MakeForm(Part,"Cyl") | |
| 1176 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1177 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 1178 | MakeForm(Part,"Ball") | |
| 1179 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1180 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 1181 | MakeForm(Part,"Wedge") | |
| 1182 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 1183 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 1184 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1185 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 1186 | MakeForm(Part,"Cyl") | |
| 1187 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1188 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 1189 | MakeForm(Part,"Cyl") | |
| 1190 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1191 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 1192 | MakeForm(Part,"Cyl") | |
| 1193 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1194 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 1195 | MakeForm(Part,"Wedge") | |
| 1196 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 1197 | local LASTPART = Handle | |
| 1198 | for i = 1, 10 do | |
| 1199 | if LASTPART == Handle then | |
| 1200 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 1201 | LASTPART = Part | |
| 1202 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1203 | else | |
| 1204 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 1205 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 1206 | LASTPART = Part | |
| 1207 | end | |
| 1208 | end | |
| 1209 | ||
| 1210 | local Barrel = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 1211 | MakeForm(Barrel,"Cyl") | |
| 1212 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1213 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 1214 | MakeForm(Part,"Cyl") | |
| 1215 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 1216 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 1217 | MakeForm(Part,"Wedge") | |
| 1218 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1219 | local Hole3 = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 1220 | MakeForm(Hole3,"Cyl") | |
| 1221 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole3, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 1222 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 1223 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 1224 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 1225 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 1226 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 1227 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 1228 | coroutine.resume(coroutine.create(function() | |
| 1229 | while wait() do | |
| 1230 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 1231 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 1232 | end | |
| 1233 | end)) | |
| 1234 | ||
| 1235 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole6, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)})
| |
| 1236 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole5, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)})
| |
| 1237 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole4, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)})
| |
| 1238 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole3, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)})
| |
| 1239 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole2, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)})
| |
| 1240 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)})
| |
| 1241 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 1242 | ||
| 1243 | for _, c in pairs(Weapon:GetDescendants()) do | |
| 1244 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 1245 | c.Material = "Wood" | |
| 1246 | c.Color = C3(0,0,0) | |
| 1247 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 1248 | c.Color = C3(1,0,0) | |
| 1249 | c.Material = "Neon" | |
| 1250 | end | |
| 1251 | end | |
| 1252 | ||
| 1253 | for _, c in pairs(Weapon2:GetDescendants()) do | |
| 1254 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 1255 | c.Material = "Wood" | |
| 1256 | c.Color = C3(0,0,0) | |
| 1257 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 1258 | c.Color = C3(1,0,0) | |
| 1259 | c.Material = "Neon" | |
| 1260 | end | |
| 1261 | end | |
| 1262 | ||
| 1263 | Weapon7.Parent = nil | |
| 1264 | Weapon6.Parent = nil | |
| 1265 | Weapon5.Parent = nil | |
| 1266 | Weapon4.Parent = nil | |
| 1267 | Weapon2.Parent = nil | |
| 1268 | Weapon.Parent = nil | |
| 1269 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1270 | if c.ClassName == "Part" then | |
| 1271 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 1272 | end | |
| 1273 | end | |
| 1274 | ||
| 1275 | for _, c in pairs(Weapon2:GetChildren()) do | |
| 1276 | if c.ClassName == "Part" then | |
| 1277 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 1278 | end | |
| 1279 | end | |
| 1280 | ||
| 1281 | for _, c in pairs(Weapon4:GetChildren()) do | |
| 1282 | if c.ClassName == "Part" then | |
| 1283 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 1284 | end | |
| 1285 | end | |
| 1286 | ||
| 1287 | local SKILLTEXTCOLOR = C3(1.5,0,1) | |
| 1288 | local SKILLFONT = "Cartoon" | |
| 1289 | local SKILLTEXTSIZE = 7 | |
| 1290 | ||
| 1291 | Humanoid.Died:connect(function() | |
| 1292 | ATTACK = true | |
| 1293 | end) | |
| 1294 | ||
| 1295 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 1296 | --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 1297 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 1298 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
| 1299 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
| 1300 | ]] | |
| 1301 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "Edit By NameClan", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
| 1302 | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
| 1303 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
| 1304 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
| 1305 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
| 1306 | ]] | |
| 1307 | function printbye(Name) | |
| 1308 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
| |
| 1309 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
| 1310 | end | |
| 1311 | ||
| 1312 | workspace.ChildAdded:connect(function(instance) | |
| 1313 | for BANISH = 1, #TOBANISH do | |
| 1314 | if TOBANISH[BANISH] ~= nil then | |
| 1315 | if instance.Name == TOBANISH[BANISH] then | |
| 1316 | coroutine.resume(coroutine.create(function() | |
| 1317 | printbye(instance.Name) | |
| 1318 | instance:ClearAllChildren() | |
| 1319 | Debris:AddItem(instance,0.0005) | |
| 1320 | end)) | |
| 1321 | end | |
| 1322 | end | |
| 1323 | end | |
| 1324 | end) | |
| 1325 | ||
| 1326 | --//=================================\\ | |
| 1327 | --|| DAMAGING | |
| 1328 | --\\=================================// | |
| 1329 | ||
| 1330 | function Banish(Foe) | |
| 1331 | if Foe then | |
| 1332 | coroutine.resume(coroutine.create(function() | |
| 1333 | --if game.Players:FindFirstChild(Foe.Name) then | |
| 1334 | table.insert(TOBANISH,Foe.Name) | |
| 1335 | printbye(Foe.Name) | |
| 1336 | --end | |
| 1337 | Foe.Archivable = true | |
| 1338 | local CLONE = Foe:Clone() | |
| 1339 | Foe:Destroy() | |
| 1340 | CLONE.Parent = Effects | |
| 1341 | CLONE:BreakJoints() | |
| 1342 | local MATERIALS = {"Wood","Neon"}
| |
| 1343 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 1344 | if c:IsA("BasePart") then
| |
| 1345 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
| 1346 | CreateSound(340722848, c, 10, 1, false) | |
| 1347 | end | |
| 1348 | c.Anchored = true | |
| 1349 | c.Transparency = c.Transparency + 0.2 | |
| 1350 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 1351 | c.Color = C3(1,0,0) | |
| 1352 | if c.ClassName == "MeshPart" then | |
| 1353 | c.TextureID = "" | |
| 1354 | end | |
| 1355 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 1356 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 1357 | end | |
| 1358 | if c:FindFirstChildOfClass("Decal") then
| |
| 1359 | c:FindFirstChildOfClass("Decal"):remove()
| |
| 1360 | end | |
| 1361 | c.Name = "Banished" | |
| 1362 | c.CanCollide = false | |
| 1363 | else | |
| 1364 | c:remove() | |
| 1365 | end | |
| 1366 | end | |
| 1367 | local A = false | |
| 1368 | for i = 1, 35 do | |
| 1369 | if A == false then | |
| 1370 | A = true | |
| 1371 | elseif A == true then | |
| 1372 | A = false | |
| 1373 | end | |
| 1374 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 1375 | if c:IsA("BasePart") then
| |
| 1376 | c.Anchored = true | |
| 1377 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 1378 | c.Transparency = c.Transparency + 0.8/35 | |
| 1379 | if A == false then | |
| 1380 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 1381 | elseif A == true then | |
| 1382 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 1383 | end | |
| 1384 | end | |
| 1385 | end | |
| 1386 | Swait() | |
| 1387 | end | |
| 1388 | CLONE:remove() | |
| 1389 | end)) | |
| 1390 | end | |
| 1391 | end | |
| 1392 | ||
| 1393 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
| 1394 | local CHILDREN = workspace:GetDescendants() | |
| 1395 | for index, CHILD in pairs(CHILDREN) do | |
| 1396 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1397 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1398 | if HUM then | |
| 1399 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1400 | if TORSO then | |
| 1401 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 1402 | if ISBANISH == true then | |
| 1403 | Banish(CHILD) | |
| 1404 | else | |
| 1405 | if ISBANISH == "Gravity" then | |
| 1406 | HUM.PlatformStand = true | |
| 1407 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 1408 | local grav = Instance.new("BodyPosition",TORSO)
| |
| 1409 | grav.D = 15 | |
| 1410 | grav.P = 20000 | |
| 1411 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1412 | grav.position = TORSO.Position | |
| 1413 | grav.Name = "V3BanishForce"..Player.Name | |
| 1414 | else | |
| 1415 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
| |
| 1416 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
| 1417 | end | |
| 1418 | else | |
| 1419 | HUM.PlatformStand = false | |
| 1420 | end | |
| 1421 | end | |
| 1422 | elseif ISBANISH == "Gravity" then | |
| 1423 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 1424 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
| |
| 1425 | HUM.PlatformStand = false | |
| 1426 | end | |
| 1427 | end | |
| 1428 | end | |
| 1429 | end | |
| 1430 | end | |
| 1431 | end | |
| 1432 | end | |
| 1433 | ||
| 1434 | --//=================================\\ | |
| 1435 | --|| ATTACK FUNCTIONS AND STUFF | |
| 1436 | --\\=================================// | |
| 1437 | ||
| 1438 | function Intro() | |
| 1439 | ATTACK = true | |
| 1440 | Rooted = true | |
| 1441 | for i=0, 13, 0.1 / Animation_Speed do | |
| 1442 | Swait() | |
| 1443 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1444 | 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) | |
| 1445 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1446 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1447 | 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)), 1 / Animation_Speed) | |
| 1448 | 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)), 1 / Animation_Speed) | |
| 1449 | end | |
| 1450 | for i=0, 15, 0.1 / Animation_Speed do | |
| 1451 | Swait() | |
| 1452 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1453 | 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) | |
| 1454 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1455 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1456 | 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)), 1 / Animation_Speed) | |
| 1457 | 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)), 1 / Animation_Speed) | |
| 1458 | end | |
| 1459 | CamShake(4,4) | |
| 1460 | CreateSound(363808674, Torso, 6, 1, false) | |
| 1461 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1462 | Swait() | |
| 1463 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1464 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(45), RAD(0)), 1 / Animation_Speed) | |
| 1465 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1466 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1467 | 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)), 1 / Animation_Speed) | |
| 1468 | 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)), 1 / Animation_Speed) | |
| 1469 | end | |
| 1470 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1471 | Swait() | |
| 1472 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1473 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 1 / Animation_Speed) | |
| 1474 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1475 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1476 | 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)), 1 / Animation_Speed) | |
| 1477 | 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)), 1 / Animation_Speed) | |
| 1478 | end | |
| 1479 | MagicSphere(VT(0,0,0),3,Head.CFrame,"Really black",VT(2,2,2)) | |
| 1480 | Weapon7.Parent = Character | |
| 1481 | Weapon6.Parent = Character | |
| 1482 | Weapon5.Parent = Character | |
| 1483 | Weapon.Parent = Character | |
| 1484 | Weapon2.Parent = Character | |
| 1485 | Weapon3.Parent = Character | |
| 1486 | Weapon4.Parent = Character | |
| 1487 | for _, c in pairs(Character:GetChildren()) do | |
| 1488 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
| 1489 | c.Material = "Fabric" | |
| 1490 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 1491 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 1492 | end | |
| 1493 | if c ~= Head then | |
| 1494 | c.Color = C3(0,0,0) | |
| 1495 | else | |
| 1496 | c.Color = C3(1,1,1) | |
| 1497 | end | |
| 1498 | if c == Head then | |
| 1499 | if c:FindFirstChild("face") then
| |
| 1500 | c.face:remove() | |
| 1501 | end | |
| 1502 | end | |
| 1503 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
| 1504 | c:remove() | |
| 1505 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
| 1506 | c:remove() | |
| 1507 | end | |
| 1508 | end | |
| 1509 | MagicSphere(VT(0,0,0),3,Head.CFrame,"Really black",VT(2,2,2)) | |
| 1510 | Humanoid.DisplayDistanceType = "None" | |
| 1511 | local naeeym2 = IT("BillboardGui",Character)
| |
| 1512 | naeeym2.AlwaysOnTop = true | |
| 1513 | naeeym2.Size = UDim2.new(5,35,2,15) | |
| 1514 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
| 1515 | naeeym2.MaxDistance = 75 | |
| 1516 | naeeym2.Adornee = Character.Head | |
| 1517 | naeeym2.Name = "Name" | |
| 1518 | local tecks2 = IT("TextLabel",naeeym2)
| |
| 1519 | tecks2.BackgroundTransparency = 1 | |
| 1520 | tecks2.TextScaled = true | |
| 1521 | tecks2.BorderSizePixel = 0 | |
| 1522 | tecks2.Text = "Maniac Banish" | |
| 1523 | tecks2.Font = "Fantasy" | |
| 1524 | tecks2.TextSize = 30 | |
| 1525 | tecks2.TextStrokeTransparency = 0 | |
| 1526 | tecks2.TextColor3 = C3(1,1,1) | |
| 1527 | tecks2.TextStrokeColor3 = Color3.fromRGB(81, 62, 62) | |
| 1528 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 1529 | tecks2.Parent = naeeym2 | |
| 1530 | local top = Instance.new("Shirt")
| |
| 1531 | top.ShirtTemplate = "rbxassetid://1182218263" | |
| 1532 | top.Parent = Character | |
| 1533 | top.Name = "Cloth" | |
| 1534 | local bottom = Instance.new("Pants")
| |
| 1535 | bottom.PantsTemplate = "rbxassetid://1829011479" | |
| 1536 | bottom.Parent = Character | |
| 1537 | bottom.Name = "Cloth" | |
| 1538 | for i = 1, 16 do | |
| 1539 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false) | |
| 1540 | FACE.Color = C3(0,0,0) | |
| 1541 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
| |
| 1542 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
| |
| 1543 | end | |
| 1544 | local part = CreatePart(3, Weapon3, "Neon", 0, 0, "Really black", "Wistband part", VT(1.015,1.15,1.015),false) | |
| 1545 | local Caac = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0, -0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1546 | ||
| 1547 | local part = CreatePart(3, Weapon3, "Neon", 0, 0, "Really red", "Wistband part", VT(1.015,1.15,1.015),false) | |
| 1548 | local Caac = CreateWeldOrSnapOrMotor("Weld", part, LeftLeg, part, CF(0, -0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1549 | ||
| 1550 | local part = CreatePart(3, Weapon3, "Neon", 0, 0, "Lily white", "Wistband part", VT(1.015,1.15,1.015),false) | |
| 1551 | local Caac = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(0, -0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1552 | local part = CreatePart(3, Weapon3, "Neon", 0, 0, "Royal purple", "Wistband part", VT(1.015,1.15,1.015),false) | |
| 1553 | local Caac = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1554 | ||
| 1555 | ||
| 1556 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false) | |
| 1557 | MakeForm(EYE,"Ball") | |
| 1558 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
| |
| 1559 | local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false) | |
| 1560 | MakeForm(EYE2,"Ball") | |
| 1561 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
| |
| 1562 | local HAT1 = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(2,0.2,2),false) | |
| 1563 | MakeForm(HAT1,"Cyl") | |
| 1564 | HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
| |
| 1565 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(2.01,0.15,2.01),false) | |
| 1566 | BELT.Color = Color3.new(0,0,0) | |
| 1567 | MakeForm(BELT,"Cyl") | |
| 1568 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
| |
| 1569 | local HAT2 = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.3,2.2,1.3),false) | |
| 1570 | MakeForm(HAT2,"Cyl") | |
| 1571 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
| |
| 1572 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.31,0.2,1.31),false) | |
| 1573 | BELT.Color = Color3.new(0,0,0) | |
| 1574 | MakeForm(BELT,"Cyl") | |
| 1575 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
| |
| 1576 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lily white", "Gem", VT(0.25,0.25,0.1),false) | |
| 1577 | MakeForm(GEM,"Ball") | |
| 1578 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
| |
| 1579 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Royal purple", "Gem", VT(0.25,0.25,0.1),false) | |
| 1580 | MakeForm(GEM,"Ball") | |
| 1581 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
| |
| 1582 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gem", VT(0.1,0.25,0.25),false) | |
| 1583 | MakeForm(GEM,"Ball") | |
| 1584 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
| |
| 1585 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.1,0.25,0.25),false) | |
| 1586 | MakeForm(GEM,"Ball") | |
| 1587 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
| |
| 1588 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.31,0.1,1.31),false) | |
| 1589 | BELT.Color = Color3.new(0,0,0) | |
| 1590 | MakeForm(BELT,"Cyl") | |
| 1591 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
| |
| 1592 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.31,0.1,1.31),false) | |
| 1593 | BELT.Color = Color3.new(0,0,0) | |
| 1594 | MakeForm(BELT,"Cyl") | |
| 1595 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
| |
| 1596 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.31,0.1,1.31),false) | |
| 1597 | BELT.Color = Color3.new(0,0,0) | |
| 1598 | MakeForm(BELT,"Cyl") | |
| 1599 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
| |
| 1600 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.31,0.1,1.31),false) | |
| 1601 | BELT.Color = Color3.new(0,0,0) | |
| 1602 | MakeForm(BELT,"Cyl") | |
| 1603 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
| |
| 1604 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.3,0.5,1.3),false) | |
| 1605 | ||
| 1606 | MakeForm(BELT,"Ball") | |
| 1607 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
| |
| 1608 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
| 1609 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1610 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
| 1611 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 1612 | MakeForm(PRT,"Cyl") | |
| 1613 | local PRT = CreatePart(3, Weapon3, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
| 1614 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 1615 | MakeForm(PRT,"Cyl") | |
| 1616 | PRT.Color = Color3.fromRGB(0, 0, 0) | |
| 1617 | local RING = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
| 1618 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 1619 | MakeForm(RING,"Cyl") | |
| 1620 | RING.Color = Color3.fromRGB(81, 69, 69) | |
| 1621 | for i = 1, 12 do | |
| 1622 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
| 1623 | PRT.Color = C3(1,0,0) | |
| 1624 | local MSH = IT("BlockMesh",PRT)
| |
| 1625 | MSH.Scale = VT(0.6,1,1) | |
| 1626 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
| |
| 1627 | end | |
| 1628 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
| 1629 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1630 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
| 1631 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 1632 | MakeForm(PRT,"Cyl") | |
| 1633 | local PRT = CreatePart(3, Weapon3, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
| 1634 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 1635 | MakeForm(PRT,"Cyl") | |
| 1636 | PRT.Color = C3(159/255, 111/255, 183/255) | |
| 1637 | local RING = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
| 1638 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
| |
| 1639 | MakeForm(RING,"Cyl") | |
| 1640 | RING.Color = C3(0,0,0) | |
| 1641 | for i = 1, 12 do | |
| 1642 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
| 1643 | PRT.Color = C3(1,0,0) | |
| 1644 | local MSH = IT("BlockMesh",PRT)
| |
| 1645 | MSH.Scale = VT(0.6,1,1) | |
| 1646 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
| |
| 1647 | end | |
| 1648 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
| 1649 | PRT.Color = C3(1,0,0) | |
| 1650 | local MSH = IT("BlockMesh",PRT)
| |
| 1651 | MSH.Scale = VT(0.4,1,1) | |
| 1652 | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
| |
| 1653 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
| 1654 | PRT.Color = C3(0,0,0) | |
| 1655 | local MSH = IT("BlockMesh",PRT)
| |
| 1656 | MSH.Scale = VT(0.4,1,1) | |
| 1657 | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
| |
| 1658 | for _, c in pairs(Weapon3:GetChildren()) do | |
| 1659 | if c.ClassName == "Part" then | |
| 1660 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 1661 | end | |
| 1662 | end | |
| 1663 | for i = 1, 100 do | |
| 1664 | Swait() | |
| 1665 | for _, c in pairs(Character:GetChildren()) do | |
| 1666 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
| 1667 | c.Transparency = 0 | |
| 1668 | end | |
| 1669 | end | |
| 1670 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1671 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
| 1672 | c.Transparency = 0 | |
| 1673 | end | |
| 1674 | end | |
| 1675 | for _, c in pairs(Weapon2:GetChildren()) do | |
| 1676 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
| 1677 | c.Transparency = 0 | |
| 1678 | end | |
| 1679 | end | |
| 1680 | for _, c in pairs(Weapon:GetDescendants()) do | |
| 1681 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 1682 | c.Material = "Wood" | |
| 1683 | c.Color = C3(0,0,0) | |
| 1684 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 1685 | c.Color = C3(1,0,0) | |
| 1686 | c.Material = "Neon" | |
| 1687 | end | |
| 1688 | end | |
| 1689 | ||
| 1690 | for _, c in pairs(Weapon4:GetDescendants()) do | |
| 1691 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 1692 | c.Material = "Wood" | |
| 1693 | c.Color = C3(0,0,0) | |
| 1694 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 1695 | c.Color = C3(1,0,0) | |
| 1696 | c.Material = "Neon" | |
| 1697 | end | |
| 1698 | end | |
| 1699 | ||
| 1700 | for _, c in pairs(Weapon5:GetDescendants()) do | |
| 1701 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 1702 | c.Material = "Wood" | |
| 1703 | c.Color = C3(0,0,0) | |
| 1704 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 1705 | c.Color = C3(1.5,0,1) | |
| 1706 | c.Material = "Neon" | |
| 1707 | end | |
| 1708 | end | |
| 1709 | ||
| 1710 | for _, c in pairs(Weapon6:GetDescendants()) do | |
| 1711 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 1712 | c.Material = "Wood" | |
| 1713 | c.Color = C3(0,0,0) | |
| 1714 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 1715 | c.Color = C3(0,0,0) | |
| 1716 | c.Material = "Neon" | |
| 1717 | end | |
| 1718 | end | |
| 1719 | ||
| 1720 | for _, c in pairs(Weapon7:GetDescendants()) do | |
| 1721 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 1722 | c.Material = "Wood" | |
| 1723 | c.Color = C3(0,0,0) | |
| 1724 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 1725 | c.Color = C3(1,1,1) | |
| 1726 | c.Material = "Neon" | |
| 1727 | end | |
| 1728 | end | |
| 1729 | ||
| 1730 | for _, c in pairs(Weapon2:GetDescendants()) do | |
| 1731 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 1732 | c.Material = "Wood" | |
| 1733 | c.Color = C3(0,0,0) | |
| 1734 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 1735 | c.Color = C3(1,0,0) | |
| 1736 | c.Material = "Neon" | |
| 1737 | end | |
| 1738 | end | |
| 1739 | end | |
| 1740 | TRANSFORMED = true | |
| 1741 | ATTACK = false | |
| 1742 | Rooted = false | |
| 1743 | end | |
| 1744 | ||
| 1745 | ||
| 1746 | function Shot() | |
| 1747 | ATTACK = true | |
| 1748 | Rooted = false | |
| 1749 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1750 | Swait() | |
| 1751 | turnto(Mouse.Hit.p) | |
| 1752 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0.2,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = Hole2.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(0,0,0), SoundID = "163619849", SoundPitch = 1, SoundVolume = 0})
| |
| 1753 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0.2,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = Hole.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(0,0,0), SoundID = "163619849", SoundPitch = 2, SoundVolume = 0})
| |
| 1754 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0.2,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = Hole2.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1.5,0,1), SoundID = "163619849", SoundPitch = 1, SoundVolume = 1})
| |
| 1755 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0.2,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = Hole.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1.5,0,1), SoundID = "163619849", SoundPitch = 2, SoundVolume = 1})
| |
| 1756 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1757 | 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) | |
| 1758 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-45), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1759 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1760 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1761 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1762 | end | |
| 1763 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1764 | Swait() | |
| 1765 | turnto(Mouse.Hit.p) | |
| 1766 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1767 | 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) | |
| 1768 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1769 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1770 | 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)), 1 / Animation_Speed) | |
| 1771 | 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)), 1 / Animation_Speed) | |
| 1772 | end | |
| 1773 | repeat | |
| 1774 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 1775 | Swait() | |
| 1776 | turnto(Mouse.Hit.p) | |
| 1777 | 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) | |
| 1778 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1779 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1780 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1781 | 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) | |
| 1782 | 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) | |
| 1783 | end | |
| 1784 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
| 1785 | SpawnTrail(Hole.Position,POS) | |
| 1786 | if HIT ~= nil then | |
| 1787 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 1788 | Banish(HIT.Parent) | |
| 1789 | end | |
| 1790 | end | |
| 1791 | MagicSphere(VT(0,0,0),5,Hole.CFrame,"Really red",VT(1,1,1)) | |
| 1792 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1793 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
| |
| 1794 | 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,Hole.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 = 1})
| |
| 1795 | 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,Hole.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 = 1})
| |
| 1796 | local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character) | |
| 1797 | SpawnTrail(Hole2.Position,POS) | |
| 1798 | if HIT ~= nil then | |
| 1799 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 1800 | Banish(HIT.Parent) | |
| 1801 | end | |
| 1802 | end | |
| 1803 | local HIT,POS = CastProperRay(Hole3.Position, Mouse.Hit.p, 1000, Character) | |
| 1804 | SpawnTrail(Hole3.Position,POS) | |
| 1805 | if HIT ~= nil then | |
| 1806 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 1807 | Banish(HIT.Parent) | |
| 1808 | end | |
| 1809 | end | |
| 1810 | local HIT,POS = CastProperRay(Hole4.Position, Mouse.Hit.p, 1000, Character) | |
| 1811 | SpawnTrail(Hole4.Position,POS) | |
| 1812 | if HIT ~= nil then | |
| 1813 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 1814 | Banish(HIT.Parent) | |
| 1815 | end | |
| 1816 | end | |
| 1817 | MagicSphere(VT(0,0,0),5,Hole3.CFrame,"Really red",VT(1,1,1)) | |
| 1818 | MagicSphere(VT(0,0,0),5,Hole2.CFrame,"Really red",VT(1,1,1)) | |
| 1819 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = Hole3.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1820 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
| |
| 1821 | 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,Hole3.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 = 1})
| |
| 1822 | 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,Hole3.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 = 1})
| |
| 1823 | ||
| 1824 | MagicSphere(VT(0,0,0),5,Hole4.CFrame,"Really red",VT(1,1,1)) | |
| 1825 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole4.CFrame, MoveToPos = Hole4.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1826 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole4.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
| |
| 1827 | 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,Hole4.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 = 1})
| |
| 1828 | 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,Hole4.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 = 1})
| |
| 1829 | ||
| 1830 | ----e | |
| 1831 | 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.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1832 | 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 = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
| |
| 1833 | 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 = 1})
| |
| 1834 | 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 = 1})
| |
| 1835 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 1836 | Swait() | |
| 1837 | CamShake(2,2) | |
| 1838 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-21), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1839 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
| 1840 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.7) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1841 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0.7) * ANGLES(RAD(75), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1842 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-21), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1843 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-21), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1844 | end | |
| 1845 | until KEYHOLD == false | |
| 1846 | ATTACK = false | |
| 1847 | Rooted = false | |
| 1848 | end | |
| 1849 | function Taunt() | |
| 1850 | ATTACK = true | |
| 1851 | Rooted = false | |
| 1852 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1853 | Swait() | |
| 1854 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1855 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1856 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1857 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1858 | 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)), 1 / Animation_Speed) | |
| 1859 | 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)), 1 / Animation_Speed) | |
| 1860 | end | |
| 1861 | CreateSound(2618961109, Head, 5, 1, false) | |
| 1862 | for i=0, 3, 0.1 / Animation_Speed do | |
| 1863 | Swait() | |
| 1864 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 3) + ((1) - 1)) * ANGLES(RAD(45 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 0.5 / Animation_Speed) | |
| 1865 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, - 0.1 * COS(SINE / 3)) * ANGLES(RAD(21), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1866 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, - 0.1 * COS(SINE / 3)) * ANGLES(RAD(21), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1867 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 4)) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1868 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(45), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1869 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(45), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1870 | end | |
| 1871 | ATTACK = false | |
| 1872 | Rooted = false | |
| 1873 | end | |
| 1874 | ||
| 1875 | function AttackTemplate() | |
| 1876 | ATTACK = true | |
| 1877 | Rooted = false | |
| 1878 | WACKYEFFECT({Time = 100+(35), EffectType = "Wave", Size = VT(2,0,2), Size2 = VT(32,2.5,32), Transparency = 0.75, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-4,0).p) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
| |
| 1879 | WACKYEFFECT({Time = 100+(35), EffectType = "Wave", Size = VT(85,0,85), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.8, CFrame = CF(Head.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 1880 | WACKYEFFECT({Time = 100+(35), EffectType = "Sphere", Size = VT(45,45,45), Size2 = VT(0,0,0), Transparency = 0.95, Transparency2 = 1, CFrame = CF(Head.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 1881 | WACKYEFFECT({Time = 100+(35), EffectType = "Wave", Size = VT(2,0,2), Size2 = VT(32,2.5,32), Transparency = 0.75, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-4,0).p) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
| |
| 1882 | WACKYEFFECT({Time = 100+(35), EffectType = "Wave", Size = VT(85,0,85), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.8, CFrame = CF(Head.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 1883 | WACKYEFFECT({Time = 100+(35), EffectType = "Sphere", Size = VT(45,45,45), Size2 = VT(0,0,0), Transparency = 0.95, Transparency2 = 1, CFrame = CF(Head.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 1884 | for i=0, 5, 0.1 / Animation_Speed do | |
| 1885 | Swait() | |
| 1886 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1887 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1888 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1889 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1890 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-12), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1891 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-12), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1892 | end | |
| 1893 | CamShake(5,7) | |
| 1894 | MagicSphere(VT(0,0,0),5,Hole.CFrame,"Really red",VT(1,1,1)) | |
| 1895 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1896 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
| |
| 1897 | MagicSphere(VT(0,0,0),5,Hole4.CFrame,"Really red",VT(1,1,1)) | |
| 1898 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole4.CFrame, MoveToPos = Hole4.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1899 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole4.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
| |
| 1900 | ||
| 1901 | MagicSphere(VT(0,0,0),5,Hole3.CFrame,"Really red",VT(1,1,1)) | |
| 1902 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = Hole3.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1903 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
| |
| 1904 | ||
| 1905 | MagicSphere(VT(0,0,0),5,Hole2.CFrame,"Really red",VT(1,1,1)) | |
| 1906 | 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.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1907 | 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 = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
| |
| 1908 | ||
| 1909 | local POS = RootPart.Position | |
| 1910 | ApplyAoE(POS, 60, true) | |
| 1911 | CreateSound(833855896, Torso, 10, 1, false) | |
| 1912 | CreateSound(2103404398, Torso, 10, 1, false) | |
| 1913 | WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = Head.Size, Size2 = VT(250,250,250)+(VT(0,0,0)*180), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Head.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = 1-(10), SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 1914 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(120,5,120)+(VT(0,0,0)*70), Transparency = 0.6, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Pink".Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
| |
| 1915 | WACKYEFFECT({Time = 175, EffectType = "Sphere", Size = Head.Size, Size2 = VT(250,250,250)+(VT(0,0,0)*180), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Head.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = 1-(10), SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 1916 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(120,5,120)+(VT(0,0,0)*70), Transparency = 0.6, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Pink".Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
| |
| 1917 | WACKYEFFECT({Time = 175, EffectType = "Sphere", Size = Head.Size, Size2 = VT(250,250,250)+(VT(0,0,0)*180), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Head.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = 1-(10), SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 1918 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(120,5,120)+(VT(0,0,0)*70), Transparency = 0.6, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Pink".Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
| |
| 1919 | ATTACK = false | |
| 1920 | Rooted = false | |
| 1921 | end | |
| 1922 | ||
| 1923 | --//=================================\\ | |
| 1924 | --|| ASSIGN THINGS TO KEYS | |
| 1925 | --\\=================================// | |
| 1926 | ||
| 1927 | function MouseDown(Mouse) | |
| 1928 | if ATTACK == false then | |
| 1929 | end | |
| 1930 | end | |
| 1931 | ||
| 1932 | function MouseUp(Mouse) | |
| 1933 | HOLD = false | |
| 1934 | end | |
| 1935 | ||
| 1936 | function KeyDown(Key) | |
| 1937 | KEYHOLD = true | |
| 1938 | if Key == "z" and ATTACK == false then | |
| 1939 | Shot() | |
| 1940 | end | |
| 1941 | ||
| 1942 | if Key == "b" and ATTACK == false then | |
| 1943 | AttackTemplate() | |
| 1944 | end | |
| 1945 | ||
| 1946 | if Key == "t" and ATTACK == false then | |
| 1947 | Taunt() | |
| 1948 | end | |
| 1949 | ||
| 1950 | if Key == "v" and ATTACK == false then | |
| 1951 | end | |
| 1952 | ||
| 1953 | if Key == "x" and ATTACK == false then | |
| 1954 | end | |
| 1955 | end | |
| 1956 | ||
| 1957 | function KeyUp(Key) | |
| 1958 | KEYHOLD = false | |
| 1959 | end | |
| 1960 | ||
| 1961 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1962 | MouseDown(NEWKEY) | |
| 1963 | end) | |
| 1964 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1965 | MouseUp(NEWKEY) | |
| 1966 | end) | |
| 1967 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1968 | KeyDown(NEWKEY) | |
| 1969 | end) | |
| 1970 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1971 | KeyUp(NEWKEY) | |
| 1972 | end) | |
| 1973 | ||
| 1974 | --//=================================\\ | |
| 1975 | --\\=================================// | |
| 1976 | ||
| 1977 | ||
| 1978 | function unanchor() | |
| 1979 | if UNANCHOR == true then | |
| 1980 | g = Character:GetChildren() | |
| 1981 | for i = 1, #g do | |
| 1982 | if g[i].ClassName == "Part" then | |
| 1983 | g[i].Anchored = false | |
| 1984 | end | |
| 1985 | end | |
| 1986 | end | |
| 1987 | end | |
| 1988 | ||
| 1989 | ||
| 1990 | --//=================================\\ | |
| 1991 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1992 | --\\=================================// | |
| 1993 | ||
| 1994 | Humanoid.Changed:connect(function(Jump) | |
| 1995 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1996 | Humanoid.Jump = false | |
| 1997 | end | |
| 1998 | end) | |
| 1999 | ||
| 2000 | local CONNECT = nil | |
| 2001 | ||
| 2002 | while true do | |
| 2003 | Swait() | |
| 2004 | ANIMATE.Parent = nil | |
| 2005 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 2006 | Humanoid = IT("Humanoid",Character)
| |
| 2007 | end | |
| 2008 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 2009 | v:Stop(); | |
| 2010 | end | |
| 2011 | SINE = SINE + CHANGE | |
| 2012 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 2013 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 2014 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
| 2015 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
| 2016 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 2017 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 2018 | 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 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2019 | 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) | |
| 2020 | 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2021 | 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2022 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 2023 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2024 | 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) | |
| 2025 | 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) | |
| 2026 | 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) | |
| 2027 | end | |
| 2028 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 2029 | ANIM = "Jump" | |
| 2030 | if ATTACK == false then | |
| 2031 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2032 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2033 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2034 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 2035 | 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) | |
| 2036 | 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) | |
| 2037 | end | |
| 2038 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 2039 | ANIM = "Fall" | |
| 2040 | if ATTACK == false then | |
| 2041 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2042 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2043 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2044 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 2045 | 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) | |
| 2046 | 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) | |
| 2047 | end | |
| 2048 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 2049 | ANIM = "Idle" | |
| 2050 | if ATTACK == false then | |
| 2051 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 4)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2052 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 3) + ((1) - 1)) * ANGLES(RAD(30 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 0.5 / Animation_Speed) | |
| 2053 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.4 - 0.1 * COS(SINE / 4), 0.25 - 0.025 * COS(SINE / 5)) * ANGLES(RAD(-30), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
| 2054 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.4 - 0.1 * COS(SINE / 4), 0.25 - 0.025 * COS(SINE / 5)) * ANGLES(RAD(-30), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
| 2055 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2056 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2057 | if MRANDOM(1,100) == 1 then | |
| 2058 | VALUE1 = true | |
| 2059 | for i = 1, 75 do | |
| 2060 | Swait() | |
| 2061 | sick.Pitch = 0.8 | |
| 2062 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(25), RAD(MRANDOM(-25,25))), 1 / Animation_Speed) | |
| 2063 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 4)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2064 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.4 - 0.1 * COS(SINE / 4), 0.25 - 0.025 * COS(SINE / 5)) * ANGLES(RAD(-30), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
| 2065 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.4 - 0.1 * COS(SINE / 4), 0.25 - 0.025 * COS(SINE / 5)) * ANGLES(RAD(-30), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
| 2066 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2067 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2068 | end | |
| 2069 | sick.Pitch = 1 | |
| 2070 | VALUE1 = false | |
| 2071 | end | |
| 2072 | end | |
| 2073 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 2074 | ANIM = "Walk" | |
| 2075 | WALK = WALK + 1 / Animation_Speed | |
| 2076 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / SIZE)) then | |
| 2077 | WALK = 0 | |
| 2078 | if WALKINGANIM == true then | |
| 2079 | WALKINGANIM = false | |
| 2080 | elseif WALKINGANIM == false then | |
| 2081 | WALKINGANIM = true | |
| 2082 | end | |
| 2083 | end | |
| 2084 | if ATTACK == false then | |
| 2085 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2086 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2087 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(45), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed) | |
| 2088 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150), RAD(-45), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
| 2089 | 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) | |
| 2090 | 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) | |
| 2091 | end | |
| 2092 | end | |
| 2093 | unanchor() | |
| 2094 | Humanoid.MaxHealth = "inf" | |
| 2095 | Humanoid.Health = "inf" | |
| 2096 | if Rooted == false then | |
| 2097 | Disable_Jump = false | |
| 2098 | Humanoid.WalkSpeed = Speed | |
| 2099 | elseif Rooted == true then | |
| 2100 | Disable_Jump = true | |
| 2101 | Humanoid.WalkSpeed = 0 | |
| 2102 | end | |
| 2103 | if INTRO == false and INSTANT == false then | |
| 2104 | INTRO = true | |
| 2105 | coroutine.resume(coroutine.create(function() | |
| 2106 | sick:Play() | |
| 2107 | Intro() | |
| 2108 | end)) | |
| 2109 | end | |
| 2110 | if INSTANT == true then | |
| 2111 | if TRANSFORMED == false then | |
| 2112 | sick.TimePosition = 119 | |
| 2113 | sick:Play() | |
| 2114 | Gun.Parent = Character | |
| 2115 | end | |
| 2116 | TRANSFORMED = true | |
| 2117 | end | |
| 2118 | sick.Parent = Torso | |
| 2119 | sick:resume() | |
| 2120 | sick.Looped = true | |
| 2121 | sick.Volume = 2 | |
| 2122 | sick.Pitch = 1 | |
| 2123 | sick.SoundId = "rbxassetid://1600388782" | |
| 2124 | sick.Name = "Dead" | |
| 2125 | end | |
| 2126 | ||
| 2127 | --//=================================\\ | |
| 2128 | --\\=================================// | |
| 2129 | ||
| 2130 | ||
| 2131 | ||
| 2132 | ||
| 2133 | ||
| 2134 | --//====================================================\\-- | |
| 2135 | --|| END OF SCRIPT | |
| 2136 | --\\====================================================//-- |