SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | local RealPlayer = Player | |
| 4 | do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
| |
| 5 | script.Parent = InternalData.RealOwner.Character | |
| 6 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
| |
| 7 | local function createObject (connections, index) | |
| 8 | local proxy = newproxy (true);local meta = getmetatable (proxy); | |
| 9 | local runbind = function (self, i, ...) connections[i]:Fire (...); end; | |
| 10 | while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
| |
| 11 | meta.__index = function (self, i) | |
| 12 | if (i == 'TriggerEvent') then return runbind end; | |
| 13 | return connections[i] and connections[i].Event or index[i]; | |
| 14 | end; | |
| 15 | meta.__newindex = index;meta.__metatable = false;return proxy | |
| 16 | end; | |
| 17 | local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
| |
| 18 | local UserInputService = createObject({"InputBegan","InputEnded"},{})
| |
| 19 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 20 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 21 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 22 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 23 | if FiredBy ~= InternalData.RealOwner then return end | |
| 24 | if Input.MouseEvent then | |
| 25 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 26 | elseif Input.Sound then | |
| 27 | if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end | |
| 28 | else | |
| 29 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 30 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end | |
| 31 | for _,Action in pairs(ContextActionService.Actions) do | |
| 32 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 33 | end | |
| 34 | Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 35 | end | |
| 36 | end) | |
| 37 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 38 | Event.Parent = NLS([[ | |
| 39 | local Player = owner; | |
| 40 | local Sounds = {};
| |
| 41 | local Event = script:WaitForChild("UserInput");
| |
| 42 | local UserInputService = game:GetService("UserInputService");
| |
| 43 | local Mouse = Player:GetMouse(); | |
| 44 | local Input = function(Input,gameProcessedEvent) | |
| 45 | if gameProcessedEvent then return end | |
| 46 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 47 | end | |
| 48 | Event.OnClientEvent:connect(function(Args) | |
| 49 | if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end | |
| 50 | end) | |
| 51 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 52 | local Hit,Target | |
| 53 | while wait(1/30) do | |
| 54 | for x,Sound in pairs(Sounds) do | |
| 55 | if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
| |
| 56 | end | |
| 57 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 58 | Hit = Mouse.Hit;Target = Mouse.Target; | |
| 59 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 60 | end | |
| 61 | end | |
| 62 | ]],InternalData.RealOwner.Character) | |
| 63 | end | |
| 64 | InternalData.NewOwner = setmetatable({},{
| |
| 65 | __index = function (self,Index) | |
| 66 | local Type = type(InternalData.RealOwner[Index]) | |
| 67 | if Type == "function" then | |
| 68 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 69 | return function (self)return InternalData["Mouse"] end | |
| 70 | end | |
| 71 | return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end | |
| 72 | elseif Index == "FakePlayer" then | |
| 73 | return true | |
| 74 | end | |
| 75 | return InternalData.RealOwner[Index] | |
| 76 | end; | |
| 77 | __tostring = function(self) return tostring(InternalData.RealOwner) end | |
| 78 | }) | |
| 79 | --LoadLibrary("RbxUtility").Create
| |
| 80 | InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library) | |
| 81 | if Library == "RbxUtility" then | |
| 82 | return setmetatable({},{
| |
| 83 | __tostring = function() return "RbxUtility" end; | |
| 84 | __index = function(self, Index) | |
| 85 | if Index:lower() == "create" then | |
| 86 | return function(Type) | |
| 87 | return function(Data) | |
| 88 | Data = Data or {}
| |
| 89 | local Inst = Instance.new(Type) | |
| 90 | for x,y in pairs(Data) do | |
| 91 | if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end | |
| 92 | if y == owner then y = InternalData.RealOwner end | |
| 93 | Inst[x] = y | |
| 94 | end | |
| 95 | return Inst | |
| 96 | end | |
| 97 | end | |
| 98 | end | |
| 99 | return InternalData.LoadLibrary(Library)[Index] | |
| 100 | end | |
| 101 | }) | |
| 102 | end | |
| 103 | return InternalData.LoadLibrary(Library) | |
| 104 | end | |
| 105 | InternalData.RealInstance = Instance;Instance = setmetatable({},{
| |
| 106 | __index = function (self,Index) | |
| 107 | if Index:lower() == 'new' then | |
| 108 | return function (Type, Parent) | |
| 109 | if Parent == owner then Parent = InternalData.RealOwner end | |
| 110 | if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end | |
| 111 | local Real = InternalData.RealInstance.new(Type,Parent) | |
| 112 | if not Type then return end | |
| 113 | if Type == "BillboardGui" then | |
| 114 | local ToReturn = setmetatable({},{
| |
| 115 | __index = function (self,Index) | |
| 116 | if type(Real[Index]) == "function" then | |
| 117 | if Index:lower() == "clone" then | |
| 118 | return function (self) | |
| 119 | local Real = Real:Clone() | |
| 120 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 121 | __index = function (self,Index) | |
| 122 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 123 | return Real[Index] | |
| 124 | end; | |
| 125 | __newindex = function (self,Index,Value) | |
| 126 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 127 | if Value == owner then Value = InternalData.RealOwner end | |
| 128 | Real[Index] = Value | |
| 129 | end; | |
| 130 | __tostring = function(self) return tostring(Real) end; | |
| 131 | }) | |
| 132 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 133 | end | |
| 134 | end | |
| 135 | return function (self,...) return Real[Index](Real,...)end | |
| 136 | end | |
| 137 | return Real[Index] | |
| 138 | end; | |
| 139 | __newindex = function (self,Index,Value) | |
| 140 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 141 | if Value == owner then Value = InternalData.RealOwner end | |
| 142 | Real[Index] = Value | |
| 143 | end; | |
| 144 | __tostring = function(self) return tostring(Real) end; | |
| 145 | }) | |
| 146 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 147 | elseif Type:lower() == "sound" then | |
| 148 | Real.Parent = owner.Character; | |
| 149 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 150 | __index = function (self,Index) | |
| 151 | if Index:lower() == "playbackloudness" then | |
| 152 | return InternalData.SoundLoudness[Real] or 0 | |
| 153 | elseif type(Real[Index]) == "function" then | |
| 154 | if Index:lower() == "clone" then | |
| 155 | return function (self) | |
| 156 | local Real = Real:Clone() | |
| 157 | local ToReturn = setmetatable({},{
| |
| 158 | __index = function (self,Index) | |
| 159 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 160 | return Real[Index] | |
| 161 | end; | |
| 162 | __newindex = function (self,Index,Value) | |
| 163 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 164 | if Value == owner then Value = InternalData.RealOwner end | |
| 165 | Real[Index] = Value | |
| 166 | end; | |
| 167 | __tostring = function(self) return tostring(Real) end; | |
| 168 | }) | |
| 169 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 170 | end | |
| 171 | end | |
| 172 | return function (self,...) return Real[Index](Real,...)end | |
| 173 | end | |
| 174 | return Real[Index] | |
| 175 | end; | |
| 176 | __newindex = function (self,Index,Value) | |
| 177 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 178 | if Value == owner then Value = InternalData.RealOwner end | |
| 179 | Real[Index] = Value | |
| 180 | end; | |
| 181 | __tostring = function(self) return tostring(Real) end; | |
| 182 | }) | |
| 183 | InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
| |
| 184 | else | |
| 185 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 186 | __index = function (self,Index) | |
| 187 | if type(Real[Index]) == "function" then | |
| 188 | if Index:lower() == "clone" then | |
| 189 | return function (self) | |
| 190 | local Real = Real:Clone() | |
| 191 | local ToReturn = setmetatable({},{
| |
| 192 | __index = function (self,Index) | |
| 193 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 194 | return Real[Index] | |
| 195 | end; | |
| 196 | __newindex = function (self,Index,Value) | |
| 197 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 198 | if Value == owner then Value = InternalData.RealOwner end | |
| 199 | Real[Index] = Value | |
| 200 | end; | |
| 201 | __tostring = function(self) return tostring(Real) end; | |
| 202 | }) | |
| 203 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 204 | end | |
| 205 | end | |
| 206 | return function (self,...) return Real[Index](Real,...)end | |
| 207 | end | |
| 208 | return Real[Index] | |
| 209 | end; | |
| 210 | __newindex = function (self,Index,Value) | |
| 211 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 212 | if Value == owner then Value = InternalData.RealOwner end | |
| 213 | Real[Index] = Value | |
| 214 | end; | |
| 215 | __tostring = function(self) return tostring(Real) end; | |
| 216 | }) | |
| 217 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 218 | end | |
| 219 | end | |
| 220 | end | |
| 221 | return InternalData.RealInstance[Index] | |
| 222 | end; | |
| 223 | __tostring = function(self) return tostring(InternalData.RealInstance) end; | |
| 224 | }); | |
| 225 | InternalData.RealGame = game;game = setmetatable({},{
| |
| 226 | __index = function (self,Index) | |
| 227 | if InternalData.RealGame[Index] then | |
| 228 | local Type = type(InternalData.RealGame[Index]) | |
| 229 | if Type == "function" then | |
| 230 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 231 | return function (self,Service) | |
| 232 | local FakeServices = {
| |
| 233 | ["players"] = function() | |
| 234 | return setmetatable({},{
| |
| 235 | __index = function (self2,Index2) | |
| 236 | local RealService = InternalData.RealGame:GetService(Service) | |
| 237 | local Type2 = type(RealService[Index2]) | |
| 238 | if Type2 == "function" then | |
| 239 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 240 | else | |
| 241 | if Index2:lower() == "localplayer" then return InternalData.NewOwner end | |
| 242 | return RealService[Index2] | |
| 243 | end | |
| 244 | end; | |
| 245 | __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end | |
| 246 | }) | |
| 247 | end; | |
| 248 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 249 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 250 | ["debris"] = function() | |
| 251 | return setmetatable({},{
| |
| 252 | __index = function(self2,Index2) | |
| 253 | local RealService = InternalData.RealGame:GetService(Service) | |
| 254 | local Type2 = type(RealService[Index2]) | |
| 255 | if Type2 == "function" then | |
| 256 | if Index2:lower() == "additem" then | |
| 257 | return function (self,Item,Time) | |
| 258 | if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end | |
| 259 | return RealService:AddItem(Item,Time) | |
| 260 | end | |
| 261 | end | |
| 262 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 263 | end | |
| 264 | return RealService[Index2] | |
| 265 | end; | |
| 266 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
| |
| 267 | }) | |
| 268 | end; | |
| 269 | ["runservice"] = function() | |
| 270 | return setmetatable({},{
| |
| 271 | __index = function(self2,Index2) | |
| 272 | local RealService = InternalData.RealGame:GetService(Service) | |
| 273 | local Type2 = type(RealService[Index2]) | |
| 274 | if Type2 == "function" then | |
| 275 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 276 | else | |
| 277 | local RunServices = {
| |
| 278 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 279 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 280 | } | |
| 281 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 282 | return RealService[Index2] | |
| 283 | end | |
| 284 | end; | |
| 285 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
| |
| 286 | }) | |
| 287 | end | |
| 288 | } | |
| 289 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 290 | return InternalData.RealGame:GetService(Service) | |
| 291 | end | |
| 292 | end | |
| 293 | return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end | |
| 294 | else | |
| 295 | if game:GetService(Index) then return game:GetService(Index) end | |
| 296 | return InternalData.RealGame[Index] | |
| 297 | end | |
| 298 | end | |
| 299 | return nil | |
| 300 | end; | |
| 301 | __tostring = function(self) return tostring(InternalData.game) end | |
| 302 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
| |
| 303 | ||
| 304 | warn'Lunarist Loaded.' | |
| 305 | warn'Do not leak this, or else.' | |
| 306 | --- its obs smooth af do not touch | |
| 307 | plr = game.Players.LocalPlayer | |
| 308 | char = plr.Character | |
| 309 | hum = char.Humanoid | |
| 310 | Humanoid = char.Humanoid | |
| 311 | animate = char.Animate:Remove() | |
| 312 | local cam = game.Workspace.CurrentCamera | |
| 313 | t = char.Torso | |
| 314 | h = char.Head | |
| 315 | ra = char["Right Arm"] | |
| 316 | la = char["Left Arm"] | |
| 317 | rl = char["Right Leg"] | |
| 318 | ll = char["Left Leg"] | |
| 319 | tors = char.Torso | |
| 320 | lleg = char["Left Leg"] | |
| 321 | root = char.HumanoidRootPart | |
| 322 | hed = char.Head | |
| 323 | rleg = char["Right Leg"] | |
| 324 | rarm = char["Right Arm"] | |
| 325 | larm = char["Left Arm"] | |
| 326 | vt = Vector3.new | |
| 327 | bc = BrickColor.new | |
| 328 | br = BrickColor.random | |
| 329 | it = Instance.new | |
| 330 | cf = CFrame.new | |
| 331 | ||
| 332 | local sick = Instance.new("Sound",Character)
| |
| 333 | sick.SoundId = "rbxassetid://1720347116" | |
| 334 | sick.Looped = true | |
| 335 | sick.Pitch = 1 | |
| 336 | sick.Volume = 1 | |
| 337 | sick:Play() | |
| 338 | ||
| 339 | function CameraShake(Times, Power) | |
| 340 | coroutine.resume(coroutine.create(function() | |
| 341 | FV = Instance.new("BoolValue", Character)
| |
| 342 | FV.Name = "CameraShake" | |
| 343 | for ShakeNum=1,Times do | |
| 344 | swait() | |
| 345 | local ef=Power | |
| 346 | if ef>=1 then | |
| 347 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
| 348 | else | |
| 349 | ef=Power*10 | |
| 350 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
| 351 | end | |
| 352 | end | |
| 353 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 354 | FV:Destroy() | |
| 355 | end)) | |
| 356 | end | |
| 357 | ||
| 358 | CamShake=function(Part,Distan,Power,Times) | |
| 359 | local de=Part.Position | |
| 360 | for i,v in pairs(workspace:children()) do | |
| 361 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 362 | for _,c in pairs(v:children()) do | |
| 363 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
| 364 | local Noob=v.Humanoid | |
| 365 | if Noob~=nil then | |
| 366 | if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
| |
| 367 | --[[local ss=script.CamShake:clone() | |
| 368 | ss.Parent=Noob | |
| 369 | ss.Power.Value=Power | |
| 370 | ss.Times.Value=Times | |
| 371 | ss.Disabled=false]] | |
| 372 | CameraShake(Times, Power) | |
| 373 | end | |
| 374 | end | |
| 375 | end | |
| 376 | end | |
| 377 | end | |
| 378 | end | |
| 379 | end | |
| 380 | ||
| 381 | function chatfunc(text,color) | |
| 382 | local chat = coroutine.wrap(function() | |
| 383 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 384 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 385 | end | |
| 386 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 387 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 388 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 389 | naeeym2.Adornee = Character.Head | |
| 390 | naeeym2.Name = "TalkingBillBoard" | |
| 391 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 392 | tecks2.BackgroundTransparency = 1 | |
| 393 | tecks2.BorderSizePixel = 0 | |
| 394 | tecks2.Text = "" | |
| 395 | tecks2.Font = "SciFi" | |
| 396 | tecks2.TextSize = 30 | |
| 397 | tecks2.TextStrokeTransparency = 0 | |
| 398 | tecks2.TextColor3 = color | |
| 399 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 400 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 401 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 402 | tecks3.BackgroundTransparency = 1 | |
| 403 | tecks3.BorderSizePixel = 0 | |
| 404 | tecks3.Text = "" | |
| 405 | tecks3.Font = "SciFi" | |
| 406 | tecks3.TextSize = 30 | |
| 407 | tecks3.TextStrokeTransparency = 0 | |
| 408 | tecks3.TextColor3 = Color3.new(0,0,0) | |
| 409 | tecks3.TextStrokeColor3 = color | |
| 410 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
| 411 | for i = 1,string.len(text),1 do | |
| 412 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
| |
| 413 | tecks2.Text = string.sub(text,1,i) | |
| 414 | tecks3.Text = string.sub(text,1,i) | |
| 415 | wait(0.01) | |
| 416 | end | |
| 417 | wait(1) | |
| 418 | local randomrot = math.random(1,2) | |
| 419 | if randomrot == 1 then | |
| 420 | for i = 1, 50 do | |
| 421 | swait() | |
| 422 | tecks2.Rotation = tecks2.Rotation - .75 | |
| 423 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 424 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 425 | tecks3.Rotation = tecks2.Rotation + .75 | |
| 426 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 427 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 428 | end | |
| 429 | elseif randomrot == 2 then | |
| 430 | for i = 1, 50 do | |
| 431 | swait() | |
| 432 | tecks2.Rotation = tecks2.Rotation + .75 | |
| 433 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 434 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 435 | tecks3.Rotation = tecks2.Rotation - .75 | |
| 436 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 437 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 438 | end | |
| 439 | end | |
| 440 | naeeym2:Destroy() | |
| 441 | end) | |
| 442 | chat() | |
| 443 | end | |
| 444 | ||
| 445 | ||
| 446 | local Create = LoadLibrary("RbxUtility").Create
| |
| 447 | ||
| 448 | CFuncs = {
| |
| 449 | ["Part"] = {
| |
| 450 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 451 | local Part = Create("Part"){
| |
| 452 | Parent = Parent, | |
| 453 | Reflectance = Reflectance, | |
| 454 | Transparency = Transparency, | |
| 455 | CanCollide = false, | |
| 456 | Locked = true, | |
| 457 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 458 | Name = Name, | |
| 459 | Size = Size, | |
| 460 | Material = Material, | |
| 461 | } | |
| 462 | RemoveOutlines(Part) | |
| 463 | return Part | |
| 464 | end; | |
| 465 | }; | |
| 466 | ||
| 467 | ["Mesh"] = {
| |
| 468 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 469 | local Msh = Create(Mesh){
| |
| 470 | Parent = Part, | |
| 471 | Offset = OffSet, | |
| 472 | Scale = Scale, | |
| 473 | } | |
| 474 | if Mesh == "SpecialMesh" then | |
| 475 | Msh.MeshType = MeshType | |
| 476 | Msh.MeshId = MeshId | |
| 477 | end | |
| 478 | return Msh | |
| 479 | end; | |
| 480 | }; | |
| 481 | ||
| 482 | ["Mesh"] = {
| |
| 483 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 484 | local Msh = Create(Mesh){
| |
| 485 | Parent = Part, | |
| 486 | Offset = OffSet, | |
| 487 | Scale = Scale, | |
| 488 | } | |
| 489 | if Mesh == "SpecialMesh" then | |
| 490 | Msh.MeshType = MeshType | |
| 491 | Msh.MeshId = MeshId | |
| 492 | end | |
| 493 | return Msh | |
| 494 | end; | |
| 495 | }; | |
| 496 | ||
| 497 | ["Weld"] = {
| |
| 498 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 499 | local Weld = Create("Weld"){
| |
| 500 | Parent = Parent, | |
| 501 | Part0 = Part0, | |
| 502 | Part1 = Part1, | |
| 503 | C0 = C0, | |
| 504 | C1 = C1, | |
| 505 | } | |
| 506 | return Weld | |
| 507 | end; | |
| 508 | }; | |
| 509 | ||
| 510 | ["Sound"] = {
| |
| 511 | Create = function(id, par, vol, pit) | |
| 512 | coroutine.resume(coroutine.create(function() | |
| 513 | local S = Create("Sound"){
| |
| 514 | Volume = vol, | |
| 515 | Pitch = pit or 1, | |
| 516 | SoundId = id, | |
| 517 | Parent = par or workspace, | |
| 518 | } | |
| 519 | wait() | |
| 520 | S:play() | |
| 521 | game:GetService("Debris"):AddItem(S, 10)
| |
| 522 | end)) | |
| 523 | end; | |
| 524 | }; | |
| 525 | ||
| 526 | ["LongSound"] = {
| |
| 527 | Create = function(id, par, vol, pit) | |
| 528 | coroutine.resume(coroutine.create(function() | |
| 529 | local S = Create("Sound"){
| |
| 530 | Volume = vol, | |
| 531 | Pitch = pit or 1, | |
| 532 | SoundId = id, | |
| 533 | Parent = par or workspace, | |
| 534 | } | |
| 535 | wait() | |
| 536 | S:play() | |
| 537 | game:GetService("Debris"):AddItem(S, 30)
| |
| 538 | end)) | |
| 539 | end; | |
| 540 | }; | |
| 541 | ||
| 542 | ["ParticleEmitter"] = {
| |
| 543 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 544 | local fp = Create("ParticleEmitter"){
| |
| 545 | Parent = Parent, | |
| 546 | Color = ColorSequence.new(Color1, Color2), | |
| 547 | LightEmission = LightEmission, | |
| 548 | Size = Size, | |
| 549 | Texture = Texture, | |
| 550 | Transparency = Transparency, | |
| 551 | ZOffset = ZOffset, | |
| 552 | Acceleration = Accel, | |
| 553 | Drag = Drag, | |
| 554 | LockedToPart = LockedToPart, | |
| 555 | VelocityInheritance = VelocityInheritance, | |
| 556 | EmissionDirection = EmissionDirection, | |
| 557 | Enabled = Enabled, | |
| 558 | Lifetime = LifeTime, | |
| 559 | Rate = Rate, | |
| 560 | Rotation = Rotation, | |
| 561 | RotSpeed = RotSpeed, | |
| 562 | Speed = Speed, | |
| 563 | VelocitySpread = VelocitySpread, | |
| 564 | } | |
| 565 | return fp | |
| 566 | end; | |
| 567 | }; | |
| 568 | ||
| 569 | CreateTemplate = {
| |
| 570 | ||
| 571 | }; | |
| 572 | } | |
| 573 | ||
| 574 | ||
| 575 | ||
| 576 | New = function(Object, Parent, Name, Data) | |
| 577 | local Object = Instance.new(Object) | |
| 578 | for Index, Value in pairs(Data or {}) do
| |
| 579 | Object[Index] = Value | |
| 580 | end | |
| 581 | Object.Parent = Parent | |
| 582 | Object.Name = Name | |
| 583 | return Object | |
| 584 | end | |
| 585 | local halocolor = BrickColor.new("Lime green")
| |
| 586 | local halocolor2 = BrickColor.new("Cool yellow")
| |
| 587 | local starcolor = BrickColor.new("Gold")
| |
| 588 | local lunacolor = BrickColor.new("Bright green")
| |
| 589 | local lunacolor2 = BrickColor.new("Lime green")
| |
| 590 | local wepcolor = BrickColor.new("Really black")
| |
| 591 | local m = Instance.new("Model",char)
| |
| 592 | ||
| 593 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
| 594 | local p = Instance.new("Part")
| |
| 595 | p.TopSurface = 0 | |
| 596 | p.BottomSurface = 0 | |
| 597 | p.Parent = parent | |
| 598 | p.Size = Vector3.new(1,1,1) | |
| 599 | p.Transparency = transparency | |
| 600 | p.Reflectance = reflectance | |
| 601 | p.CanCollide = false | |
| 602 | p.Locked = true | |
| 603 | p.BrickColor = brickcolor | |
| 604 | p.Material = material | |
| 605 | return p | |
| 606 | end | |
| 607 | ||
| 608 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
| 609 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 610 | mesh.MeshType = meshtype | |
| 611 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 612 | return mesh | |
| 613 | end | |
| 614 | ||
| 615 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
| 616 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 617 | mesh.MeshType = "FileMesh" | |
| 618 | mesh.MeshId = meshid | |
| 619 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 620 | return mesh | |
| 621 | end | |
| 622 | ||
| 623 | ||
| 624 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
| 625 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 626 | mesh.MeshType = "FileMesh" | |
| 627 | mesh.MeshId = meshid | |
| 628 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
| 629 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 630 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
| 631 | return mesh | |
| 632 | end | |
| 633 | ||
| 634 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
| 635 | local weld = Instance.new("Weld")
| |
| 636 | weld.Parent = parent | |
| 637 | weld.Part0 = part0 | |
| 638 | weld.Part1 = part1 | |
| 639 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
| 640 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
| 641 | return weld | |
| 642 | end | |
| 643 | ||
| 644 | ||
| 645 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 646 | CreateWeld(sorb,rarm,sorb,0,1.15,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 647 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 648 | CreateWeld(sorb2,larm,sorb2,0,1.15,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 649 | ||
| 650 | local ga = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 651 | CreateMesh(ga,"Brick",1.05,1.55,1.05) | |
| 652 | CreateWeld(ga,rarm,ga,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 653 | ||
| 654 | gal = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 655 | CreateMesh(gal,"Brick",1.075,1.575,0.75) | |
| 656 | CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 657 | ||
| 658 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
| 659 | CreateMesh(gal,"Brick",1.0725,1.6,0.775) | |
| 660 | CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 661 | ||
| 662 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
| 663 | CreateMesh(gal,"Brick",0.1,1.25,0.1) | |
| 664 | CreateWeld(gal,rarm,gal,-0.495,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 665 | ||
| 666 | local gal = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 667 | CreateMesh(gal,"Brick",1.07,1.625,0.8) | |
| 668 | CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 669 | ||
| 670 | ||
| 671 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 672 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 673 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 674 | ||
| 675 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 676 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 677 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 678 | ||
| 679 | ||
| 680 | ||
| 681 | gan = CreateParta(m,0,0,"Neon",halocolor2) | |
| 682 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 683 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 684 | ||
| 685 | gan = CreateParta(m,0,0,"Neon",halocolor2) | |
| 686 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 687 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 688 | ||
| 689 | local gane = CreateParta(m,0,0,"SmoothPlastic",lunacolor2) | |
| 690 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
| 691 | CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 692 | ||
| 693 | local star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 694 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
| 695 | CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 696 | local starl = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
| 697 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
| 698 | CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 699 | ||
| 700 | local stara = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
| 701 | CreateSpecialMesh(stara,"http://www.roblox.com/asset/?id=45428961",1.5,2.45,1.5) | |
| 702 | CreateWeld(stara,rarm,stara,0,-0.475,-0.7,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 703 | local stara1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 704 | CreateSpecialMesh(stara1,"http://www.roblox.com/asset/?id=45428961",1.65,2.425,1.65) | |
| 705 | CreateWeld(stara1,rarm,stara1,0,-0.475,-0.7,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 706 | ||
| 707 | local starb = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
| 708 | CreateSpecialMesh(starb,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25) | |
| 709 | CreateWeld(starb,rarm,starb,0,-0.475,-0.3,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 710 | local starb1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 711 | CreateSpecialMesh(starb1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5) | |
| 712 | CreateWeld(starb1,rarm,starb1,0,-0.475,-0.3,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 713 | ||
| 714 | local starc = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
| 715 | CreateSpecialMesh(starc,"http://www.roblox.com/asset/?id=45428961",1,2.45,1) | |
| 716 | CreateWeld(starc,rarm,starc,0,-0.475,0.1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 717 | local starc1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 718 | CreateSpecialMesh(starc1,"http://www.roblox.com/asset/?id=45428961",1.15,2.425,1.15) | |
| 719 | CreateWeld(starc1,rarm,starc1,0,-0.475,0.1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 720 | ||
| 721 | Character = game.Players.LocalPlayer.Character | |
| 722 | local BODY = {}
| |
| 723 | for _, c in pairs(Character:GetDescendants()) do | |
| 724 | if c:IsA("BasePart") and c.Name ~= "Handle" then
| |
| 725 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
| 726 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 727 | end | |
| 728 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
| |
| 729 | elseif c:IsA("JointInstance") then
| |
| 730 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
| |
| 731 | end | |
| 732 | end | |
| 733 | ||
| 734 | function refit() | |
| 735 | Character.Parent = workspace | |
| 736 | for e = 1, #BODY do | |
| 737 | if BODY[e] ~= nil then | |
| 738 | local STUFF = BODY[e] | |
| 739 | local PART = STUFF[1] | |
| 740 | local PARENT = STUFF[2] | |
| 741 | local MATERIAL = STUFF[3] | |
| 742 | local COLOR = STUFF[4] | |
| 743 | local TRANSPARENCY = STUFF[5] | |
| 744 | --local SIZE = STUFF[6] | |
| 745 | local NAME = STUFF[7] | |
| 746 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 747 | PART.Material = MATERIAL | |
| 748 | PART.Transparency = TRANSPARENCY | |
| 749 | PART.Name = NAME | |
| 750 | end | |
| 751 | if PART.Parent ~= PARENT then | |
| 752 | Humanoid:remove() | |
| 753 | PART.Parent = PARENT | |
| 754 | Humanoid = IT("Humanoid",Character)
| |
| 755 | end | |
| 756 | end | |
| 757 | end | |
| 758 | end | |
| 759 | ||
| 760 | Humanoid.Died:connect(function() | |
| 761 | refit() | |
| 762 | end) | |
| 763 | ||
| 764 | -- First | |
| 765 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 766 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 767 | CreateWeld(dot,rarm,dot,-0.495,0,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 768 | ||
| 769 | ||
| 770 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 771 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 772 | CreateWeld(dot,rarm,dot,-0.495,0.2,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 773 | ||
| 774 | ||
| 775 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 776 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 777 | CreateWeld(dot,rarm,dot,-0.495,0.4,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 778 | ||
| 779 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 780 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 781 | CreateWeld(dot,rarm,dot,-0.495,-0.2,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 782 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 783 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 784 | CreateWeld(dot,rarm,dot,-0.495,-0.4,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 785 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 786 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 787 | CreateWeld(dot,rarm,dot,-0.495,-0.6,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 788 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 789 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 790 | CreateWeld(dot,rarm,dot,-0.495,-0.8,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 791 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 792 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 793 | CreateWeld(dot,rarm,dot,-0.495,-1,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 794 | ||
| 795 | --- Second | |
| 796 | ||
| 797 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 798 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 799 | CreateWeld(dot,rarm,dot,-0.495,0,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 800 | ||
| 801 | ||
| 802 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 803 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 804 | CreateWeld(dot,rarm,dot,-0.495,0.2,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 805 | ||
| 806 | ||
| 807 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 808 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 809 | CreateWeld(dot,rarm,dot,-0.495,0.4,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 810 | ||
| 811 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 812 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 813 | CreateWeld(dot,rarm,dot,-0.495,-0.2,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 814 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 815 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 816 | CreateWeld(dot,rarm,dot,-0.495,-0.4,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 817 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 818 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 819 | CreateWeld(dot,rarm,dot,-0.495,-0.6,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 820 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 821 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 822 | CreateWeld(dot,rarm,dot,-0.495,-0.8,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 823 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
| 824 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
| 825 | CreateWeld(dot,rarm,dot,-0.495,-1,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 826 | ||
| 827 | -- Third section A | |
| 828 | ||
| 829 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 830 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 831 | CreateWeld(dotsec,rarm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 832 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 833 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 834 | CreateWeld(dotseca,rarm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 835 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 836 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 837 | CreateWeld(dotsecb,rarm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 838 | ||
| 839 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 840 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 841 | CreateWeld(dotsec,rarm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 842 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 843 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 844 | CreateWeld(dotseca,rarm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 845 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 846 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 847 | CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 848 | ||
| 849 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 850 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 851 | CreateWeld(dotsec,rarm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 852 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 853 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 854 | CreateWeld(dotseca,rarm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 855 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 856 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 857 | CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 858 | ||
| 859 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 860 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 861 | CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 862 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 863 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 864 | CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 865 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 866 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 867 | CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 868 | ||
| 869 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 870 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 871 | CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 872 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 873 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 874 | CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 875 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 876 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 877 | CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 878 | ||
| 879 | -- Third section B | |
| 880 | ||
| 881 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 882 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 883 | CreateWeld(dotsec,rarm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 884 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 885 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 886 | CreateWeld(dotseca,rarm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 887 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 888 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 889 | CreateWeld(dotsecb,rarm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 890 | ||
| 891 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 892 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 893 | CreateWeld(dotsec,rarm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 894 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 895 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 896 | CreateWeld(dotseca,rarm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 897 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 898 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 899 | CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 900 | ||
| 901 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 902 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 903 | CreateWeld(dotsec,rarm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 904 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 905 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 906 | CreateWeld(dotseca,rarm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 907 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 908 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 909 | CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 910 | ||
| 911 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 912 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 913 | CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 914 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 915 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 916 | CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 917 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 918 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 919 | CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 920 | ||
| 921 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 922 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 923 | CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 924 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 925 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 926 | CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 927 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 928 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 929 | CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 930 | ||
| 931 | ||
| 932 | ||
| 933 | ---Lines | |
| 934 | ||
| 935 | ||
| 936 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
| 937 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
| 938 | CreateWeld(gal,rarm,gal,0,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 939 | ||
| 940 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
| 941 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
| 942 | CreateWeld(gal,rarm,gal,0.2,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 943 | ||
| 944 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
| 945 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
| 946 | CreateWeld(gal,rarm,gal,-0.2,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 947 | ||
| 948 | gala = CreateParta(m,0,0,"Neon",halocolor) | |
| 949 | CreateMesh(gala,"Brick",0.65,0.65,0.075) | |
| 950 | CreateWeld(gala,rarm,gala,0,-0.35,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 951 | ||
| 952 | gala = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 953 | CreateMesh(gala,"Brick",0.595,0.595,0.095) | |
| 954 | CreateWeld(gala,rarm,gala,0,-0.35,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 955 | ||
| 956 | ||
| 957 | starz = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
| 958 | CreateSpecialMesh(starz,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25) | |
| 959 | CreateWeld(starz,rarm,starz,0,-0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 960 | starz1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 961 | CreateSpecialMesh(starz1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5) | |
| 962 | CreateWeld(starz1,rarm,starz1,0,-0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 963 | ||
| 964 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 965 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 966 | CreateWeld(dotbo,rarm,dotbo,0.425,0,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 967 | ||
| 968 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 969 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 970 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.2,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 971 | ||
| 972 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 973 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 974 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.4,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 975 | ||
| 976 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 977 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 978 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.6,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 979 | ||
| 980 | ----------- | |
| 981 | ||
| 982 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 983 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 984 | CreateWeld(dotbo,rarm,dotbo,-0.425,0,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 985 | ||
| 986 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 987 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 988 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.2,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 989 | ||
| 990 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 991 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 992 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.4,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 993 | ||
| 994 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 995 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 996 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.6,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 997 | ||
| 998 | -- Second Lines | |
| 999 | ||
| 1000 | ||
| 1001 | ||
| 1002 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
| 1003 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
| 1004 | CreateWeld(gal,rarm,gal,0,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1005 | ||
| 1006 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
| 1007 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
| 1008 | CreateWeld(gal,rarm,gal,0.2,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1009 | ||
| 1010 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
| 1011 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
| 1012 | CreateWeld(gal,rarm,gal,-0.2,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1013 | ||
| 1014 | gala = CreateParta(m,0,0,"Neon",halocolor) | |
| 1015 | CreateMesh(gala,"Brick",0.65,0.65,0.075) | |
| 1016 | CreateWeld(gala,rarm,gala,0,-0.35,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1017 | ||
| 1018 | gala = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1019 | CreateMesh(gala,"Brick",0.595,0.595,0.095) | |
| 1020 | CreateWeld(gala,rarm,gala,0,-0.35,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1021 | ||
| 1022 | starz = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
| 1023 | CreateSpecialMesh(starz,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25) | |
| 1024 | CreateWeld(starz,rarm,starz,0,0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1025 | starz1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1026 | CreateSpecialMesh(starz1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5) | |
| 1027 | CreateWeld(starz1,rarm,starz1,0,0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1028 | ||
| 1029 | ||
| 1030 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 1031 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 1032 | CreateWeld(dotbo,rarm,dotbo,0.425,0,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1033 | ||
| 1034 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 1035 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 1036 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.2,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1037 | ||
| 1038 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 1039 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 1040 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.4,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1041 | ||
| 1042 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 1043 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 1044 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.6,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1045 | ||
| 1046 | ----------- | |
| 1047 | ||
| 1048 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 1049 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 1050 | CreateWeld(dotbo,rarm,dotbo,-0.425,0,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1051 | ||
| 1052 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 1053 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 1054 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.2,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1055 | ||
| 1056 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 1057 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 1058 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.4,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1059 | ||
| 1060 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
| 1061 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
| 1062 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.6,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1063 | ||
| 1064 | ||
| 1065 | ||
| 1066 | ---- HERES THE RING | |
| 1067 | ||
| 1068 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1069 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 1070 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1071 | ||
| 1072 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1073 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 1074 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1075 | ||
| 1076 | ||
| 1077 | ||
| 1078 | gan = CreateParta(m,0,0,"Neon",halocolor2) | |
| 1079 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 1080 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1081 | ||
| 1082 | gan = CreateParta(m,0,0,"Neon",halocolor2) | |
| 1083 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 1084 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1085 | ||
| 1086 | gane = CreateParta(m,0,0,"SmoothPlastic",lunacolor2) | |
| 1087 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
| 1088 | CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1089 | ||
| 1090 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1091 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
| 1092 | CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1093 | starl = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
| 1094 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
| 1095 | CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1096 | ||
| 1097 | -- S section A | |
| 1098 | ||
| 1099 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 1100 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 1101 | CreateWeld(dotsec,larm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1102 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1103 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 1104 | CreateWeld(dotseca,larm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1105 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1106 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 1107 | CreateWeld(dotsecb,larm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1108 | ||
| 1109 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 1110 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 1111 | CreateWeld(dotsec,larm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1112 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1113 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 1114 | CreateWeld(dotseca,larm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1115 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1116 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 1117 | CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1118 | ||
| 1119 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 1120 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 1121 | CreateWeld(dotsec,larm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1122 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1123 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 1124 | CreateWeld(dotseca,larm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1125 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1126 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 1127 | CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1128 | ||
| 1129 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 1130 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 1131 | CreateWeld(dotsec,larm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1132 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1133 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 1134 | CreateWeld(dotseca,larm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1135 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1136 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 1137 | CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1138 | ||
| 1139 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 1140 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 1141 | CreateWeld(dotsec,larm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1142 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1143 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 1144 | CreateWeld(dotseca,larm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1145 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1146 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 1147 | CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1148 | ||
| 1149 | -- S section B | |
| 1150 | ||
| 1151 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 1152 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 1153 | CreateWeld(dotsec,larm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1154 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1155 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 1156 | CreateWeld(dotseca,larm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1157 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1158 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 1159 | CreateWeld(dotsecb,larm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1160 | ||
| 1161 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 1162 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 1163 | CreateWeld(dotsec,larm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1164 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1165 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 1166 | CreateWeld(dotseca,larm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1167 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1168 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 1169 | CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1170 | ||
| 1171 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 1172 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 1173 | CreateWeld(dotsec,larm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1174 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1175 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 1176 | CreateWeld(dotseca,larm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1177 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1178 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 1179 | CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1180 | ||
| 1181 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 1182 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 1183 | CreateWeld(dotsec,larm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1184 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1185 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 1186 | CreateWeld(dotseca,larm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1187 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1188 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 1189 | CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1190 | ||
| 1191 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
| 1192 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
| 1193 | CreateWeld(dotsec,larm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1194 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1195 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
| 1196 | CreateWeld(dotseca,larm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1197 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
| 1198 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
| 1199 | CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1200 | ||
| 1201 | ------ | |
| 1202 | ||
| 1203 | ||
| 1204 | function RemoveOutlines(part) | |
| 1205 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 1206 | end | |
| 1207 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1208 | local Part = Create("Part")({
| |
| 1209 | Parent = Parent, | |
| 1210 | Reflectance = Reflectance, | |
| 1211 | Transparency = Transparency, | |
| 1212 | CanCollide = false, | |
| 1213 | Locked = true, | |
| 1214 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1215 | Name = Name, | |
| 1216 | Size = Size, | |
| 1217 | Material = Material | |
| 1218 | }) | |
| 1219 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 1220 | RemoveOutlines(Part) | |
| 1221 | return Part | |
| 1222 | end | |
| 1223 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1224 | local Msh = Create(Mesh)({
| |
| 1225 | Parent = Part, | |
| 1226 | Offset = OffSet, | |
| 1227 | Scale = Scale | |
| 1228 | }) | |
| 1229 | if Mesh == "SpecialMesh" then | |
| 1230 | Msh.MeshType = MeshType | |
| 1231 | Msh.MeshId = MeshId | |
| 1232 | end | |
| 1233 | return Msh | |
| 1234 | end | |
| 1235 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 1236 | local Weld = Create("Weld")({
| |
| 1237 | Parent = Parent, | |
| 1238 | Part0 = Part0, | |
| 1239 | Part1 = Part1, | |
| 1240 | C0 = C0, | |
| 1241 | C1 = C1 | |
| 1242 | }) | |
| 1243 | return Weld | |
| 1244 | end | |
| 1245 | ||
| 1246 | Player=game:GetService("Players").LocalPlayer
| |
| 1247 | Character=Player.Character | |
| 1248 | PlayerGui=Player.PlayerGui | |
| 1249 | Backpack=Player.Backpack | |
| 1250 | Torso=Character.Torso | |
| 1251 | Head=Character.Head | |
| 1252 | Humanoid=Character.Humanoid | |
| 1253 | m=Instance.new('Model',Character)
| |
| 1254 | LeftArm=Character["Left Arm"] | |
| 1255 | LeftLeg=Character["Left Leg"] | |
| 1256 | RightArm=Character["Right Arm"] | |
| 1257 | RightLeg=Character["Right Leg"] | |
| 1258 | LS=Torso["Left Shoulder"] | |
| 1259 | LH=Torso["Left Hip"] | |
| 1260 | RS=Torso["Right Shoulder"] | |
| 1261 | RH=Torso["Right Hip"] | |
| 1262 | Face = Head.face | |
| 1263 | Neck=Torso.Neck | |
| 1264 | it=Instance.new | |
| 1265 | attacktype=1 | |
| 1266 | vt=Vector3.new | |
| 1267 | cf=CFrame.new | |
| 1268 | euler=CFrame.fromEulerAnglesXYZ | |
| 1269 | angles=CFrame.Angles | |
| 1270 | cloaked=false | |
| 1271 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1272 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1273 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 1274 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 1275 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 1276 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 1277 | RootPart=Character.HumanoidRootPart | |
| 1278 | RootJoint=RootPart.RootJoint | |
| 1279 | RootCF=euler(-1.57,0,3.14) | |
| 1280 | attack = false | |
| 1281 | attackdebounce = false | |
| 1282 | deb=false | |
| 1283 | equipped=true | |
| 1284 | hand=false | |
| 1285 | MMouse=nil | |
| 1286 | combo=0 | |
| 1287 | mana=0 | |
| 1288 | trispeed=.2 | |
| 1289 | attackmode='none' | |
| 1290 | local idle=0 | |
| 1291 | local Anim="Idle" | |
| 1292 | local Effects={}
| |
| 1293 | local gun=false | |
| 1294 | local shoot=false | |
| 1295 | local sine = 0 | |
| 1296 | local change = 1 | |
| 1297 | player=nil | |
| 1298 | ||
| 1299 | mouse=Player:GetMouse() | |
| 1300 | --save shoulders | |
| 1301 | RSH, LSH=nil, nil | |
| 1302 | --welds | |
| 1303 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 1304 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 1305 | LH=Torso["Left Hip"] | |
| 1306 | RH=Torso["Right Hip"] | |
| 1307 | TorsoColor=Torso.BrickColor | |
| 1308 | function NoOutline(Part) | |
| 1309 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 1310 | end | |
| 1311 | player=Player | |
| 1312 | ch=Character | |
| 1313 | RSH=ch.Torso["Right Shoulder"] | |
| 1314 | LSH=ch.Torso["Left Shoulder"] | |
| 1315 | -- | |
| 1316 | RSH.Parent=nil | |
| 1317 | LSH.Parent=nil | |
| 1318 | -- | |
| 1319 | RW.Name="Right Shoulder" | |
| 1320 | RW.Part0=ch.Torso | |
| 1321 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 1322 | RW.C1=cf(0, 0.5, 0) | |
| 1323 | RW.Part1=ch["Right Arm"] | |
| 1324 | RW.Parent=ch.Torso | |
| 1325 | -- | |
| 1326 | LW.Name="Left Shoulder" | |
| 1327 | LW.Part0=ch.Torso | |
| 1328 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 1329 | LW.C1=cf(0, 0.5, 0) | |
| 1330 | LW.Part1=ch["Left Arm"] | |
| 1331 | LW.Parent=ch.Torso | |
| 1332 | ||
| 1333 | local Stats=Instance.new("BoolValue")
| |
| 1334 | Stats.Name="Stats" | |
| 1335 | Stats.Parent=Character | |
| 1336 | local Atk=Instance.new("NumberValue")
| |
| 1337 | Atk.Name="Damage" | |
| 1338 | Atk.Parent=Stats | |
| 1339 | Atk.Value=1 | |
| 1340 | local Def=Instance.new("NumberValue")
| |
| 1341 | Def.Name="Defense" | |
| 1342 | Def.Parent=Stats | |
| 1343 | Def.Value=1 | |
| 1344 | local Speed=Instance.new("NumberValue")
| |
| 1345 | Speed.Name="Speed" | |
| 1346 | Speed.Parent=Stats | |
| 1347 | Speed.Value=1 | |
| 1348 | local Mvmt=Instance.new("NumberValue")
| |
| 1349 | Mvmt.Name="Movement" | |
| 1350 | Mvmt.Parent=Stats | |
| 1351 | Mvmt.Value=1 | |
| 1352 | ||
| 1353 | local donum=0 | |
| 1354 | ||
| 1355 | ||
| 1356 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 1357 | local fp=it("Part")
| |
| 1358 | fp.formFactor=formfactor | |
| 1359 | fp.Parent=parent | |
| 1360 | fp.Reflectance=reflectance | |
| 1361 | fp.Transparency=transparency | |
| 1362 | fp.CanCollide=false | |
| 1363 | fp.Locked=true | |
| 1364 | fp.BrickColor=brickcolor | |
| 1365 | fp.Name=name | |
| 1366 | fp.Size=size | |
| 1367 | fp.Position=Torso.Position | |
| 1368 | NoOutline(fp) | |
| 1369 | fp.Material="SmoothPlastic" | |
| 1370 | fp:BreakJoints() | |
| 1371 | return fp | |
| 1372 | end | |
| 1373 | ||
| 1374 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 1375 | local mesh=it(Mesh) | |
| 1376 | mesh.Parent=part | |
| 1377 | if Mesh=="SpecialMesh" then | |
| 1378 | mesh.MeshType=meshtype | |
| 1379 | if meshid~="nil" then | |
| 1380 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
| 1381 | end | |
| 1382 | end | |
| 1383 | mesh.Offset=offset | |
| 1384 | mesh.Scale=scale | |
| 1385 | return mesh | |
| 1386 | end | |
| 1387 | ||
| 1388 | function weld(parent,part0,part1,c0) | |
| 1389 | local weld=it("Weld")
| |
| 1390 | weld.Parent=parent | |
| 1391 | weld.Part0=part0 | |
| 1392 | weld.Part1=part1 | |
| 1393 | weld.C0=c0 | |
| 1394 | return weld | |
| 1395 | end | |
| 1396 | ||
| 1397 | local Color1=Torso.BrickColor | |
| 1398 | ||
| 1399 | local bodvel=Instance.new("BodyVelocity")
| |
| 1400 | local bg=Instance.new("BodyGyro")
| |
| 1401 | ||
| 1402 | function swait(num) | |
| 1403 | if num==0 or num==nil then | |
| 1404 | game:service'RunService'.Stepped:wait(0) | |
| 1405 | else | |
| 1406 | for i=0,num do | |
| 1407 | game:service'RunService'.Stepped:wait(0) | |
| 1408 | end | |
| 1409 | end | |
| 1410 | end | |
| 1411 | ||
| 1412 | ||
| 1413 | so = function(id,par,vol,pit) | |
| 1414 | coroutine.resume(coroutine.create(function() | |
| 1415 | local sou = Instance.new("Sound",par or workspace)
| |
| 1416 | sou.Volume=vol | |
| 1417 | sou.Pitch=pit or 1 | |
| 1418 | sou.SoundId=id | |
| 1419 | swait() | |
| 1420 | sou:play() | |
| 1421 | game:GetService("Debris"):AddItem(sou,6)
| |
| 1422 | end)) | |
| 1423 | end | |
| 1424 | ||
| 1425 | function clerp(a,b,t) | |
| 1426 | local qa = {QuaternionFromCFrame(a)}
| |
| 1427 | local qb = {QuaternionFromCFrame(b)}
| |
| 1428 | local ax, ay, az = a.x, a.y, a.z | |
| 1429 | local bx, by, bz = b.x, b.y, b.z | |
| 1430 | local _t = 1-t | |
| 1431 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 1432 | end | |
| 1433 | ||
| 1434 | function QuaternionFromCFrame(cf) | |
| 1435 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 1436 | local trace = m00 + m11 + m22 | |
| 1437 | if trace > 0 then | |
| 1438 | local s = math.sqrt(1 + trace) | |
| 1439 | local recip = 0.5/s | |
| 1440 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 1441 | else | |
| 1442 | local i = 0 | |
| 1443 | if m11 > m00 then | |
| 1444 | i = 1 | |
| 1445 | end | |
| 1446 | if m22 > (i == 0 and m00 or m11) then | |
| 1447 | i = 2 | |
| 1448 | end | |
| 1449 | if i == 0 then | |
| 1450 | local s = math.sqrt(m00-m11-m22+1) | |
| 1451 | local recip = 0.5/s | |
| 1452 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 1453 | elseif i == 1 then | |
| 1454 | local s = math.sqrt(m11-m22-m00+1) | |
| 1455 | local recip = 0.5/s | |
| 1456 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 1457 | elseif i == 2 then | |
| 1458 | local s = math.sqrt(m22-m00-m11+1) | |
| 1459 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 1460 | end | |
| 1461 | end | |
| 1462 | end | |
| 1463 | ||
| 1464 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 1465 | local xs, ys, zs = x + x, y + y, z + z | |
| 1466 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 1467 | local xx = x*xs | |
| 1468 | local xy = x*ys | |
| 1469 | local xz = x*zs | |
| 1470 | local yy = y*ys | |
| 1471 | local yz = y*zs | |
| 1472 | local zz = z*zs | |
| 1473 | 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)) | |
| 1474 | end | |
| 1475 | ||
| 1476 | function QuaternionSlerp(a, b, t) | |
| 1477 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 1478 | local startInterp, finishInterp; | |
| 1479 | if cosTheta >= 0.0001 then | |
| 1480 | if (1 - cosTheta) > 0.0001 then | |
| 1481 | local theta = math.acos(cosTheta) | |
| 1482 | local invSinTheta = 1/math.sin(theta) | |
| 1483 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 1484 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 1485 | else | |
| 1486 | startInterp = 1-t | |
| 1487 | finishInterp = t | |
| 1488 | end | |
| 1489 | else | |
| 1490 | if (1+cosTheta) > 0.0001 then | |
| 1491 | local theta = math.acos(-cosTheta) | |
| 1492 | local invSinTheta = 1/math.sin(theta) | |
| 1493 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 1494 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 1495 | else | |
| 1496 | startInterp = t-1 | |
| 1497 | finishInterp = t | |
| 1498 | end | |
| 1499 | end | |
| 1500 | 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 | |
| 1501 | end | |
| 1502 | ||
| 1503 | local function CFrameFromTopBack(at, top, back) | |
| 1504 | local right = top:Cross(back) | |
| 1505 | return CFrame.new(at.x, at.y, at.z, | |
| 1506 | right.x, top.x, back.x, | |
| 1507 | right.y, top.y, back.y, | |
| 1508 | right.z, top.z, back.z) | |
| 1509 | end | |
| 1510 | ||
| 1511 | function Triangle(a, b, c) | |
| 1512 | local edg1 = (c-a):Dot((b-a).unit) | |
| 1513 | local edg2 = (a-b):Dot((c-b).unit) | |
| 1514 | local edg3 = (b-c):Dot((a-c).unit) | |
| 1515 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 1516 | a, b, c = a, b, c | |
| 1517 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 1518 | a, b, c = b, c, a | |
| 1519 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 1520 | a, b, c = c, a, b | |
| 1521 | else | |
| 1522 | assert(false, "unreachable") | |
| 1523 | end | |
| 1524 | ||
| 1525 | local len1 = (c-a):Dot((b-a).unit) | |
| 1526 | local len2 = (b-a).magnitude - len1 | |
| 1527 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 1528 | ||
| 1529 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 1530 | ||
| 1531 | local list = {}
| |
| 1532 | ||
| 1533 | if len1 > 0.01 then | |
| 1534 | local w1 = Instance.new('WedgePart', m)
| |
| 1535 | game:GetService("Debris"):AddItem(w1,5)
| |
| 1536 | w1.Material = "SmoothPlastic" | |
| 1537 | w1.FormFactor = 'Custom' | |
| 1538 | w1.BrickColor = BrickColor.new("Really red")
| |
| 1539 | w1.Transparency = 0 | |
| 1540 | w1.Reflectance = 0 | |
| 1541 | w1.Material = "SmoothPlastic" | |
| 1542 | w1.CanCollide = false | |
| 1543 | local l1 = Instance.new("PointLight",w1)
| |
| 1544 | l1.Color = Color3.new(170,0,0) | |
| 1545 | NoOutline(w1) | |
| 1546 | local sz = Vector3.new(0.2, width, len1) | |
| 1547 | w1.Size = sz | |
| 1548 | local sp = Instance.new("SpecialMesh",w1)
| |
| 1549 | sp.MeshType = "Wedge" | |
| 1550 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
| 1551 | w1:BreakJoints() | |
| 1552 | w1.Anchored = true | |
| 1553 | w1.Parent = workspace | |
| 1554 | w1.Transparency = 0.7 | |
| 1555 | table.insert(Effects,{w1,"Disappear",.01})
| |
| 1556 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 1557 | table.insert(list,w1) | |
| 1558 | end | |
| 1559 | ||
| 1560 | if len2 > 0.01 then | |
| 1561 | local w2 = Instance.new('WedgePart', m)
| |
| 1562 | game:GetService("Debris"):AddItem(w2,5)
| |
| 1563 | w2.Material = "SmoothPlastic" | |
| 1564 | w2.FormFactor = 'Custom' | |
| 1565 | w2.BrickColor = BrickColor.new("Really red")
| |
| 1566 | w2.Transparency = 0 | |
| 1567 | w2.Reflectance = 0 | |
| 1568 | w2.Material = "SmoothPlastic" | |
| 1569 | w2.CanCollide = false | |
| 1570 | local l2 = Instance.new("PointLight",w2)
| |
| 1571 | l2.Color = Color3.new(170,0,0) | |
| 1572 | NoOutline(w2) | |
| 1573 | local sz = Vector3.new(0.2, width, len2) | |
| 1574 | w2.Size = sz | |
| 1575 | local sp = Instance.new("SpecialMesh",w2)
| |
| 1576 | sp.MeshType = "Wedge" | |
| 1577 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
| 1578 | w2:BreakJoints() | |
| 1579 | w2.Anchored = true | |
| 1580 | w2.Parent = workspace | |
| 1581 | w2.Transparency = 0.7 | |
| 1582 | table.insert(Effects,{w2,"Disappear",.01})
| |
| 1583 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 1584 | table.insert(list,w2) | |
| 1585 | end | |
| 1586 | return unpack(list) | |
| 1587 | end | |
| 1588 | ||
| 1589 | ||
| 1590 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 1591 | if hit.Parent == nil then | |
| 1592 | return | |
| 1593 | end | |
| 1594 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 1595 | for _, v in pairs(hit.Parent:children()) do | |
| 1596 | if v:IsA("Humanoid") then
| |
| 1597 | h = v | |
| 1598 | end | |
| 1599 | end | |
| 1600 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 1601 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 1602 | return | |
| 1603 | end | |
| 1604 | local c = Create("ObjectValue")({
| |
| 1605 | Name = "creator", | |
| 1606 | Value = game:service("Players").LocalPlayer,
| |
| 1607 | Parent = h | |
| 1608 | }) | |
| 1609 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1610 | if HitSound ~= nil and HitPitch ~= nil then | |
| 1611 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 1612 | end | |
| 1613 | local Damage = math.random(minim, maxim) | |
| 1614 | local blocked = false | |
| 1615 | local block = hit.Parent:findFirstChild("Block")
| |
| 1616 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 1617 | blocked = true | |
| 1618 | block.Value = block.Value - 1 | |
| 1619 | print(block.Value) | |
| 1620 | end | |
| 1621 | if blocked == false then | |
| 1622 | HitHealth = h.Health | |
| 1623 | h.Health = h.Health - Damage | |
| 1624 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
| 1625 | print("gained kill")
| |
| 1626 | end | |
| 1627 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1628 | else | |
| 1629 | h.Health = h.Health - Damage / 2 | |
| 1630 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1631 | end | |
| 1632 | if Type == "Knockdown" then | |
| 1633 | local hum = hit.Parent.Humanoid | |
| 1634 | hum.PlatformStand = true | |
| 1635 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1636 | swait(1) | |
| 1637 | HHumanoid.PlatformStand = false | |
| 1638 | end), hum) | |
| 1639 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1640 | local bodvol = Create("BodyVelocity")({
| |
| 1641 | velocity = angle * knockback, | |
| 1642 | P = 5000, | |
| 1643 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1644 | Parent = hit | |
| 1645 | }) | |
| 1646 | local rl = Create("BodyAngularVelocity")({
| |
| 1647 | P = 3000, | |
| 1648 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 1649 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 1650 | Parent = hit | |
| 1651 | }) | |
| 1652 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 1653 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 1654 | elseif Type == "Normal" then | |
| 1655 | local vp = Create("BodyVelocity")({
| |
| 1656 | P = 500, | |
| 1657 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 1658 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 1659 | }) | |
| 1660 | if knockback > 0 then | |
| 1661 | vp.Parent = hit.Parent.Torso | |
| 1662 | end | |
| 1663 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 1664 | elseif Type == "Up" then | |
| 1665 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1666 | velocity = Vector3.new(0, 20, 0), | |
| 1667 | P = 5000, | |
| 1668 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1669 | Parent = hit | |
| 1670 | }) | |
| 1671 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1672 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1673 | velocity = Vector3.new(0, 20, 0), | |
| 1674 | P = 5000, | |
| 1675 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1676 | Parent = hit | |
| 1677 | }) | |
| 1678 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1679 | elseif Type == "Leech" then | |
| 1680 | local hum = hit.Parent.Humanoid | |
| 1681 | if hum ~= nil then | |
| 1682 | for i = 0, 2 do | |
| 1683 | Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
| |
| 1684 | end | |
| 1685 | Humanoid.Health = Humanoid.Health + 10 | |
| 1686 | end | |
| 1687 | elseif Type == "UpKnock" then | |
| 1688 | local hum = hit.Parent.Humanoid | |
| 1689 | hum.PlatformStand = true | |
| 1690 | if hum ~= nil then | |
| 1691 | hitr = true | |
| 1692 | end | |
| 1693 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1694 | swait(5) | |
| 1695 | HHumanoid.PlatformStand = false | |
| 1696 | hitr = false | |
| 1697 | end), hum) | |
| 1698 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1699 | velocity = Vector3.new(0, 20, 0), | |
| 1700 | P = 5000, | |
| 1701 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1702 | Parent = hit | |
| 1703 | }) | |
| 1704 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1705 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1706 | velocity = Vector3.new(0, 20, 0), | |
| 1707 | P = 5000, | |
| 1708 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1709 | Parent = hit | |
| 1710 | }) | |
| 1711 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1712 | elseif Type == "Snare" then | |
| 1713 | local bp = Create("BodyPosition")({
| |
| 1714 | P = 2000, | |
| 1715 | D = 100, | |
| 1716 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1717 | position = hit.Parent.Torso.Position, | |
| 1718 | Parent = hit.Parent.Torso | |
| 1719 | }) | |
| 1720 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1721 | elseif Type == "Slashnare" then | |
| 1722 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
| |
| 1723 | for i = 1, math.random(4, 5) do | |
| 1724 | Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
| |
| 1725 | end | |
| 1726 | local bp = Create("BodyPosition")({
| |
| 1727 | P = 2000, | |
| 1728 | D = 100, | |
| 1729 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1730 | position = hit.Parent.Torso.Position, | |
| 1731 | Parent = hit.Parent.Torso | |
| 1732 | }) | |
| 1733 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1734 | elseif Type == "Spike" then | |
| 1735 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
| 1736 | local bp = Create("BodyPosition")({
| |
| 1737 | P = 2000, | |
| 1738 | D = 100, | |
| 1739 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1740 | position = hit.Parent.Torso.Position, | |
| 1741 | Parent = hit.Parent.Torso | |
| 1742 | }) | |
| 1743 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1744 | elseif Type == "Freeze" then | |
| 1745 | local BodPos = Create("BodyPosition")({
| |
| 1746 | P = 50000, | |
| 1747 | D = 1000, | |
| 1748 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1749 | position = hit.Parent.Torso.Position, | |
| 1750 | Parent = hit.Parent.Torso | |
| 1751 | }) | |
| 1752 | local BodGy = Create("BodyGyro")({
| |
| 1753 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
| 1754 | P = 20000, | |
| 1755 | Parent = hit.Parent.Torso, | |
| 1756 | cframe = hit.Parent.Torso.CFrame | |
| 1757 | }) | |
| 1758 | hit.Parent.Torso.Anchored = true | |
| 1759 | coroutine.resume(coroutine.create(function(Part) | |
| 1760 | swait(1.5) | |
| 1761 | Part.Anchored = false | |
| 1762 | end), hit.Parent.Torso) | |
| 1763 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 1764 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 1765 | end | |
| 1766 | local debounce = Create("BoolValue")({
| |
| 1767 | Name = "DebounceHit", | |
| 1768 | Parent = hit.Parent, | |
| 1769 | Value = true | |
| 1770 | }) | |
| 1771 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1772 | c = Instance.new("ObjectValue")
| |
| 1773 | c.Name = "creator" | |
| 1774 | c.Value = Player | |
| 1775 | c.Parent = h | |
| 1776 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1777 | end | |
| 1778 | end | |
| 1779 | function ShowDamage(Pos, Text, Time, Color) | |
| 1780 | local Rate = 0.03333333333333333 | |
| 1781 | local Pos = Pos or Vector3.new(0, 0, 0) | |
| 1782 | local Text = Text or "" | |
| 1783 | local Time = Time or 2 | |
| 1784 | local Color = Color or Color3.new(1, 0, 1) | |
| 1785 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 1786 | EffectPart.Anchored = true | |
| 1787 | local BillboardGui = Create("BillboardGui")({
| |
| 1788 | Size = UDim2.new(3, 0, 3, 0), | |
| 1789 | Adornee = EffectPart, | |
| 1790 | Parent = EffectPart | |
| 1791 | }) | |
| 1792 | local TextLabel = Create("TextLabel")({
| |
| 1793 | BackgroundTransparency = 1, | |
| 1794 | Size = UDim2.new(1, 0, 1, 0), | |
| 1795 | Text = Text, | |
| 1796 | TextColor3 = Color, | |
| 1797 | TextScaled = true, | |
| 1798 | Font = Enum.Font.ArialBold, | |
| 1799 | Parent = BillboardGui | |
| 1800 | }) | |
| 1801 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 1802 | EffectPart.Parent = game:GetService("Workspace")
| |
| 1803 | delay(0, function() | |
| 1804 | local Frames = Time / Rate | |
| 1805 | for Frame = 1, Frames do | |
| 1806 | wait(Rate) | |
| 1807 | local Percent = Frame / Frames | |
| 1808 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 1809 | TextLabel.TextTransparency = Percent | |
| 1810 | end | |
| 1811 | if EffectPart and EffectPart.Parent then | |
| 1812 | EffectPart:Destroy() | |
| 1813 | end | |
| 1814 | end) | |
| 1815 | end | |
| 1816 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 1817 | for _, c in pairs(workspace:children()) do | |
| 1818 | local hum = c:findFirstChild("Humanoid")
| |
| 1819 | if hum ~= nil then | |
| 1820 | local head = c:findFirstChild("Torso")
| |
| 1821 | if head ~= nil then | |
| 1822 | local targ = head.Position - Part.Position | |
| 1823 | local mag = targ.magnitude | |
| 1824 | if magni >= mag and c.Name ~= Player.Name then | |
| 1825 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 1826 | end | |
| 1827 | end | |
| 1828 | end | |
| 1829 | end | |
| 1830 | end | |
| 1831 | ||
| 1832 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
| 1833 | for _, c in pairs(workspace:children()) do | |
| 1834 | local hum = c:findFirstChild("Humanoid")
| |
| 1835 | if hum ~= nil then | |
| 1836 | local head = c:findFirstChild("Torso")
| |
| 1837 | if head ~= nil then | |
| 1838 | local targ = head.Position - Part.Position | |
| 1839 | local mag = targ.magnitude | |
| 1840 | if magni >= mag and c.Name ~= Player.Name then | |
| 1841 | MagicBlock(BrickColor.new("Lime green"),head.CFrame,5,5,5,1,1,1,0.05)
| |
| 1842 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 1843 | end | |
| 1844 | end | |
| 1845 | end | |
| 1846 | end | |
| 1847 | end | |
| 1848 | ||
| 1849 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 1850 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 1851 | end | |
| 1852 | ||
| 1853 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
| 1854 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1855 | prt.Anchored=true | |
| 1856 | prt.CFrame=cframe | |
| 1857 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
| |
| 1858 | --http://www.roblox.com/asset/?id=4770560 | |
| 1859 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1860 | CF=prt.CFrame | |
| 1861 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
| 1862 | for i=0,1,0.2 do | |
| 1863 | wait() | |
| 1864 | Part.CFrame=CF*cf(0,0,-0.4) | |
| 1865 | end | |
| 1866 | for i=0,1,delay do | |
| 1867 | wait() | |
| 1868 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
| 1869 | Mesh.Scale=Mesh.Scale | |
| 1870 | end | |
| 1871 | for i=0,1,0.1 do | |
| 1872 | wait() | |
| 1873 | Part.Transparency=i | |
| 1874 | end | |
| 1875 | Part.Parent=nil | |
| 1876 | end),prt,msh,CF) | |
| 1877 | end | |
| 1878 | ||
| 1879 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1880 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1881 | prt.Anchored=true | |
| 1882 | prt.Material = "Neon" | |
| 1883 | prt.CFrame=cframe | |
| 1884 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1885 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1886 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1887 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1888 | for i=0,1,delay do | |
| 1889 | swait() | |
| 1890 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1891 | Part.Transparency=i | |
| 1892 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1893 | end | |
| 1894 | Part.Parent=nil | |
| 1895 | end),prt,msh) | |
| 1896 | end | |
| 1897 | ||
| 1898 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1899 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1900 | prt.Anchored=true | |
| 1901 | prt.Material = "Neon" | |
| 1902 | prt.CFrame=cframe | |
| 1903 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1904 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1905 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1906 | local rtype = rottype | |
| 1907 | for i=0,1,delay do | |
| 1908 | swait() | |
| 1909 | if rtype == 1 then | |
| 1910 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1911 | elseif rtype == 2 then | |
| 1912 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1913 | end | |
| 1914 | Part.Transparency=i | |
| 1915 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1916 | end | |
| 1917 | Part.Parent=nil | |
| 1918 | end),prt,msh) | |
| 1919 | end | |
| 1920 | ||
| 1921 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1922 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1923 | prt.Anchored=true | |
| 1924 | prt.CFrame=cframe | |
| 1925 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1926 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1927 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1928 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1929 | for i=0,1,delay do | |
| 1930 | wait() | |
| 1931 | Part.Transparency=i | |
| 1932 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1933 | end | |
| 1934 | Part.Parent=nil | |
| 1935 | end),prt,msh) | |
| 1936 | end | |
| 1937 | ||
| 1938 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1939 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1940 | prt.Anchored=true | |
| 1941 | prt.Material = "Neon" | |
| 1942 | prt.CFrame=cframe | |
| 1943 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1944 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1945 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1946 | local rtype = rottype | |
| 1947 | for i=0,1,delay do | |
| 1948 | swait() | |
| 1949 | if rtype == 1 then | |
| 1950 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1951 | elseif rtype == 2 then | |
| 1952 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1953 | end | |
| 1954 | Part.Transparency=i | |
| 1955 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1956 | end | |
| 1957 | Part.Parent=nil | |
| 1958 | end),prt,msh) | |
| 1959 | end | |
| 1960 | ||
| 1961 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
| 1962 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1963 | prt.Anchored=true | |
| 1964 | prt.Material = "Neon" | |
| 1965 | prt.CFrame=cframe | |
| 1966 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
| 1967 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
| 1968 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
| |
| 1969 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1970 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1971 | local rtype = rottype | |
| 1972 | for i=0,1,delay do | |
| 1973 | swait() | |
| 1974 | if rtype == 1 then | |
| 1975 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1976 | elseif rtype == 2 then | |
| 1977 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1978 | end | |
| 1979 | dec.Transparency=i | |
| 1980 | dec2.Transparency=i | |
| 1981 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 1982 | end | |
| 1983 | Part.Parent=nil | |
| 1984 | end),prt,msh) | |
| 1985 | end | |
| 1986 | ||
| 1987 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
| 1988 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1989 | prt.Anchored=true | |
| 1990 | prt.Material = "Neon" | |
| 1991 | prt.CFrame=cframe | |
| 1992 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
| |
| 1993 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1994 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1995 | local rtype = rottype | |
| 1996 | for i=0,1,delay do | |
| 1997 | swait() | |
| 1998 | if rtype == 1 then | |
| 1999 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 2000 | elseif rtype == 2 then | |
| 2001 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 2002 | end | |
| 2003 | prt.Transparency=i | |
| 2004 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 2005 | end | |
| 2006 | Part.Parent=nil | |
| 2007 | end),prt,msh) | |
| 2008 | end | |
| 2009 | ||
| 2010 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
| 2011 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2012 | prt.Anchored=true | |
| 2013 | prt.Material = "Neon" | |
| 2014 | prt.CFrame=cframe | |
| 2015 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
| |
| 2016 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2017 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2018 | local rtype = rottype | |
| 2019 | for i=0,1,delay do | |
| 2020 | swait() | |
| 2021 | if rtype == 1 then | |
| 2022 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
| 2023 | elseif rtype == 2 then | |
| 2024 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
| 2025 | end | |
| 2026 | prt.Transparency=i | |
| 2027 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
| 2028 | end | |
| 2029 | Part.Parent=nil | |
| 2030 | end),prt,msh) | |
| 2031 | end | |
| 2032 | ||
| 2033 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
| 2034 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2035 | prt.Anchored=true | |
| 2036 | prt.Material = "Neon" | |
| 2037 | prt.CFrame=cframe | |
| 2038 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2039 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2040 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2041 | local rtype = rottype | |
| 2042 | for i=0,1,delay do | |
| 2043 | swait() | |
| 2044 | if rtype == 1 then | |
| 2045 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 2046 | elseif rtype == 2 then | |
| 2047 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 2048 | end | |
| 2049 | prt.Transparency=i | |
| 2050 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 2051 | end | |
| 2052 | Part.Parent=nil | |
| 2053 | end),prt,msh) | |
| 2054 | end | |
| 2055 | ||
| 2056 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 2057 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2058 | prt.Anchored=true | |
| 2059 | prt.Material = "Neon" | |
| 2060 | prt.CFrame=cframe | |
| 2061 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2062 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2063 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2064 | local rtype = rottype | |
| 2065 | for i=0,1,delay do | |
| 2066 | swait() | |
| 2067 | if rtype == 1 then | |
| 2068 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 2069 | elseif rtype == 2 then | |
| 2070 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 2071 | end | |
| 2072 | prt.Transparency=i | |
| 2073 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2074 | end | |
| 2075 | Part.Parent=nil | |
| 2076 | end),prt,msh) | |
| 2077 | end | |
| 2078 | ||
| 2079 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 2080 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2081 | prt.Anchored=false | |
| 2082 | prt.CFrame=cframe | |
| 2083 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2084 | local wld=weld(prt,prt,Parent,cframe) | |
| 2085 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2086 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 2087 | for i=0,1,delay do | |
| 2088 | wait() | |
| 2089 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
| 2090 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2091 | Part.Transparency=i | |
| 2092 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2093 | end | |
| 2094 | Part.Parent=nil | |
| 2095 | end),prt,msh,wld) | |
| 2096 | end | |
| 2097 | ||
| 2098 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 2099 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2100 | prt.Anchored=false | |
| 2101 | prt.CFrame=cframe | |
| 2102 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2103 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
| 2104 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2105 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 2106 | for i=0,1,delay do | |
| 2107 | wait() | |
| 2108 | Weld.C0=euler(i*20,0,0) | |
| 2109 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2110 | Part.Transparency=i | |
| 2111 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2112 | end | |
| 2113 | Part.Parent=nil | |
| 2114 | end),prt,msh,wld) | |
| 2115 | end | |
| 2116 | ||
| 2117 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2118 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2119 | prt.Anchored=true | |
| 2120 | prt.CFrame=cframe | |
| 2121 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2122 | game:GetService("Debris"):AddItem(prt,2)
| |
| 2123 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2124 | for i=0,1,delay do | |
| 2125 | wait() | |
| 2126 | Part.CFrame=Part.CFrame | |
| 2127 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2128 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2129 | prt2.Anchored=true | |
| 2130 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2131 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
| |
| 2132 | game:GetService("Debris"):AddItem(prt2,2)
| |
| 2133 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2134 | for i=0,1,0.1 do | |
| 2135 | wait() | |
| 2136 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
| 2137 | end | |
| 2138 | Part.Parent=nil | |
| 2139 | end),prt2,msh2) | |
| 2140 | end | |
| 2141 | for i=0,1,delay*2 do | |
| 2142 | wait() | |
| 2143 | Part.CFrame=Part.CFrame | |
| 2144 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
| 2145 | end | |
| 2146 | Part.Parent=nil | |
| 2147 | end),prt,msh) | |
| 2148 | end | |
| 2149 | ||
| 2150 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2151 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2152 | prt.Anchored=true | |
| 2153 | prt.CFrame=cframe | |
| 2154 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2155 | game:GetService("Debris"):AddItem(prt,2)
| |
| 2156 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2157 | for i=0,1,delay do | |
| 2158 | wait() | |
| 2159 | Part.CFrame=Part.CFrame | |
| 2160 | Part.Transparency=i | |
| 2161 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2162 | end | |
| 2163 | Part.Parent=nil | |
| 2164 | end),prt,msh) | |
| 2165 | end | |
| 2166 | ||
| 2167 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
| 2168 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2169 | prt.Anchored=true | |
| 2170 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2171 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2172 | game:GetService("Debris"):AddItem(prt,2)
| |
| 2173 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
| 2174 | CF=Part.CFrame | |
| 2175 | Numbb=0 | |
| 2176 | randnumb=math.random()/10 | |
| 2177 | rand1=math.random()/10 | |
| 2178 | for i=0,1,rand1 do | |
| 2179 | wait() | |
| 2180 | CF=CF*cf(0,math.random()/2,0) | |
| 2181 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
| 2182 | Part.CFrame=CF*euler(Numbb,0,0) | |
| 2183 | Part.Transparency=i | |
| 2184 | Numbb=Numbb+randnumb | |
| 2185 | end | |
| 2186 | Part.Parent=nil | |
| 2187 | end),prt,CF,Numbb,randnumb) | |
| 2188 | end | |
| 2189 | ||
| 2190 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2191 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2192 | prt.Anchored=true | |
| 2193 | prt.CFrame=cframe | |
| 2194 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
| |
| 2195 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2196 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2197 | for i=0,1,delay do | |
| 2198 | wait() | |
| 2199 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
| 2200 | Part.Transparency=i | |
| 2201 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2202 | end | |
| 2203 | Part.Parent=nil | |
| 2204 | end),prt,msh) | |
| 2205 | end | |
| 2206 | ||
| 2207 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2208 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2209 | prt.Anchored=true | |
| 2210 | prt.CFrame=cframe | |
| 2211 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
| |
| 2212 | game:GetService("Debris"):AddItem(prt,2)
| |
| 2213 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2214 | for i=0,1,delay do | |
| 2215 | wait() | |
| 2216 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
| 2217 | Part.Transparency=i | |
| 2218 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2219 | end | |
| 2220 | Part.Parent=nil | |
| 2221 | end),prt,msh) | |
| 2222 | end | |
| 2223 | ||
| 2224 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
| 2225 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2226 | prt.Anchored=true | |
| 2227 | prt.CFrame=cframe*cf(x,y,z) | |
| 2228 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
| |
| 2229 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2230 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
| 2231 | local num=math.random() | |
| 2232 | local num2=math.random(-3,2)+math.random() | |
| 2233 | local numm=0 | |
| 2234 | for i=0,1,delay*2 do | |
| 2235 | swait() | |
| 2236 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
| 2237 | Part.Transparency=i | |
| 2238 | numm=numm+0.01 | |
| 2239 | end | |
| 2240 | Part.Parent=nil | |
| 2241 | Mesh.Parent=nil | |
| 2242 | end),prt,msh,x,y,z) | |
| 2243 | end | |
| 2244 | ||
| 2245 | function dmgstart(dmg,what) | |
| 2246 | hitcon = what.Touched:connect(function(hit) | |
| 2247 | local hum = hit.Parent:FindFirstChild("Humanoid")
| |
| 2248 | if hum and not hum:IsDescendantOf(Character) then | |
| 2249 | hum:TakeDamage(dmg) | |
| 2250 | end | |
| 2251 | end) | |
| 2252 | end | |
| 2253 | ||
| 2254 | function dmgstop() | |
| 2255 | hitcon:disconnect() | |
| 2256 | end | |
| 2257 | ||
| 2258 | function Cloak() | |
| 2259 | Face.Parent=nil | |
| 2260 | cloaked=true | |
| 2261 | for _,v in pairs(Torso.Parent:children()) do | |
| 2262 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 2263 | coroutine.resume(coroutine.create(function() | |
| 2264 | for i=0,1,0.2 do | |
| 2265 | wait() | |
| 2266 | v.Transparency=i | |
| 2267 | end | |
| 2268 | v.Transparency=1 | |
| 2269 | end)) | |
| 2270 | end | |
| 2271 | if v.className=="Hat" then | |
| 2272 | hatp=v.Handle | |
| 2273 | coroutine.resume(coroutine.create(function(derp) | |
| 2274 | for i=0,1,0.2 do | |
| 2275 | wait() | |
| 2276 | derp.Transparency=i | |
| 2277 | end | |
| 2278 | derp.Transparency=1 | |
| 2279 | end),hatp) | |
| 2280 | end | |
| 2281 | end | |
| 2282 | for _,v in pairs(m:children()) do | |
| 2283 | if v.className=="Part" then | |
| 2284 | coroutine.resume(coroutine.create(function() | |
| 2285 | for i=0,1,0.2 do | |
| 2286 | wait() | |
| 2287 | v.Transparency=i | |
| 2288 | end | |
| 2289 | v.Transparency=1 | |
| 2290 | end)) | |
| 2291 | end | |
| 2292 | end | |
| 2293 | end | |
| 2294 | ||
| 2295 | function UnCloak() | |
| 2296 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
| |
| 2297 | Face.Parent=Head | |
| 2298 | cloaked=false | |
| 2299 | for _,v in pairs(Torso.Parent:children()) do | |
| 2300 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 2301 | coroutine.resume(coroutine.create(function() | |
| 2302 | for i=0,1,0.1 do | |
| 2303 | wait() | |
| 2304 | v.Transparency=v.Transparency-0.1 | |
| 2305 | end | |
| 2306 | v.Transparency=0 | |
| 2307 | end)) | |
| 2308 | end | |
| 2309 | if v.className=="Hat" then | |
| 2310 | hatp=v.Handle | |
| 2311 | coroutine.resume(coroutine.create(function(derp) | |
| 2312 | for i=0,1,0.1 do | |
| 2313 | wait() | |
| 2314 | derp.Transparency=derp.Transparency-0.1 | |
| 2315 | end | |
| 2316 | derp.Transparency=0 | |
| 2317 | end),hatp) | |
| 2318 | end | |
| 2319 | end | |
| 2320 | for _,v in pairs(m:children()) do | |
| 2321 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
| 2322 | coroutine.resume(coroutine.create(function() | |
| 2323 | for i=0,1,0.1 do | |
| 2324 | wait() | |
| 2325 | v.Transparency=v.Transparency-0.1 | |
| 2326 | end | |
| 2327 | v.Transparency=0 | |
| 2328 | end)) | |
| 2329 | v.Transparency=0 | |
| 2330 | end | |
| 2331 | end | |
| 2332 | end | |
| 2333 | ||
| 2334 | local origcolor = BrickColor.new("Lime green")
| |
| 2335 | ---- This section of explosions. | |
| 2336 | function Explode(rad,par,pitch,vol,mindam,maxdam) | |
| 2337 | local expart = Instance.new("Part",char)
| |
| 2338 | local expart2 = Instance.new("Part",char)
| |
| 2339 | local rin = Instance.new("Part",char)
| |
| 2340 | local rin2 = Instance.new("Part",char)
| |
| 2341 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 2342 | partMesh.MeshType = "Sphere" | |
| 2343 | local partMesh2 = Instance.new("SpecialMesh",expart2)
| |
| 2344 | partMesh2.MeshType = "Sphere" | |
| 2345 | local partMesh3 = Instance.new("SpecialMesh",rin)
| |
| 2346 | partMesh3.MeshType = "Brick" | |
| 2347 | local partMesh4 = Instance.new("SpecialMesh",rin2)
| |
| 2348 | partMesh4.MeshType = "Brick" | |
| 2349 | CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
| |
| 2350 | partMesh.Scale = vt(rad,rad,rad) | |
| 2351 | expart.Size = vt(1,1,1) | |
| 2352 | expart.Transparency = 0 | |
| 2353 | expart.Anchored = true | |
| 2354 | expart.Material = "Neon" | |
| 2355 | expart.BrickColor = bc("White")
| |
| 2356 | expart.CFrame = par.CFrame | |
| 2357 | partMesh2.Scale = vt(rad,rad,rad) | |
| 2358 | expart2.Size = vt(1.15,1.15,1.15) | |
| 2359 | expart2.Transparency = 0.5 | |
| 2360 | expart2.Anchored = true | |
| 2361 | expart2.Material = "Neon" | |
| 2362 | expart2.BrickColor = par.BrickColor | |
| 2363 | expart2.CFrame = par.CFrame | |
| 2364 | rin.Size = vt(1.15,1.15,1.15) | |
| 2365 | rin.Transparency = 1 | |
| 2366 | rin.Anchored = true | |
| 2367 | rin.Material = "Neon" | |
| 2368 | rin.BrickColor = par.BrickColor | |
| 2369 | rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 2370 | rin2.Size = vt(1.15,1.15,1.15) | |
| 2371 | rin2.Transparency = 1 | |
| 2372 | rin2.Anchored = true | |
| 2373 | rin2.Material = "Neon" | |
| 2374 | rin2.BrickColor = par.BrickColor | |
| 2375 | rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 2376 | partMesh3.Scale = vt(0,1,0) | |
| 2377 | partMesh4.Scale = vt(0,1,0) | |
| 2378 | local dec2 = Instance.new("Decal", rin)
| |
| 2379 | dec2.Face = "Top" | |
| 2380 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 2381 | dec2.Parent = rin | |
| 2382 | local dec2b = dec2:Clone() | |
| 2383 | dec2b.Face = "Bottom" | |
| 2384 | dec2b.Parent = rin | |
| 2385 | ||
| 2386 | local dec2a = Instance.new("Decal", rin2)
| |
| 2387 | dec2a.Face = "Top" | |
| 2388 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 2389 | dec2a.Parent = rin2 | |
| 2390 | local dec2ab = dec2a:Clone() | |
| 2391 | dec2ab.Face = "Bottom" | |
| 2392 | dec2ab.Parent = rin2 | |
| 2393 | expart.CanCollide = false | |
| 2394 | expart2.CanCollide = false | |
| 2395 | rin.CanCollide = false | |
| 2396 | rin2.CanCollide = false | |
| 2397 | MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal") | |
| 2398 | local value = 1*rad/6.5 | |
| 2399 | for i = 0, 199 do | |
| 2400 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 2401 | expart.CFrame = expart.CFrame | |
| 2402 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
| 2403 | expart2.CFrame = expart.CFrame | |
| 2404 | value = value - 0.035*rad/30 | |
| 2405 | if value < 7.5 then | |
| 2406 | partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5) | |
| 2407 | rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0) | |
| 2408 | partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5) | |
| 2409 | rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0) | |
| 2410 | end | |
| 2411 | if value < 0 then | |
| 2412 | dec2.Transparency = dec2.Transparency + 0.025 | |
| 2413 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
| 2414 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
| 2415 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
| 2416 | expart.Transparency = expart.Transparency + 0.025 | |
| 2417 | expart2.Transparency = expart2.Transparency + 0.025 | |
| 2418 | rin.Transparency = rin.Transparency + 0.025 | |
| 2419 | rin2.Transparency = rin2.Transparency + 0.025 | |
| 2420 | end | |
| 2421 | swait() | |
| 2422 | end | |
| 2423 | game:GetService("Debris"):AddItem(expart, 1)
| |
| 2424 | game:GetService("Debris"):AddItem(expart2, 1)
| |
| 2425 | game:GetService("Debris"):AddItem(rin, 1)
| |
| 2426 | game:GetService("Debris"):AddItem(rin2, 1)
| |
| 2427 | end | |
| 2428 | ||
| 2429 | function ExplodeShort(rad,par,pitch,vol,mindam,maxdam) | |
| 2430 | local expart = Instance.new("Part",char)
| |
| 2431 | local expart2 = Instance.new("Part",char)
| |
| 2432 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 2433 | partMesh.MeshType = "Sphere" | |
| 2434 | local partMesh2 = Instance.new("SpecialMesh",expart2)
| |
| 2435 | partMesh2.MeshType = "Sphere" | |
| 2436 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
| |
| 2437 | partMesh.Scale = vt(rad,rad,rad) | |
| 2438 | expart.Size = vt(1,1,1) | |
| 2439 | expart.Transparency = 0 | |
| 2440 | expart.Anchored = true | |
| 2441 | expart.Material = "Neon" | |
| 2442 | expart.BrickColor = bc("White")
| |
| 2443 | expart.CFrame = par.CFrame | |
| 2444 | partMesh2.Scale = vt(rad,rad,rad) | |
| 2445 | expart2.Size = vt(1.15,1.15,1.15) | |
| 2446 | expart2.Transparency = 0.5 | |
| 2447 | expart2.Anchored = true | |
| 2448 | expart2.Material = "Neon" | |
| 2449 | expart2.BrickColor = par.BrickColor | |
| 2450 | expart2.CFrame = par.CFrame | |
| 2451 | expart.CanCollide = false | |
| 2452 | expart2.CanCollide = false | |
| 2453 | MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal") | |
| 2454 | local value = 1*rad/6.5 | |
| 2455 | for i = 0, 75 do | |
| 2456 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 2457 | expart.CFrame = expart.CFrame | |
| 2458 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
| 2459 | expart2.CFrame = expart.CFrame | |
| 2460 | value = value - 0.035*rad/5 | |
| 2461 | if value < 0 then | |
| 2462 | value = 0 | |
| 2463 | expart.Transparency = expart.Transparency + 0.05 | |
| 2464 | expart2.Transparency = expart2.Transparency + 0.05 | |
| 2465 | end | |
| 2466 | swait() | |
| 2467 | end | |
| 2468 | game:GetService("Debris"):AddItem(expart, 1)
| |
| 2469 | game:GetService("Debris"):AddItem(expart2, 1)
| |
| 2470 | end | |
| 2471 | ||
| 2472 | function AreaDanger(rad,par,mindam,maxdam) | |
| 2473 | local expart = Instance.new("Part",char)
| |
| 2474 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 2475 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
| |
| 2476 | partMesh.MeshType = "Sphere" | |
| 2477 | partMesh.Scale = vt(rad,rad,rad) | |
| 2478 | expart.Size = vt(1,1,1) | |
| 2479 | expart.Transparency = 0.5 | |
| 2480 | expart.Anchored = true | |
| 2481 | expart.Material = "Neon" | |
| 2482 | expart.CanCollide = false | |
| 2483 | expart.BrickColor = par.BrickColor | |
| 2484 | expart.CFrame = par.CFrame | |
| 2485 | local value = 1*rad/5 | |
| 2486 | MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1) | |
| 2487 | for i = 0, 14 do | |
| 2488 | wait() | |
| 2489 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 2490 | expart.CFrame = expart.CFrame | |
| 2491 | value = value - 0.035*rad | |
| 2492 | if value < 0 then | |
| 2493 | value = 0 | |
| 2494 | end | |
| 2495 | end | |
| 2496 | wait(0.25) | |
| 2497 | CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
| |
| 2498 | wait(0.5) | |
| 2499 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
| |
| 2500 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
| |
| 2501 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
| 2502 | MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025) | |
| 2503 | for i = 0, 14 do | |
| 2504 | wait() | |
| 2505 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 2506 | expart.CFrame = expart.CFrame | |
| 2507 | value = value - 0.035*rad/2 | |
| 2508 | end | |
| 2509 | expart.Transparency = 1 | |
| 2510 | game:GetService("Debris"):AddItem(expart, 5)
| |
| 2511 | end | |
| 2512 | ||
| 2513 | function Swarmsplosions(negrad,rad,par,mindam,maxdam) | |
| 2514 | CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
| |
| 2515 | CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
| |
| 2516 | CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
| |
| 2517 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
| |
| 2518 | MagniDamageWithEffect(par, 5, 5,5, 5, "Normal") | |
| 2519 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025) | |
| 2520 | for i = 0, 24 do | |
| 2521 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2)) | |
| 2522 | end | |
| 2523 | for i = 0, 24 do | |
| 2524 | local expart = Instance.new("Part",char)
| |
| 2525 | expart.Transparency = 1 | |
| 2526 | expart.Anchored = true | |
| 2527 | expart.CanCollide = false | |
| 2528 | expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad)) | |
| 2529 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
| |
| 2530 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
| |
| 2531 | MagniDamage(expart, rad/2, mindam, maxdam, 20, "Normal") | |
| 2532 | MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025) | |
| 2533 | for i = 0, 9 do | |
| 2534 | MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2)) | |
| 2535 | end | |
| 2536 | game:GetService("Debris"):AddItem(expart, 2)
| |
| 2537 | wait(0.1) | |
| 2538 | end | |
| 2539 | end | |
| 2540 | ||
| 2541 | function EXterPlosion(par) | |
| 2542 | CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
| |
| 2543 | CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
| |
| 2544 | CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
| |
| 2545 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
| |
| 2546 | MagniDamageWithEffect(par, 5, 5,5, 5, "Normal") | |
| 2547 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005) | |
| 2548 | MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1) | |
| 2549 | for i = 0, 24 do | |
| 2550 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2)) | |
| 2551 | end | |
| 2552 | for i = 0, 24 do | |
| 2553 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2)) | |
| 2554 | end | |
| 2555 | end | |
| 2556 | ---- | |
| 2557 | ||
| 2558 | ||
| 2559 | function ring(type,pos,scale,value) | |
| 2560 | local type = type | |
| 2561 | local rng = Instance.new("Part", char)
| |
| 2562 | rng.Anchored = true | |
| 2563 | rng.BrickColor = origcolor | |
| 2564 | rng.CanCollide = false | |
| 2565 | rng.FormFactor = 3 | |
| 2566 | rng.Name = "Ring" | |
| 2567 | rng.Size = Vector3.new(1, 1, 1) | |
| 2568 | rng.Transparency = 0 | |
| 2569 | rng.TopSurface = 0 | |
| 2570 | rng.BottomSurface = 0 | |
| 2571 | rng.CFrame = pos | |
| 2572 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2573 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2574 | rngm.Scale = scale | |
| 2575 | local scaler2 = 1 | |
| 2576 | if type == "Add" then | |
| 2577 | scaler2 = 1*value | |
| 2578 | elseif type == "Divide" then | |
| 2579 | scaler2 = 1/value | |
| 2580 | end | |
| 2581 | coroutine.resume(coroutine.create(function() | |
| 2582 | for i = 0,10,0.1 do | |
| 2583 | swait() | |
| 2584 | if type == "Add" then | |
| 2585 | scaler2 = scaler2 - 0.01*value | |
| 2586 | elseif type == "Divide" then | |
| 2587 | scaler2 = scaler2 - 0.01/value | |
| 2588 | end | |
| 2589 | rng.Transparency = rng.Transparency + 0.01 | |
| 2590 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2591 | end | |
| 2592 | rng:Destroy() | |
| 2593 | end)) | |
| 2594 | end | |
| 2595 | ||
| 2596 | ||
| 2597 | function wave(type,pos,scale,value) | |
| 2598 | local type = type | |
| 2599 | local rng = Instance.new("Part", char)
| |
| 2600 | rng.Anchored = true | |
| 2601 | rng.BrickColor = origcolor | |
| 2602 | rng.CanCollide = false | |
| 2603 | rng.FormFactor = 3 | |
| 2604 | rng.Name = "Ring" | |
| 2605 | rng.Size = Vector3.new(1, 1, 1) | |
| 2606 | rng.Transparency = 0 | |
| 2607 | rng.TopSurface = 0 | |
| 2608 | rng.BottomSurface = 0 | |
| 2609 | rng.CFrame = pos | |
| 2610 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2611 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 2612 | rngm.Scale = scale | |
| 2613 | local scaler2 = 1 | |
| 2614 | if type == "Add" then | |
| 2615 | scaler2 = 1*value | |
| 2616 | elseif type == "Divide" then | |
| 2617 | scaler2 = 1/value | |
| 2618 | end | |
| 2619 | coroutine.resume(coroutine.create(function() | |
| 2620 | for i = 0,10,0.1 do | |
| 2621 | swait() | |
| 2622 | if type == "Add" then | |
| 2623 | scaler2 = scaler2 - 0.01*value | |
| 2624 | elseif type == "Divide" then | |
| 2625 | scaler2 = scaler2 - 0.01/value | |
| 2626 | end | |
| 2627 | rng.Transparency = rng.Transparency + 0.01 | |
| 2628 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2629 | end | |
| 2630 | rng:Destroy() | |
| 2631 | end)) | |
| 2632 | end | |
| 2633 | ||
| 2634 | function wind(type,pos,scale,value,speed) | |
| 2635 | local type = type | |
| 2636 | local rng = Instance.new("Part", char)
| |
| 2637 | rng.Anchored = true | |
| 2638 | rng.BrickColor = origcolor | |
| 2639 | rng.CanCollide = false | |
| 2640 | rng.FormFactor = 3 | |
| 2641 | rng.Name = "Ring" | |
| 2642 | rng.Size = Vector3.new(1, 1, 1) | |
| 2643 | rng.Transparency = 0 | |
| 2644 | rng.TopSurface = 0 | |
| 2645 | rng.BottomSurface = 0 | |
| 2646 | rng.CFrame = pos | |
| 2647 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2648 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 2649 | rngm.Scale = scale | |
| 2650 | local scaler2 = 1 | |
| 2651 | if type == "Add" then | |
| 2652 | scaler2 = 1*value | |
| 2653 | elseif type == "Divide" then | |
| 2654 | scaler2 = 1/value | |
| 2655 | end | |
| 2656 | coroutine.resume(coroutine.create(function() | |
| 2657 | for i = 0,10,0.1 do | |
| 2658 | swait() | |
| 2659 | if type == "Add" then | |
| 2660 | scaler2 = scaler2 - 0.01*value | |
| 2661 | elseif type == "Divide" then | |
| 2662 | scaler2 = scaler2 - 0.01/value | |
| 2663 | end | |
| 2664 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
| 2665 | rng.Transparency = rng.Transparency + 0.01 | |
| 2666 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2667 | end | |
| 2668 | rng:Destroy() | |
| 2669 | end)) | |
| 2670 | end | |
| 2671 | ||
| 2672 | function groundwind(type,pos,scale,value,speed) | |
| 2673 | local type = type | |
| 2674 | local rng = Instance.new("Part", char)
| |
| 2675 | rng.Anchored = true | |
| 2676 | rng.BrickColor = origcolor | |
| 2677 | rng.CanCollide = false | |
| 2678 | rng.FormFactor = 3 | |
| 2679 | rng.Name = "Ring" | |
| 2680 | rng.Size = Vector3.new(1, 1, 1) | |
| 2681 | rng.Transparency = 0 | |
| 2682 | rng.TopSurface = 0 | |
| 2683 | rng.BottomSurface = 0 | |
| 2684 | rng.CFrame = pos | |
| 2685 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2686 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 2687 | rngm.Scale = scale | |
| 2688 | local scaler2 = 1 | |
| 2689 | if type == "Add" then | |
| 2690 | scaler2 = 1*value | |
| 2691 | elseif type == "Divide" then | |
| 2692 | scaler2 = 1/value | |
| 2693 | end | |
| 2694 | coroutine.resume(coroutine.create(function() | |
| 2695 | for i = 0,10,0.1 do | |
| 2696 | swait() | |
| 2697 | if type == "Add" then | |
| 2698 | scaler2 = scaler2 - 0.01*value | |
| 2699 | elseif type == "Divide" then | |
| 2700 | scaler2 = scaler2 - 0.01/value | |
| 2701 | end | |
| 2702 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
| 2703 | rng.Transparency = rng.Transparency + 0.01 | |
| 2704 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2) | |
| 2705 | end | |
| 2706 | rng:Destroy() | |
| 2707 | end)) | |
| 2708 | end | |
| 2709 | ||
| 2710 | function sphere(type,pos,scale,value) | |
| 2711 | local type = type | |
| 2712 | local rng = Instance.new("Part", char)
| |
| 2713 | rng.Anchored = true | |
| 2714 | rng.BrickColor = origcolor | |
| 2715 | rng.CanCollide = false | |
| 2716 | rng.FormFactor = 3 | |
| 2717 | rng.Name = "Ring" | |
| 2718 | rng.Material = "Neon" | |
| 2719 | rng.Size = Vector3.new(1, 1, 1) | |
| 2720 | rng.Transparency = 0 | |
| 2721 | rng.TopSurface = 0 | |
| 2722 | rng.BottomSurface = 0 | |
| 2723 | rng.CFrame = pos | |
| 2724 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2725 | rngm.MeshType = "Sphere" | |
| 2726 | rngm.Scale = scale | |
| 2727 | local scaler2 = 1 | |
| 2728 | if type == "Add" then | |
| 2729 | scaler2 = 1*value | |
| 2730 | elseif type == "Divide" then | |
| 2731 | scaler2 = 1/value | |
| 2732 | end | |
| 2733 | coroutine.resume(coroutine.create(function() | |
| 2734 | for i = 0,10,0.1 do | |
| 2735 | swait() | |
| 2736 | if type == "Add" then | |
| 2737 | scaler2 = scaler2 - 0.01*value | |
| 2738 | elseif type == "Divide" then | |
| 2739 | scaler2 = scaler2 - 0.01/value | |
| 2740 | end | |
| 2741 | rng.Transparency = rng.Transparency + 0.01 | |
| 2742 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2743 | end | |
| 2744 | rng:Destroy() | |
| 2745 | end)) | |
| 2746 | end | |
| 2747 | ||
| 2748 | function beam(type,pos,scale,value) | |
| 2749 | local type = type | |
| 2750 | local rng = Instance.new("Part", char)
| |
| 2751 | rng.Anchored = true | |
| 2752 | rng.BrickColor = origcolor | |
| 2753 | rng.CanCollide = false | |
| 2754 | rng.FormFactor = 3 | |
| 2755 | rng.Name = "Ring" | |
| 2756 | rng.Material = "Neon" | |
| 2757 | rng.Size = Vector3.new(1, 1, 1) | |
| 2758 | rng.Transparency = 0 | |
| 2759 | rng.TopSurface = 0 | |
| 2760 | rng.BottomSurface = 0 | |
| 2761 | rng.CFrame = pos | |
| 2762 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2763 | rngm.MeshType = "Sphere" | |
| 2764 | rngm.Scale = scale | |
| 2765 | rngm.Scale = rngm.Scale + Vector3.new(0,10000,0) | |
| 2766 | local scaler2 = 0.5 | |
| 2767 | if type == "Add" then | |
| 2768 | scaler2 = 0.5*value | |
| 2769 | elseif type == "Divide" then | |
| 2770 | scaler2 = 0.5/value | |
| 2771 | end | |
| 2772 | coroutine.resume(coroutine.create(function() | |
| 2773 | for i = 0,10,0.1 do | |
| 2774 | swait() | |
| 2775 | if type == "Add" then | |
| 2776 | scaler2 = scaler2 - 0.01*value | |
| 2777 | elseif type == "Divide" then | |
| 2778 | scaler2 = scaler2 - 0.01/value | |
| 2779 | end | |
| 2780 | rng.Transparency = rng.Transparency + 0.01 | |
| 2781 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2782 | end | |
| 2783 | rng:Destroy() | |
| 2784 | end)) | |
| 2785 | end | |
| 2786 | ||
| 2787 | function first() | |
| 2788 | attack = true | |
| 2789 | for i = 0,3,0.1 do | |
| 2790 | swait() | |
| 2791 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(-20)),0.1) | |
| 2792 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(20)),.1) | |
| 2793 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(50)), 0.1) | |
| 2794 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
| 2795 | end | |
| 2796 | sphere("Divide",sorb.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),10)
| |
| 2797 | local lookvalue = 15 | |
| 2798 | coroutine.resume(coroutine.create(function() | |
| 2799 | local rat = Instance.new("Part")
| |
| 2800 | rat.Parent = char | |
| 2801 | rat.CFrame = root.CFrame | |
| 2802 | rat.Transparency = 1 | |
| 2803 | rat.CanCollide = false | |
| 2804 | rat.Anchored = true | |
| 2805 | for i = 0, 4 do | |
| 2806 | local lb = Instance.new("Part")
| |
| 2807 | CFuncs["Sound"].Create("rbxassetid://142070127", lb, 1, 1)
| |
| 2808 | CFuncs["Sound"].Create("rbxassetid://255679373", lb, 1, 1)
| |
| 2809 | lb.Parent = char | |
| 2810 | lb.BrickColor = origcolor | |
| 2811 | lb.CanCollide = false | |
| 2812 | lb.Material = "Neon" | |
| 2813 | lb.Anchored = true | |
| 2814 | lb.TopSurface = 0 | |
| 2815 | lb.BottomSurface = 0 | |
| 2816 | lb.Transparency = 1 | |
| 2817 | lb.Size = vt(0.5,0.5,0.5) | |
| 2818 | lb.CFrame = rat.CFrame + rat.CFrame.lookVector*lookvalue | |
| 2819 | lb.CFrame = lb.CFrame + Vector3.new(0,-3,0) | |
| 2820 | game:GetService("Debris"):AddItem(lb, 3)
| |
| 2821 | beam("Divide",lb.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),3.5)
| |
| 2822 | sphere("Divide",lb.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),3.5)
| |
| 2823 | ring("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,10),2.5)
| |
| 2824 | wave("Divide",lb.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.25,1),3.5)
| |
| 2825 | lookvalue = lookvalue + 15 | |
| 2826 | MagniDamage(lb, 5, 5, 5, "Normal") | |
| 2827 | wait(0.25) | |
| 2828 | end | |
| 2829 | rat:Destroy() | |
| 2830 | end)) | |
| 2831 | for i = 0,1,0.1 do | |
| 2832 | swait() | |
| 2833 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
| 2834 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
| 2835 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(20)), 0.5) | |
| 2836 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-70)), 0.5) | |
| 2837 | end | |
| 2838 | attack = false | |
| 2839 | end | |
| 2840 | ||
| 2841 | local dashing = false | |
| 2842 | ||
| 2843 | function dash() | |
| 2844 | dashing = true | |
| 2845 | attack = true | |
| 2846 | local bv = Instance.new("BodyVelocity")
| |
| 2847 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 2848 | bv.velocity = root.CFrame.lookVector*200 | |
| 2849 | bv.Parent = root | |
| 2850 | CFuncs["Sound"].Create("rbxassetid://200632211", root, 1, 0.5)
| |
| 2851 | ring("Divide",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,1,10),1.5)
| |
| 2852 | wave("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),2.5)
| |
| 2853 | for i = 0,1,0.1 do | |
| 2854 | swait() | |
| 2855 | bv.velocity = root.CFrame.lookVector*200 | |
| 2856 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(50),math.rad(0),math.rad(0)),0.5) | |
| 2857 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5) | |
| 2858 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(50)), 0.5) | |
| 2859 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(-50)), 0.5) | |
| 2860 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
| 2861 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
| 2862 | end | |
| 2863 | bv:Destroy() | |
| 2864 | attack = false | |
| 2865 | dashing = false | |
| 2866 | end | |
| 2867 | ||
| 2868 | function Spiraling() | |
| 2869 | attack = true | |
| 2870 | CFuncs["Sound"].Create("rbxassetid://214876666", root, 1, 1)
| |
| 2871 | sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),2.5)
| |
| 2872 | for i = 0,5,0.1 do | |
| 2873 | swait() | |
| 2874 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
| 2875 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 2876 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1) | |
| 2877 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1) | |
| 2878 | end | |
| 2879 | CFuncs["Sound"].Create("rbxassetid://138079095", root, 1.5, 0.4)
| |
| 2880 | CFuncs["Sound"].Create("rbxassetid://154723542", root, 2.5, 1)
| |
| 2881 | coroutine.resume(coroutine.create(function() | |
| 2882 | beam("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),2)
| |
| 2883 | sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1.5)
| |
| 2884 | for i = 0, 4 do | |
| 2885 | wait(0.1) | |
| 2886 | MagniDamage(root, 5, 5,5, 5, "Normal") | |
| 2887 | groundwind("Add",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(2,4),5)
| |
| 2888 | end | |
| 2889 | end)) | |
| 2890 | for z = 0, 2 do | |
| 2891 | for i = 0,1,0.5 do | |
| 2892 | swait() | |
| 2893 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5) | |
| 2894 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 2895 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 2896 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 2897 | end | |
| 2898 | for i = 0,1,0.5 do | |
| 2899 | swait() | |
| 2900 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5) | |
| 2901 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 2902 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 2903 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 2904 | end | |
| 2905 | for i = 0,1,0.5 do | |
| 2906 | swait() | |
| 2907 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5) | |
| 2908 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 2909 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 2910 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 2911 | end | |
| 2912 | for i = 0,1,0.5 do | |
| 2913 | swait() | |
| 2914 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5) | |
| 2915 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 2916 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 2917 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 2918 | end | |
| 2919 | end | |
| 2920 | attack = false | |
| 2921 | end | |
| 2922 | ||
| 2923 | function SkyBeam() | |
| 2924 | local currentws = hum.WalkSpeed | |
| 2925 | attack = true | |
| 2926 | hum.WalkSpeed = 0 | |
| 2927 | CFuncs["Sound"].Create("rbxassetid://138079095", cahr, 0.5, 0.4)
| |
| 2928 | sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),2.5)
| |
| 2929 | for i = 0,3,0.1 do | |
| 2930 | swait() | |
| 2931 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
| 2932 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.1) | |
| 2933 | RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.5, -0.5) * angles(math.rad(10), math.rad(0), math.rad(-80)), 0.1) | |
| 2934 | LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.5, -0.5) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.1) | |
| 2935 | end | |
| 2936 | local rng = Instance.new("Part", char)
| |
| 2937 | CFuncs["Sound"].Create("rbxassetid://343211019", char, 1, 0.6)
| |
| 2938 | rng.Anchored = true | |
| 2939 | rng.BrickColor = origcolor | |
| 2940 | rng.CanCollide = false | |
| 2941 | rng.FormFactor = 3 | |
| 2942 | rng.Name = "Ring" | |
| 2943 | rng.Material = "Neon" | |
| 2944 | rng.Size = Vector3.new(1, 1, 1) | |
| 2945 | rng.Transparency = 1 | |
| 2946 | rng.TopSurface = 0 | |
| 2947 | rng.BottomSurface = 0 | |
| 2948 | rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0) | |
| 2949 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2950 | rngm.MeshType = "Brick" | |
| 2951 | local dec = Instance.new("Decal",rng)
| |
| 2952 | dec.Texture = "http://www.roblox.com/asset/?id=852097462" | |
| 2953 | dec.Face = "Top" | |
| 2954 | local dec2 = dec:Clone() | |
| 2955 | dec2.Parent = rng | |
| 2956 | dec2.Face = "Bottom" | |
| 2957 | ||
| 2958 | local scaler2 = 1 | |
| 2959 | scaler2 = 1*3 | |
| 2960 | for i = 0,10,0.1 do | |
| 2961 | swait() | |
| 2962 | scaler2 = scaler2 - 0.01*3 | |
| 2963 | rng.Transparency = rng.Transparency + 0.01 | |
| 2964 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2) | |
| 2965 | end | |
| 2966 | groundwind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(3,4),math.random(2,10))
| |
| 2967 | wind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(2,3),math.random(2,10))
| |
| 2968 | CFuncs["Sound"].Create("rbxassetid://136007472", char, 0.5, 0.7)
| |
| 2969 | for i = 0,14,0.1 do | |
| 2970 | swait() | |
| 2971 | MagicBlock(origcolor,sorb.CFrame,1,1,1,1,1,1,0.25) | |
| 2972 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
| 2973 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.1) | |
| 2974 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(10)), 0.1) | |
| 2975 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.1) | |
| 2976 | end | |
| 2977 | for i = 0,2,0.1 do | |
| 2978 | swait() | |
| 2979 | MagicBlock(origcolor,sorb.CFrame,1,1,1,1,1,1,0.25) | |
| 2980 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),0.5) | |
| 2981 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 2982 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(10)), 0.5) | |
| 2983 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.5) | |
| 2984 | end | |
| 2985 | MagniDamage(root, 5, 5,5, 5, "Normal") | |
| 2986 | CFuncs["Sound"].Create("rbxassetid://157878578", char, 0.5, 0.5)
| |
| 2987 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 1, 1)
| |
| 2988 | CFuncs["Sound"].Create("rbxassetid://162271116", char, 0.5, 0.65)
| |
| 2989 | CFuncs["Sound"].Create("rbxassetid://151304356", char, 0.5, 0.35)
| |
| 2990 | CFuncs["Sound"].Create("rbxassetid://31762335", char, 0.5, 0.5)
| |
| 2991 | beam("Add",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),5)
| |
| 2992 | coroutine.resume(coroutine.create(function() | |
| 2993 | for i = 0, 9 do | |
| 2994 | wait(0.1) | |
| 2995 | groundwind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(3,4),math.random(2,10))
| |
| 2996 | wind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(2,3),math.random(2,10))
| |
| 2997 | end | |
| 2998 | end)) | |
| 2999 | wave("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),5)
| |
| 3000 | wave("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(100,0,100),5)
| |
| 3001 | ring("Add",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,100),7.5)
| |
| 3002 | coroutine.resume(coroutine.create(function() | |
| 3003 | for i = 0,10,0.1 do | |
| 3004 | swait() | |
| 3005 | scaler2 = scaler2 - 0.01*3 | |
| 3006 | rng.Transparency = rng.Transparency + 0.01 | |
| 3007 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2) | |
| 3008 | end | |
| 3009 | rng:Destroy() | |
| 3010 | end)) | |
| 3011 | attack = false | |
| 3012 | hum.WalkSpeed = currentws | |
| 3013 | end | |
| 3014 | ||
| 3015 | --- Above is skillmoves to function. | |
| 3016 | --- I swear im watching you. | |
| 3017 | --- Dont leak this one... | |
| 3018 | -------------- Attack Combo Section ------------- | |
| 3019 | ||
| 3020 | function attackone() | |
| 3021 | attack = true | |
| 3022 | for i = 0,2,0.1 do | |
| 3023 | swait() | |
| 3024 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.2) | |
| 3025 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.2) | |
| 3026 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2) | |
| 3027 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 3028 | end | |
| 3029 | ||
| 3030 | local a = Instance.new("Part",Character)
| |
| 3031 | a.Name = "Direction" | |
| 3032 | a.Anchored = true | |
| 3033 | a.BrickColor = bc("Bright red")
| |
| 3034 | a.Material = "Neon" | |
| 3035 | a.Transparency = 1 | |
| 3036 | a.CanCollide = false | |
| 3037 | local ray = Ray.new( | |
| 3038 | sorb.CFrame.p, -- origin | |
| 3039 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
| 3040 | ) | |
| 3041 | local ignore = Character | |
| 3042 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3043 | a.BottomSurface = 10 | |
| 3044 | a.TopSurface = 10 | |
| 3045 | local distance = (root.CFrame.p - position).magnitude | |
| 3046 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 3047 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 3048 | local lb = Instance.new("Part")
| |
| 3049 | CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1)
| |
| 3050 | lb.Parent = char | |
| 3051 | lb.BrickColor = origcolor | |
| 3052 | lb.CanCollide = false | |
| 3053 | lb.Material = "Neon" | |
| 3054 | lb.Anchored = true | |
| 3055 | lb.TopSurface = 0 | |
| 3056 | lb.BottomSurface = 0 | |
| 3057 | lb.Transparency = 0 | |
| 3058 | lb.Size = vt(2,2,2) | |
| 3059 | lb.CFrame = a.CFrame | |
| 3060 | lb.Anchored = false | |
| 3061 | local thingery = Instance.new("SpecialMesh",lb)
| |
| 3062 | thingery.MeshType = "Sphere" | |
| 3063 | game:GetService("Debris"):AddItem(lb, 5)
| |
| 3064 | local bv = Instance.new("BodyVelocity")
| |
| 3065 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3066 | bv.velocity = a.CFrame.lookVector*100 | |
| 3067 | bv.Parent = lb | |
| 3068 | local hitted = false | |
| 3069 | game:GetService("Debris"):AddItem(a, 0.1)
| |
| 3070 | coroutine.resume(coroutine.create(function() | |
| 3071 | while wait(0.5) do | |
| 3072 | if hitted == false or lb.Parent ~= nil then | |
| 3073 | wave("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),10)
| |
| 3074 | end | |
| 3075 | if hitted == true or lb.Parent == nil then | |
| 3076 | break | |
| 3077 | end | |
| 3078 | end | |
| 3079 | end)) | |
| 3080 | wait(0.01) | |
| 3081 | lb.Touched:connect(function(hit) | |
| 3082 | Damagefunc(lb, hit, 522, 12, 0, "Normal", RootPart, 0.3, "588733541", 0.8) | |
| 3083 | end) | |
| 3084 | attack = false | |
| 3085 | end | |
| 3086 | ||
| 3087 | function attacktwo() | |
| 3088 | attack = true | |
| 3089 | for i = 0,2,0.1 do | |
| 3090 | MagicBlock(origcolor,sorb2.CFrame,1,1,1,0.1,0.1,0.1,0.25) | |
| 3091 | swait() | |
| 3092 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.2) | |
| 3093 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.2) | |
| 3094 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 3095 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 3096 | end | |
| 3097 | ||
| 3098 | local a = Instance.new("Part",Character)
| |
| 3099 | a.Name = "Direction" | |
| 3100 | a.Anchored = true | |
| 3101 | a.BrickColor = bc("Bright red")
| |
| 3102 | a.Material = "Neon" | |
| 3103 | a.Transparency = 1 | |
| 3104 | a.CanCollide = false | |
| 3105 | local ray = Ray.new( | |
| 3106 | sorb2.CFrame.p, -- origin | |
| 3107 | (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction | |
| 3108 | ) | |
| 3109 | local ignore = Character | |
| 3110 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3111 | a.BottomSurface = 10 | |
| 3112 | a.TopSurface = 10 | |
| 3113 | local distance = (root.CFrame.p - position).magnitude | |
| 3114 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 3115 | a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 3116 | local lb = Instance.new("Part")
| |
| 3117 | CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1)
| |
| 3118 | lb.Parent = char | |
| 3119 | lb.BrickColor = origcolor | |
| 3120 | lb.CanCollide = false | |
| 3121 | lb.Material = "Neon" | |
| 3122 | lb.Anchored = true | |
| 3123 | lb.TopSurface = 0 | |
| 3124 | lb.BottomSurface = 0 | |
| 3125 | lb.Transparency = 0 | |
| 3126 | lb.Size = vt(2,2,2) | |
| 3127 | lb.CFrame = a.CFrame | |
| 3128 | lb.Anchored = false | |
| 3129 | local thingery = Instance.new("SpecialMesh",lb)
| |
| 3130 | thingery.MeshType = "Sphere" | |
| 3131 | game:GetService("Debris"):AddItem(lb, 5)
| |
| 3132 | local bv = Instance.new("BodyVelocity")
| |
| 3133 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3134 | bv.velocity = a.CFrame.lookVector*100 | |
| 3135 | bv.Parent = lb | |
| 3136 | local hitted = false | |
| 3137 | game:GetService("Debris"):AddItem(a, 0.1)
| |
| 3138 | coroutine.resume(coroutine.create(function() | |
| 3139 | while wait(0.5) do | |
| 3140 | if hitted == false or lb.Parent ~= nil then | |
| 3141 | wave("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),10)
| |
| 3142 | end | |
| 3143 | if hitted == true or lb.Parent == nil then | |
| 3144 | break | |
| 3145 | end | |
| 3146 | end | |
| 3147 | end)) | |
| 3148 | wait(0.01) | |
| 3149 | lb.Touched:connect(function(hit) | |
| 3150 | Damagefunc(lb, hit, 522, 120, 0, "Normal", RootPart, 0.3, "588733541", 0.8) | |
| 3151 | end) | |
| 3152 | attack = false | |
| 3153 | end | |
| 3154 | ||
| 3155 | ||
| 3156 | function attackthree() | |
| 3157 | attack = true | |
| 3158 | for i = 0,1,0.1 do | |
| 3159 | swait() | |
| 3160 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
| 3161 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3162 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1) | |
| 3163 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1) | |
| 3164 | end | |
| 3165 | CFuncs["Sound"].Create("rbxassetid://138079095", root, 0.5, 0.4)
| |
| 3166 | CFuncs["Sound"].Create("rbxassetid://154723542", root, 1.5, 1.15)
| |
| 3167 | coroutine.resume(coroutine.create(function() | |
| 3168 | for i = 0, 4 do | |
| 3169 | wait(0.1) | |
| 3170 | MagniDamage(root, 5, 5,5, 5, "Normal") | |
| 3171 | wind("Divide",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(1,2),5)
| |
| 3172 | end | |
| 3173 | end)) | |
| 3174 | for i = 0,1,0.5 do | |
| 3175 | swait() | |
| 3176 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5) | |
| 3177 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 3178 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3179 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3180 | end | |
| 3181 | for i = 0,1,0.5 do | |
| 3182 | swait() | |
| 3183 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5) | |
| 3184 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 3185 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3186 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3187 | end | |
| 3188 | for i = 0,1,0.5 do | |
| 3189 | swait() | |
| 3190 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5) | |
| 3191 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 3192 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3193 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3194 | end | |
| 3195 | for i = 0,1,0.5 do | |
| 3196 | swait() | |
| 3197 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5) | |
| 3198 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 3199 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3200 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3201 | end | |
| 3202 | attack = false | |
| 3203 | end | |
| 3204 | ||
| 3205 | ||
| 3206 | function attackfour() | |
| 3207 | local currentws = hum.WalkSpeed | |
| 3208 | hum.WalkSpeed = 0 | |
| 3209 | dashing = true | |
| 3210 | attack = true | |
| 3211 | for i = 0,2,0.1 do | |
| 3212 | swait() | |
| 3213 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.1) | |
| 3214 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.1) | |
| 3215 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.1) | |
| 3216 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.1) | |
| 3217 | RH.C0=clerp(RH.C0,cf(1,-0.35,-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3218 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.1) | |
| 3219 | end | |
| 3220 | for i = 0,1,0.1 do | |
| 3221 | swait() | |
| 3222 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),0.3) | |
| 3223 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 3224 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3) | |
| 3225 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3) | |
| 3226 | RH.C0=clerp(RH.C0,cf(1,-1,-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(5)),.3) | |
| 3227 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 3228 | end | |
| 3229 | MagniDamage(root, 5, 5,5, 5, "Normal") | |
| 3230 | CFuncs["Sound"].Create("rbxassetid://142070127", root, 0.25, 1.15)
| |
| 3231 | CFuncs["Sound"].Create("rbxassetid://157878578", root, 1, 1.25)
| |
| 3232 | wave("Divide",rleg.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),3.5)
| |
| 3233 | ring("Divide",rleg.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,25),1.5)
| |
| 3234 | dashing = false | |
| 3235 | attack = false | |
| 3236 | hum.WalkSpeed = currentws | |
| 3237 | end | |
| 3238 | ||
| 3239 | -- Functions are ready. | |
| 3240 | ||
| 3241 | local attacktype = 1 | |
| 3242 | mouse.Button1Down:connect(function() | |
| 3243 | if attack == false and attacktype == 1 then | |
| 3244 | attacktype = 2 | |
| 3245 | attackone() | |
| 3246 | elseif attack == false and attacktype == 2 then | |
| 3247 | attacktype = 3 | |
| 3248 | attacktwo() | |
| 3249 | elseif attack == false and attacktype == 3 then | |
| 3250 | attacktype = 4 | |
| 3251 | attackthree() | |
| 3252 | elseif attack == false and attacktype == 4 then | |
| 3253 | attacktype = 1 | |
| 3254 | attackfour() | |
| 3255 | end | |
| 3256 | end) | |
| 3257 | mouse.KeyDown:connect(function(k) | |
| 3258 | if k == "z" and attack == false then | |
| 3259 | first() | |
| 3260 | end | |
| 3261 | if k == "x" and attack == false then | |
| 3262 | dash() | |
| 3263 | end | |
| 3264 | if k == "c" and attack == false then | |
| 3265 | Spiraling() | |
| 3266 | end | |
| 3267 | if k == "v" and attack == false then | |
| 3268 | SkyBeam() | |
| 3269 | end | |
| 3270 | end) | |
| 3271 | Humanoid.Animator.Parent = nil | |
| 3272 | idleanim=.4 | |
| 3273 | while true do | |
| 3274 | ||
| 3275 | swait() | |
| 3276 | ||
| 3277 | MagicBlock(origcolor,sorb.CFrame,1,1,1,0.1,0.1,0.1,0.25) | |
| 3278 | sine = sine + change | |
| 3279 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 3280 | local velderp=RootPart.Velocity.y | |
| 3281 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 3282 | if equipped==true or equipped==false then | |
| 3283 | if attack==false then | |
| 3284 | idle=idle+1 | |
| 3285 | else | |
| 3286 | idle=0 | |
| 3287 | refit() | |
| 3288 | end | |
| 3289 | if idle>=500 then | |
| 3290 | if attack==false then | |
| 3291 | --Sheath() | |
| 3292 | end | |
| 3293 | end | |
| 3294 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 3295 | Anim="Jump" | |
| 3296 | if attack==false then | |
| 3297 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
| 3298 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
| 3299 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
| 3300 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
| 3301 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1) | |
| 3302 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1) | |
| 3303 | end | |
| 3304 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 3305 | Anim="Fall" | |
| 3306 | if attack==false then | |
| 3307 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
| 3308 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
| 3309 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3310 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3311 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1) | |
| 3312 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1) | |
| 3313 | end | |
| 3314 | elseif torvel<1 and hitfloor~=nil then | |
| 3315 | Anim="Idle" | |
| 3316 | if dashing == false then | |
| 3317 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
| 3318 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
| 3319 | end | |
| 3320 | if attack==false then | |
| 3321 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(40)),.1) | |
| 3322 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-40)),.1) | |
| 3323 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(2.5),math.rad(0),math.rad(20 - 0.5 * math.cos(sine / 25))),.1) | |
| 3324 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-2.5),math.rad(0),math.rad(-10 + 1.5 * math.cos(sine / 25))),.1) | |
| 3325 | end | |
| 3326 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
| 3327 | Anim="Walk" | |
| 3328 | if dashing == false then | |
| 3329 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 12.5))),.1) | |
| 3330 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 12.5))),.1) | |
| 3331 | end | |
| 3332 | if attack==false then | |
| 3333 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0 - 10 * math.cos(sine / 12.5))),.1) | |
| 3334 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0 + 10 * math.cos(sine / 12.5))),.1) | |
| 3335 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 40 * math.cos(sine / 12.5)),math.rad(0),math.rad(10)),.1) | |
| 3336 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 40 * math.cos(sine / 12.5)),math.rad(0),math.rad(-10)),.1) | |
| 3337 | end | |
| 3338 | elseif torvel>=22 and hitfloor~=nil then | |
| 3339 | Anim="Run" | |
| 3340 | if dashing == false then | |
| 3341 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
| 3342 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
| 3343 | end | |
| 3344 | if attack==false then | |
| 3345 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3) | |
| 3346 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 3347 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3) | |
| 3348 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3) | |
| 3349 | end | |
| 3350 | end | |
| 3351 | end | |
| 3352 | end |