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
|
| 1 | + | |
| 2 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 2 | + | |
| 3 | - | do |
| 3 | + | |
| 4 | - | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
|
| 4 | + | |
| 5 | - | script.Parent = Player.Character |
| 5 | + | |
| 6 | return var | |
| 7 | - | --RemoteEvent for communicating |
| 7 | + | |
| 8 | - | local Event = Instance.new("RemoteEvent")
|
| 8 | + | |
| 9 | - | Event.Name = "UserInput_Event" |
| 9 | + | |
| 10 | end, | |
| 11 | - | --Fake event to make stuff like Mouse.KeyDown work |
| 11 | + | |
| 12 | - | local function fakeEvent() |
| 12 | + | |
| 13 | - | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
|
| 13 | + | |
| 14 | - | t.connect = t.Connect |
| 14 | + | |
| 15 | - | return t |
| 15 | + | |
| 16 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 17 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 18 | - | --Creating fake input objects with fake variables |
| 18 | + | |
| 19 | - | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
|
| 19 | + | |
| 20 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
|
| 20 | + | |
| 21 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
|
| 21 | + | |
| 22 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
|
| 22 | + | tecks2.BorderSizePixel = 0 |
| 23 | - | end} |
| 23 | + | tecks2.Text = "Phantom" |
| 24 | - | --Merged 2 functions into one by checking amount of arguments |
| 24 | + | |
| 25 | - | CAS.UnbindAction = CAS.BindAction |
| 25 | + | |
| 26 | tecks2.TextStrokeTransparency = 0 | |
| 27 | - | --This function will trigger the events that have been :Connect()'ed |
| 27 | + | |
| 28 | - | local function te(self,ev,...) |
| 28 | + | |
| 29 | - | local t = m[ev] |
| 29 | + | |
| 30 | - | if t and t._fakeEvent and t.Function then |
| 30 | + | |
| 31 | - | t.Function(...) |
| 31 | + | |
| 32 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 33 | LocalScript0 = Instance.new("LocalScript")
| |
| 34 | - | m.TrigEvent = te |
| 34 | + | |
| 35 | - | UIS.TrigEvent = te |
| 35 | + | |
| 36 | BillboardGui3 = Instance.new("BillboardGui")
| |
| 37 | - | Event.OnServerEvent:Connect(function(plr,io) |
| 37 | + | |
| 38 | - | if plr~=Player then return end |
| 38 | + | |
| 39 | - | if io.isMouse then |
| 39 | + | |
| 40 | - | m.Target = io.Target |
| 40 | + | |
| 41 | - | m.Hit = io.Hit |
| 41 | + | |
| 42 | NumberValue9 = Instance.new("NumberValue")
| |
| 43 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
| 43 | + | |
| 44 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
| 44 | + | |
| 45 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
| 45 | + | |
| 46 | ParticleEmitter13 = Instance.new("ParticleEmitter")
| |
| 47 | - | for _,t in pairs(CAS.Actions) do |
| 47 | + | |
| 48 | - | for _,k in pairs(t.Keys) do |
| 48 | + | |
| 49 | - | if k==io.KeyCode then |
| 49 | + | |
| 50 | - | t.Function(t.Name,io.UserInputState,io) |
| 50 | + | |
| 51 | ParticleEmitter18 = Instance.new("ParticleEmitter")
| |
| 52 | ParticleEmitter19 = Instance.new("ParticleEmitter")
| |
| 53 | ParticleEmitter20 = Instance.new("ParticleEmitter")
| |
| 54 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
| 54 | + | |
| 55 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
| 55 | + | |
| 56 | - | end |
| 56 | + | |
| 57 | CharacterMesh24 = Instance.new("CharacterMesh")
| |
| 58 | - | Event.Parent = NLS([==[ |
| 58 | + | |
| 59 | - | local Player = game:GetService("Players").LocalPlayer
|
| 59 | + | |
| 60 | - | local Event = script:WaitForChild("UserInput_Event")
|
| 60 | + | |
| 61 | CharacterMesh28 = Instance.new("CharacterMesh")
| |
| 62 | - | local UIS = game:GetService("UserInputService")
|
| 62 | + | |
| 63 | - | local input = function(io,a) |
| 63 | + | |
| 64 | - | if a then return end |
| 64 | + | |
| 65 | - | --Since InputObject is a client-side instance, we create and pass table instead |
| 65 | + | |
| 66 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
|
| 66 | + | |
| 67 | --//====================================================\\-- | |
| 68 | - | UIS.InputBegan:Connect(input) |
| 68 | + | |
| 69 | - | UIS.InputEnded:Connect(input) |
| 69 | + | |
| 70 | ||
| 71 | - | local Mouse = Player:GetMouse() |
| 71 | + | |
| 72 | - | local h,t |
| 72 | + | |
| 73 | - | --Give the server mouse data 30 times every second, but only if the values changed |
| 73 | + | |
| 74 | - | --If player is not moving their mouse, client won't fire events |
| 74 | + | |
| 75 | - | while wait(1/30) do |
| 75 | + | |
| 76 | - | if h~=Mouse.Hit or t~=Mouse.Target then |
| 76 | + | |
| 77 | - | h,t=Mouse.Hit,Mouse.Target |
| 77 | + | |
| 78 | - | Event:FireServer({isMouse=true,Target=t,Hit=h})
|
| 78 | + | |
| 79 | repeat wait() until Player.Character:FindFirstChildOfClass("Humanoid")
| |
| 80 | - | end]==],Player.Character) |
| 80 | + | |
| 81 | - | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
| 81 | + | |
| 82 | RootPart = Character["HumanoidRootPart"] | |
| 83 | - | --////// |
| 83 | + | |
| 84 | - | local verlet = {}
|
| 84 | + | |
| 85 | - | verlet.step_time = 1 / 50 |
| 85 | + | |
| 86 | - | verlet.gravity = Vector3.new(0, -10, 0) |
| 86 | + | |
| 87 | RightLeg = Character["Right Leg"] | |
| 88 | - | local char = game.Players.LocalPlayer.Character |
| 88 | + | |
| 89 | - | local torso = char:WaitForChild("Torso")
|
| 89 | + | |
| 90 | - | local parts = {}
|
| 90 | + | |
| 91 | - | local render = game:GetService("RunService").RenderStepped
|
| 91 | + | |
| 92 | LeftShoulder = Torso["Left Shoulder"] | |
| 93 | - | wait(2) |
| 93 | + | |
| 94 | LeftHip = Torso["Left Hip"] | |
| 95 | - | local point = {}
|
| 95 | + | |
| 96 | - | local link = {}
|
| 96 | + | |
| 97 | - | local rope = {}
|
| 97 | + | |
| 98 | VT = Vector3.new | |
| 99 | - | local function ccw(A,B,C) |
| 99 | + | |
| 100 | - | return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x) |
| 100 | + | |
| 101 | UD2 = UDim2.new | |
| 102 | BRICKC = BrickColor.new | |
| 103 | - | local function intersect(A,B,C,D) |
| 103 | + | |
| 104 | - | return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D) |
| 104 | + | |
| 105 | COS = math.cos | |
| 106 | ACOS = math.acos | |
| 107 | - | local function vec2(v) |
| 107 | + | |
| 108 | - | return Vector2.new(v.x, v.z) |
| 108 | + | |
| 109 | ABS = math.abs | |
| 110 | MRANDOM = math.random | |
| 111 | - | function point:step() |
| 111 | + | |
| 112 | - | if not self.fixed then |
| 112 | + | |
| 113 | - | local derivative = (self.position - self.last_position) * 0.95 |
| 113 | + | |
| 114 | - | self.last_position = self.position |
| 114 | + | |
| 115 | - | self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2) |
| 115 | + | |
| 116 | - | --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5) |
| 116 | + | |
| 117 | - | local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5) |
| 117 | + | |
| 118 | - | local pointE = self.position + torso.CFrame.lookVector * 100 |
| 118 | + | |
| 119 | - | local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE)) |
| 119 | + | |
| 120 | - | if not doIntersect then |
| 120 | + | |
| 121 | - | self.postition = self.position - torso.CFrame.lookVector * 10 |
| 121 | + | |
| 122 | - | end]] |
| 122 | + | |
| 123 | - | end |
| 123 | + | |
| 124 | local DAMAGEMULTIPLIER = 1 | |
| 125 | local ANIM = "Idle" | |
| 126 | - | function link:step() |
| 126 | + | |
| 127 | - | for i = 1, 1 do |
| 127 | + | |
| 128 | - | local distance = self.point1.position - self.point2.position |
| 128 | + | |
| 129 | - | local magnitude = distance.magnitude |
| 129 | + | |
| 130 | - | local differance = (self.length - magnitude) / magnitude |
| 130 | + | |
| 131 | - | local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance |
| 131 | + | |
| 132 | - | if not self.point1.fixed then |
| 132 | + | |
| 133 | - | self.point1.position = self.point1.position + translation |
| 133 | + | |
| 134 | - | end |
| 134 | + | |
| 135 | - | if not self.point2.fixed then |
| 135 | + | |
| 136 | - | self.point2.position = self.point2.position - translation |
| 136 | + | |
| 137 | - | end |
| 137 | + | |
| 138 | - | end |
| 138 | + | |
| 139 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 140 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 141 | - | function verlet.new(class, a, b, c) |
| 141 | + | |
| 142 | - | if class == "Point" then |
| 142 | + | |
| 143 | - | local new = {}
|
| 143 | + | |
| 144 | - | setmetatable(new, {__index = point})
|
| 144 | + | |
| 145 | - | new.class = class |
| 145 | + | |
| 146 | - | new.position = a or Vector3.new() |
| 146 | + | |
| 147 | - | new.last_position = new.position |
| 147 | + | |
| 148 | - | new.velocity = verlet.gravity |
| 148 | + | |
| 149 | - | new.fixed = false |
| 149 | + | |
| 150 | - | return new |
| 150 | + | |
| 151 | - | elseif class == "Link" then |
| 151 | + | |
| 152 | - | local new = {}
|
| 152 | + | |
| 153 | - | setmetatable(new, {__index = link})
|
| 153 | + | |
| 154 | - | new.class = class |
| 154 | + | |
| 155 | - | new.point1 = a |
| 155 | + | |
| 156 | - | new.point2 = b |
| 156 | + | |
| 157 | - | new.length = c or (a.position - b.position).magnitude |
| 157 | + | |
| 158 | - | return new |
| 158 | + | |
| 159 | - | elseif class == "Rope" then |
| 159 | + | |
| 160 | - | local new = {}
|
| 160 | + | |
| 161 | - | setmetatable(new, {__index = link})
|
| 161 | + | |
| 162 | - | new.class = class |
| 162 | + | |
| 163 | - | new.start_point = a |
| 163 | + | |
| 164 | - | new.finish_point = b |
| 164 | + | |
| 165 | - | new.points = {}
|
| 165 | + | |
| 166 | - | new.links = {}
|
| 166 | + | |
| 167 | - | local inc = (b - a) / 10 |
| 167 | + | |
| 168 | - | for i = 0, 10 do |
| 168 | + | |
| 169 | - | table.insert(new.points, verlet.new("Point", a + (i * inc)))
|
| 169 | + | |
| 170 | - | end |
| 170 | + | |
| 171 | - | for i = 2, #new.points do |
| 171 | + | |
| 172 | - | table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
|
| 172 | + | |
| 173 | - | end |
| 173 | + | |
| 174 | - | return new |
| 174 | + | |
| 175 | - | end |
| 175 | + | |
| 176 | ||
| 177 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 178 | - | local tris = {}
|
| 178 | + | |
| 179 | - | local triParts = {}
|
| 179 | + | |
| 180 | script:WaitForChild("ArtificialHB")
| |
| 181 | - | local function GetDiscoColor(hue) |
| 181 | + | |
| 182 | - | local section = hue % 1 * 0.05 |
| 182 | + | |
| 183 | - | local secondary = 0.05 * math.pi * (section % 1) |
| 183 | + | |
| 184 | - | if section < 1 then |
| 184 | + | |
| 185 | - | return Color3.new(0,0.3,0.7) |
| 185 | + | |
| 186 | lastframe = tick() | |
| 187 | script.ArtificialHB:Fire() | |
| 188 | - | local function setupPart(part) |
| 188 | + | |
| 189 | - | part.Anchored = true |
| 189 | + | |
| 190 | - | part.FormFactor = 3 |
| 190 | + | |
| 191 | - | part.CanCollide = false |
| 191 | + | |
| 192 | - | part.TopSurface = 10 |
| 192 | + | |
| 193 | - | part.BottomSurface = 10 |
| 193 | + | |
| 194 | - | part.LeftSurface = 10 |
| 194 | + | |
| 195 | - | part.RightSurface = 10 |
| 195 | + | |
| 196 | - | part.FrontSurface = 10 |
| 196 | + | |
| 197 | - | part.BackSurface = 10 |
| 197 | + | |
| 198 | - | part.Material = "Neon" |
| 198 | + | |
| 199 | - | local m = Instance.new("SpecialMesh", part)
|
| 199 | + | |
| 200 | - | m.MeshType = "Wedge" |
| 200 | + | |
| 201 | - | m.Scale = Vector3.new(0.2, 1, 1) |
| 201 | + | |
| 202 | - | return part |
| 202 | + | |
| 203 | else | |
| 204 | tf = tf - frame * math.floor(tf / frame) | |
| 205 | - | local function CFrameFromTopBack(at, top, back) |
| 205 | + | |
| 206 | - | local right = top:Cross(back) |
| 206 | + | |
| 207 | - | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) |
| 207 | + | |
| 208 | ||
| 209 | --//=================================\\ | |
| 210 | - | local function drawTri(parent, a, b, c) |
| 210 | + | |
| 211 | - | local this = {}
|
| 211 | + | |
| 212 | - | local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
|
| 212 | + | |
| 213 | - | local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
|
| 213 | + | |
| 214 | - | function this:Set(a, b, c) |
| 214 | + | |
| 215 | - | local ab, bc, ca = b-a, c-b, a-c |
| 215 | + | |
| 216 | - | local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude |
| 216 | + | |
| 217 | - | local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm)) |
| 217 | + | |
| 218 | - | local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm)) |
| 218 | + | |
| 219 | - | local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam)) |
| 219 | + | |
| 220 | - | if edg1 < edg2 then |
| 220 | + | |
| 221 | - | if edg1 >= edg3 then |
| 221 | + | |
| 222 | - | a, b, c = c, a, b |
| 222 | + | |
| 223 | - | ab, bc, ca = ca, ab, bc |
| 223 | + | |
| 224 | - | abm = cam |
| 224 | + | |
| 225 | - | end |
| 225 | + | |
| 226 | - | else |
| 226 | + | |
| 227 | - | if edg2 < edg3 then |
| 227 | + | |
| 228 | - | a, b, c = b, c, a |
| 228 | + | |
| 229 | - | ab, bc, ca = bc, ca, ab |
| 229 | + | |
| 230 | - | abm = bcm |
| 230 | + | |
| 231 | - | else |
| 231 | + | |
| 232 | - | a, b, c = c, a, b |
| 232 | + | |
| 233 | - | ab, bc, ca = ca, ab, bc |
| 233 | + | |
| 234 | - | abm = cam |
| 234 | + | |
| 235 | - | end |
| 235 | + | |
| 236 | - | end |
| 236 | + | |
| 237 | - | |
| 237 | + | |
| 238 | - | local len1 = -ca:Dot(ab)/abm |
| 238 | + | |
| 239 | - | local len2 = abm - len1 |
| 239 | + | |
| 240 | - | local width = (ca + ab.unit*len1).magnitude |
| 240 | + | |
| 241 | - | |
| 241 | + | |
| 242 | - | local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit) |
| 242 | + | |
| 243 | - | |
| 243 | + | |
| 244 | - | if len1 > 0.2 then |
| 244 | + | |
| 245 | - | mPart1.Parent = parent |
| 245 | + | |
| 246 | - | mPart1.Size = Vector3.new(0.2, width, len1) |
| 246 | + | |
| 247 | - | mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) |
| 247 | + | |
| 248 | - | else |
| 248 | + | |
| 249 | - | mPart1.Parent = nil |
| 249 | + | |
| 250 | - | end |
| 250 | + | |
| 251 | - | |
| 251 | + | |
| 252 | - | if len2 > 0.2 then |
| 252 | + | |
| 253 | - | mPart2.Parent = parent |
| 253 | + | |
| 254 | - | mPart2.Size = Vector3.new(0.2, width, len2) |
| 254 | + | |
| 255 | - | mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) |
| 255 | + | |
| 256 | - | else |
| 256 | + | |
| 257 | - | mPart2.Parent = nil |
| 257 | + | |
| 258 | - | end |
| 258 | + | |
| 259 | - | end |
| 259 | + | |
| 260 | - | function this:SetProperty(prop, value) |
| 260 | + | |
| 261 | - | mPart1[prop] = value |
| 261 | + | |
| 262 | - | mPart2[prop] = value |
| 262 | + | |
| 263 | - | end |
| 263 | + | |
| 264 | - | this:Set(a, b, c) |
| 264 | + | |
| 265 | - | function this:Destroy() |
| 265 | + | |
| 266 | - | mPart1:Destroy() |
| 266 | + | |
| 267 | - | mPart2:Destroy() |
| 267 | + | |
| 268 | - | end |
| 268 | + | |
| 269 | - | this.p1 = mPart1 |
| 269 | + | |
| 270 | - | this.p2 = mPart2 |
| 270 | + | |
| 271 | - | this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time()))) |
| 271 | + | |
| 272 | - | this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time()))) |
| 272 | + | |
| 273 | - | return this |
| 273 | + | |
| 274 | NEWPART.Size = SIZE | |
| 275 | NEWPART.Position = Torso.Position | |
| 276 | - | function verlet.draw(object, id) |
| 276 | + | |
| 277 | - | if object.class == "Point" then |
| 277 | + | |
| 278 | - | local part = parts[id] |
| 278 | + | |
| 279 | - | part.BrickColor = BrickColor.new(0, 0.3, 0.7) |
| 279 | + | |
| 280 | - | part.Transparency = 0 |
| 280 | + | |
| 281 | - | part.formFactor = 3 |
| 281 | + | |
| 282 | - | part.Anchored = true |
| 282 | + | |
| 283 | - | part.CanCollide = true |
| 283 | + | |
| 284 | - | part.TopSurface = 0 |
| 284 | + | |
| 285 | - | part.BottomSurface = 0 |
| 285 | + | |
| 286 | - | part.Size = Vector3.new(0.35, 0.35, 0.35) |
| 286 | + | |
| 287 | - | part.Material = "Neon" |
| 287 | + | |
| 288 | - | part.CFrame = CFrame.new(object.position) |
| 288 | + | |
| 289 | - | part.Parent = torso |
| 289 | + | |
| 290 | - | return part |
| 290 | + | |
| 291 | - | elseif object.class == "Link" then |
| 291 | + | |
| 292 | - | local part = parts[id] |
| 292 | + | |
| 293 | - | local dist = (object.point1.position - object.point2.position).magnitude |
| 293 | + | |
| 294 | - | part.Size = Vector3.new(0.2, 0.2, dist) |
| 294 | + | |
| 295 | - | part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5) |
| 295 | + | |
| 296 | - | part.Parent = torso |
| 296 | + | |
| 297 | - | return part |
| 297 | + | |
| 298 | - | end |
| 298 | + | |
| 299 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 300 | else | |
| 301 | - | function verlet.clear() |
| 301 | + | |
| 302 | - | for _, v in pairs(workspace:GetChildren()) do |
| 302 | + | |
| 303 | - | if v.Name == "Part" then |
| 303 | + | |
| 304 | - | v:Destroy() |
| 304 | + | |
| 305 | - | end |
| 305 | + | |
| 306 | - | end |
| 306 | + | |
| 307 | end | |
| 308 | if i == 0 then | |
| 309 | - | local points = {}
|
| 309 | + | |
| 310 | - | local links = {}
|
| 310 | + | |
| 311 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 312 | - | for x = 0, 2 do |
| 312 | + | |
| 313 | - | points[x] = {}
|
| 313 | + | |
| 314 | - | for y = 0, 3 do |
| 314 | + | |
| 315 | - | points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
|
| 315 | + | |
| 316 | - | points[x][y].fixed = y == 0 |
| 316 | + | |
| 317 | - | end |
| 317 | + | |
| 318 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 319 | end | |
| 320 | - | for x = 1, 2 do |
| 320 | + | |
| 321 | - | for y = 0, 3 do |
| 321 | + | |
| 322 | - | links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
|
| 322 | + | |
| 323 | - | end |
| 323 | + | |
| 324 | local xs, ys, zs = x + x, y + y, z + z | |
| 325 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 326 | - | for x = 0, 2 do |
| 326 | + | |
| 327 | - | for y = 1, 3 do |
| 327 | + | |
| 328 | - | links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
|
| 328 | + | |
| 329 | - | end |
| 329 | + | |
| 330 | local yz = y * zs | |
| 331 | local zz = z * zs | |
| 332 | - | render:connect(function() |
| 332 | + | |
| 333 | - | for x = 0, 2 do |
| 333 | + | |
| 334 | - | for y = 0, 3 do |
| 334 | + | |
| 335 | - | if y == 0 then |
| 335 | + | |
| 336 | - | points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p |
| 336 | + | |
| 337 | - | else |
| 337 | + | |
| 338 | - | points[x][y]:step() |
| 338 | + | |
| 339 | - | end |
| 339 | + | |
| 340 | - | end |
| 340 | + | |
| 341 | - | end |
| 341 | + | |
| 342 | - | for i = 1, #links do |
| 342 | + | |
| 343 | - | links[i]:step() |
| 343 | + | |
| 344 | - | end |
| 344 | + | |
| 345 | - | for i = 1, #tris do |
| 345 | + | |
| 346 | - | triParts[#triParts + 1] = tris[i].p1 |
| 346 | + | |
| 347 | - | triParts[#triParts + 1] = tris[i].p2 |
| 347 | + | |
| 348 | - | end |
| 348 | + | |
| 349 | - | tris = {}
|
| 349 | + | |
| 350 | - | for x = 1, 2 do |
| 350 | + | |
| 351 | - | for y = 1, 3 do |
| 351 | + | |
| 352 | - | tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position) |
| 352 | + | |
| 353 | - | tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position) |
| 353 | + | |
| 354 | - | end |
| 354 | + | |
| 355 | - | end |
| 355 | + | |
| 356 | finishInterp = t | |
| 357 | end | |
| 358 | end | |
| 359 | 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 | |
| 360 | end | |
| 361 | ||
| 362 | function Clerp(a, b, t) | |
| 363 | local qa = {QuaternionFromCFrame(a)}
| |
| 364 | local qb = {QuaternionFromCFrame(b)}
| |
| 365 | local ax, ay, az = a.x, a.y, a.z | |
| 366 | local bx, by, bz = b.x, b.y, b.z | |
| 367 | local _t = 1 - t | |
| 368 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 369 | end | |
| 370 | ||
| 371 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 372 | local frame = IT("Frame")
| |
| 373 | frame.BackgroundTransparency = TRANSPARENCY | |
| 374 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 375 | frame.Position = POSITION | |
| 376 | frame.Size = SIZE | |
| 377 | frame.BackgroundColor3 = COLOR | |
| 378 | frame.BorderColor3 = BORDERCOLOR | |
| 379 | - | tecks2.BorderSizePixel = 1 |
| 379 | + | |
| 380 | - | tecks2.Text = "Phantom, the Searing Warden" |
| 380 | + | |
| 381 | return frame | |
| 382 | end | |
| 383 | ||
| 384 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 385 | local label = IT("TextLabel")
| |
| 386 | label.BackgroundTransparency = 1 | |
| 387 | label.Size = UD2(1, 0, 1, 0) | |
| 388 | label.Position = UD2(0, 0, 0, 0) | |
| 389 | label.TextColor3 = TEXTCOLOR | |
| 390 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 391 | label.TextTransparency = TRANSPARENCY | |
| 392 | label.FontSize = TEXTFONTSIZE | |
| 393 | label.Font = TEXTFONT | |
| 394 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 395 | label.TextScaled = false | |
| 396 | label.Text = TEXT | |
| 397 | label.Name = NAME | |
| 398 | label.Parent = PARENT | |
| 399 | return label | |
| 400 | end | |
| 401 | ||
| 402 | function NoOutlines(PART) | |
| 403 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 404 | end | |
| 405 | ||
| 406 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 407 | local NEWWELD = IT(TYPE) | |
| 408 | NEWWELD.Part0 = PART0 | |
| 409 | NEWWELD.Part1 = PART1 | |
| 410 | NEWWELD.C0 = C0 | |
| 411 | NEWWELD.C1 = C1 | |
| 412 | NEWWELD.Parent = PARENT | |
| 413 | return NEWWELD | |
| 414 | end | |
| 415 | ||
| 416 | local S = IT("Sound")
| |
| 417 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 418 | local NEWSOUND = nil | |
| 419 | coroutine.resume(coroutine.create(function() | |
| 420 | NEWSOUND = S:Clone() | |
| 421 | NEWSOUND.Parent = PARENT | |
| 422 | NEWSOUND.Volume = VOLUME | |
| 423 | NEWSOUND.Pitch = PITCH | |
| 424 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 425 | NEWSOUND:play() | |
| 426 | if DOESLOOP == true then | |
| 427 | NEWSOUND.Looped = true | |
| 428 | else | |
| 429 | repeat wait(1) until NEWSOUND.Playing == false | |
| 430 | NEWSOUND:remove() | |
| 431 | end | |
| 432 | end)) | |
| 433 | return NEWSOUND | |
| 434 | end | |
| 435 | ||
| 436 | function CFrameFromTopBack(at, top, back) | |
| 437 | local right = top:Cross(back) | |
| 438 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 439 | - | Mouse2 = Player:GetMouse() |
| 439 | + | |
| 440 | ||
| 441 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 442 | function WACKYEFFECT(Table) | |
| 443 | local TYPE = (Table.EffectType or "Sphere") | |
| 444 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 445 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 446 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 447 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 448 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 449 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 450 | local ROTATION1 = (Table.RotationX or 0) | |
| 451 | local ROTATION2 = (Table.RotationY or 0) | |
| 452 | local ROTATION3 = (Table.RotationZ or 0) | |
| 453 | local MATERIAL = (Table.Material or "Neon") | |
| 454 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 455 | local TIME = (Table.Time or 45) | |
| 456 | local SOUNDID = (Table.SoundID or nil) | |
| 457 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 458 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 459 | coroutine.resume(coroutine.create(function() | |
| 460 | local PLAYSSOUND = false | |
| 461 | local SOUND = nil | |
| 462 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 463 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 464 | PLAYSSOUND = true | |
| 465 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 466 | end | |
| 467 | EFFECT.Color = COLOR | |
| 468 | local MSH = nil | |
| 469 | if TYPE == "Sphere" then | |
| 470 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 471 | elseif TYPE == "Block" then | |
| 472 | MSH = IT("BlockMesh",EFFECT)
| |
| 473 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 474 | elseif TYPE == "Wave" then | |
| 475 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 476 | elseif TYPE == "Ring" then | |
| 477 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 478 | elseif TYPE == "Slash" then | |
| 479 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 480 | elseif TYPE == "Round Slash" then | |
| 481 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 482 | - | local DAMAGEMULTIPLIER = 1.05 |
| 482 | + | |
| 483 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 484 | elseif TYPE == "Skull" then | |
| 485 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 486 | elseif TYPE == "Crystal" then | |
| 487 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 488 | end | |
| 489 | if MSH ~= nil then | |
| 490 | local MOVESPEED = nil | |
| 491 | if MOVEDIRECTION ~= nil then | |
| 492 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 493 | end | |
| 494 | local GROWTH = SIZE - ENDSIZE | |
| 495 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 496 | if TYPE == "Block" then | |
| 497 | - | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=" |
| 497 | + | |
| 498 | else | |
| 499 | - | local WEAPON2GUI = IT("ScreenGui", PlayerGui)
|
| 499 | + | |
| 500 | - | WEAPON2GUI.Name = "BanishV3Gui" |
| 500 | + | |
| 501 | - | local Weapon2 = IT("Model")
|
| 501 | + | |
| 502 | - | Weapon2.Name = "Adds" |
| 502 | + | |
| 503 | - | local Effects2 = IT("Folder", Weapon2)
|
| 503 | + | |
| 504 | - | Effects2.Name = "Effects2" |
| 504 | + | |
| 505 | - | local TOBANISH = {}
|
| 505 | + | |
| 506 | - | script.Parent = PlayerGui |
| 506 | + | |
| 507 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 508 | if TYPE == "Block" then | |
| 509 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 510 | else | |
| 511 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 512 | end | |
| 513 | if MOVEDIRECTION ~= nil then | |
| 514 | local ORI = EFFECT.Orientation | |
| 515 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 516 | EFFECT.Orientation = ORI | |
| 517 | end | |
| 518 | end | |
| 519 | if PLAYSSOUND == false then | |
| 520 | EFFECT:remove() | |
| 521 | else | |
| 522 | repeat Swait() until SOUND.Playing == false | |
| 523 | EFFECT:remove() | |
| 524 | end | |
| 525 | else | |
| 526 | if PLAYSSOUND == false then | |
| 527 | EFFECT:remove() | |
| 528 | else | |
| 529 | repeat Swait() until SOUND.Playing == false | |
| 530 | EFFECT:remove() | |
| 531 | end | |
| 532 | - | local EXPLOSIONSOUNDS = {439342426,605005842}
|
| 532 | + | |
| 533 | end)) | |
| 534 | end | |
| 535 | ||
| 536 | function MakeForm(PART,TYPE) | |
| 537 | if TYPE == "Cyl" then | |
| 538 | local MSH = IT("CylinderMesh",PART)
| |
| 539 | elseif TYPE == "Ball" then | |
| 540 | local MSH = IT("SpecialMesh",PART)
| |
| 541 | MSH.MeshType = "Sphere" | |
| 542 | elseif TYPE == "Wedge" then | |
| 543 | local MSH = IT("SpecialMesh",PART)
| |
| 544 | MSH.MeshType = "Wedge" | |
| 545 | end | |
| 546 | end | |
| 547 | ||
| 548 | Debris = game:GetService("Debris")
| |
| 549 | ||
| 550 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 551 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 552 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
| |
| 553 | end | |
| 554 | ||
| 555 | function Particles(Which,Parent,Enabled) | |
| 556 | if script:FindFirstChild(Which) then | |
| 557 | local PARTICLES = script:FindFirstChild(Which):Clone() | |
| 558 | PARTICLES.Parent = Parent | |
| 559 | PARTICLES.Name = "CurseParticles" | |
| 560 | if Enabled ~= true then | |
| 561 | PARTICLES:Emit(Enabled) | |
| 562 | Debris:AddItem(PARTICLES,10) | |
| 563 | else | |
| 564 | PARTICLES.Enabled = true | |
| 565 | return PARTICLES | |
| 566 | end | |
| 567 | end | |
| 568 | end | |
| 569 | ||
| 570 | --//=================================\\ | |
| 571 | --|| WEAPON CREATION | |
| 572 | --\\=================================// | |
| 573 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Hood", VT(1,1,1),false) | |
| 574 | PRT.Color = C3(0,0,0) | |
| 575 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.4,0), CF(0, 0, 0))
| |
| 576 | CreateMesh("SpecialMesh", PRT, "FileMesh", "215682815", "553845154", VT(1,1,1)*1.05, VT(0,0,0))
| |
| 577 | local GUI = script.NameGui | |
| 578 | GUI.Parent = RootPart | |
| 579 | GUI.PlayerToHideFrom = Player | |
| 580 | Humanoid.DisplayDistanceType = "None" | |
| 581 | GUI.Enabled = true | |
| 582 | local Pauldrons = script.Pauldrons | |
| 583 | Pauldrons.Parent = Character | |
| 584 | Pauldrons.CFrame = Torso.CFrame | |
| 585 | local WELD = weldBetween(Torso,Pauldrons) | |
| 586 | Pauldrons.Anchored = false | |
| 587 | Pauldrons.Transparency = 1 | |
| 588 | - | function SpawnTrail(FROM,TO,BIG) |
| 588 | + | |
| 589 | - | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Trail", VT(10,10,10)) |
| 589 | + | |
| 590 | - | MakeForm(TRAIL,"Cyl") |
| 590 | + | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, FLINTLOCK, CF(1,-1.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 591 | - | local cR=255 |
| 591 | + | |
| 592 | - | local cG=0 |
| 592 | + | |
| 593 | - | local cB=0 |
| 593 | + | |
| 594 | - | local flg5=1 local omgidk=1 |
| 594 | + | |
| 595 | - | local add=15 |
| 595 | + | |
| 596 | - | game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
|
| 596 | + | |
| 597 | - | if omgidk>10000 then omgidk=0 end |
| 597 | + | |
| 598 | - | omgidk=omgidk+1 |
| 598 | + | |
| 599 | - | if cR>=255 then flg5=1 end |
| 599 | + | |
| 600 | - | if cG>=255 then flg5=2 end |
| 600 | + | |
| 601 | - | if cB>=255 then flg5=3 end |
| 601 | + | |
| 602 | - | if flg5==1 then cR=cR-add cG=cG+add end |
| 602 | + | |
| 603 | - | if flg5==2 then cG=cG-add cB=cB+add end |
| 603 | + | |
| 604 | - | if flg5==3 then cB=cB-add cR=cR+add end |
| 604 | + | |
| 605 | - | color=Color3.fromRGB(cR,cG,cB) |
| 605 | + | |
| 606 | - | TRAIL.Color = color |
| 606 | + | |
| 607 | end | |
| 608 | - | local DIST = (FROM - TO).Magnitude |
| 608 | + | |
| 609 | - | if BIG == true then |
| 609 | + | |
| 610 | - | TRAIL.Size = VT(5,DIST,5) |
| 610 | + | |
| 611 | - | else |
| 611 | + | |
| 612 | - | TRAIL.Size = VT(5,DIST,5) |
| 612 | + | |
| 613 | - | end |
| 613 | + | |
| 614 | - | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) |
| 614 | + | |
| 615 | - | coroutine.resume(coroutine.create(function() |
| 615 | + | |
| 616 | - | for i = 1, 55 do |
| 616 | + | |
| 617 | - | Swait() |
| 617 | + | |
| 618 | - | TRAIL.Transparency = TRAIL.Transparency + 0.01 |
| 618 | + | |
| 619 | - | end |
| 619 | + | |
| 620 | - | TRAIL:remove() |
| 620 | + | |
| 621 | - | end)) |
| 621 | + | |
| 622 | function FullBodyRegen() | |
| 623 | if FULLREGEN == false then | |
| 624 | FULLREGEN = true | |
| 625 | Character.Parent = workspace | |
| 626 | GUI.Enabled = false | |
| 627 | CreateSound(FIREBALLSOUND,Torso,3,MRANDOM(10,12)/10,false) | |
| 628 | UNANCHOR = false | |
| 629 | for e = 1, #BODY do | |
| 630 | if BODY[e] ~= nil then | |
| 631 | local STUFF = BODY[e] | |
| 632 | local PART = STUFF[1] | |
| 633 | local PARENT = STUFF[2] | |
| 634 | local MATERIAL = STUFF[3] | |
| 635 | local COLOR = STUFF[4] | |
| 636 | local TRANSPARENCY = STUFF[5] | |
| 637 | --local SIZE = STUFF[6] | |
| 638 | local NAME = STUFF[7] | |
| 639 | local VALUE = STUFF[8] | |
| 640 | PART.Parent = PARENT | |
| 641 | Humanoid.MaxHealth = "inf" | |
| 642 | Humanoid.Health = "inf" | |
| 643 | Humanoid.Parent = nil | |
| 644 | Humanoid = IT("Humanoid",Character)
| |
| 645 | Humanoid.Died:Connect(FullBodyRegen) | |
| 646 | PART.Parent = PARENT | |
| 647 | if PART:IsA("BasePart") and VALUE.Value == false and PART ~= RootPart then
| |
| 648 | VALUE.Value = true | |
| 649 | coroutine.resume(coroutine.create(function() | |
| 650 | PART.Transparency = 1 | |
| 651 | CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/15,false) | |
| 652 | local REGEN = script.Regen:Clone() | |
| 653 | REGEN.Parent = PART | |
| 654 | REGEN.Speed = NumberRange.new(30) | |
| 655 | REGEN:Emit(100) | |
| 656 | local REGENING = script.Regen2:Clone() | |
| 657 | REGENING.Parent = PART | |
| 658 | REGENING.Enabled = true | |
| 659 | REGENING.Speed = NumberRange.new(35) | |
| 660 | wait() | |
| 661 | local RANGE = 35 | |
| 662 | for i = 1, math.ceil(REGENRATE*25) do | |
| 663 | wait() | |
| 664 | ApplyAoE(PART.Position,6,1,1,0,false) | |
| 665 | REGENING.Speed = NumberRange.new(RANGE) | |
| 666 | RANGE = RANGE - (35/(math.ceil(REGENRATE*20))) | |
| 667 | end | |
| 668 | REGEN.Speed = NumberRange.new(6) | |
| 669 | REGEN:Emit(60) | |
| 670 | wait(REGENRATE/3) | |
| 671 | RootPart.Velocity = VT(0,0,0) | |
| 672 | UNANCHOR = true | |
| 673 | GUI.Enabled = true | |
| 674 | PART.Transparency = 0 | |
| 675 | REGEN.Rate = 50 | |
| 676 | REGEN.Enabled = true | |
| 677 | REGENING.Enabled = false | |
| 678 | wait(REGENRATE/1.5) | |
| 679 | VALUE.Value = false | |
| 680 | Debris:AddItem(REGENING,5) | |
| 681 | FULLREGEN = false | |
| 682 | REGEN.Enabled = false | |
| 683 | Debris:AddItem(REGEN,5) | |
| 684 | end)) | |
| 685 | end | |
| 686 | end | |
| 687 | end | |
| 688 | end | |
| 689 | end | |
| 690 | function Regen() | |
| 691 | Character.Parent = workspace | |
| 692 | for e = 1, #BODY do | |
| 693 | if BODY[e] ~= nil then | |
| 694 | local STUFF = BODY[e] | |
| 695 | local PART = STUFF[1] | |
| 696 | local PARENT = STUFF[2] | |
| 697 | local MATERIAL = STUFF[3] | |
| 698 | local COLOR = STUFF[4] | |
| 699 | local TRANSPARENCY = STUFF[5] | |
| 700 | --local SIZE = STUFF[6] | |
| 701 | local NAME = STUFF[7] | |
| 702 | local VALUE = STUFF[8] | |
| 703 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 704 | PART.Material = MATERIAL | |
| 705 | PART.Name = NAME | |
| 706 | end | |
| 707 | if PART.Parent ~= PARENT then | |
| 708 | PART.Parent = PARENT | |
| 709 | if PART:IsA("BasePart") and PART ~= RootPart and FULLREGEN == false then
| |
| 710 | if VALUE.Value == false then | |
| 711 | VALUE.Value = true | |
| 712 | coroutine.resume(coroutine.create(function() | |
| 713 | PART.Transparency = 1 | |
| 714 | wait(REGENRATE) | |
| 715 | CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false) | |
| 716 | local REGENING = script.Regen:Clone() | |
| 717 | REGENING.Parent = PART | |
| 718 | REGENING.Enabled = true | |
| 719 | for i = 1, math.ceil(REGENRATE*10) do | |
| 720 | wait() | |
| 721 | ApplyAoE(PART.Position,6,1,1,0,false) | |
| 722 | end | |
| 723 | wait(REGENRATE) | |
| 724 | PART.Transparency = 0 | |
| 725 | wait(REGENRATE/5) | |
| 726 | REGENING.Enabled = false | |
| 727 | VALUE.Value = false | |
| 728 | Debris:AddItem(REGENING,5) | |
| 729 | end)) | |
| 730 | end | |
| 731 | elseif PART:IsA("JointInstance") and PARENT ~= RootPart and FULLREGEN == false then
| |
| 732 | local VALUE = PARENT.IsRegening | |
| 733 | if VALUE == false then | |
| 734 | VALUE.Value = true | |
| 735 | local PART = PART.Part1 | |
| 736 | coroutine.resume(coroutine.create(function() | |
| 737 | PART.Transparency = 1 | |
| 738 | wait(REGENRATE) | |
| 739 | CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false) | |
| 740 | local REGENING = script.Regen:Clone() | |
| 741 | REGENING.Parent = PART | |
| 742 | REGENING.Enabled = true | |
| 743 | for i = 1, math.ceil(REGENRATE*10) do | |
| 744 | wait() | |
| 745 | ApplyAoE(PART.Position,6,1,1,0,false) | |
| 746 | end | |
| 747 | wait(REGENRATE) | |
| 748 | PART.Transparency = 0 | |
| 749 | wait(REGENRATE/5) | |
| 750 | REGENING.Enabled = false | |
| 751 | VALUE.Value = false | |
| 752 | end)) | |
| 753 | end | |
| 754 | end | |
| 755 | end | |
| 756 | end | |
| 757 | end | |
| 758 | end | |
| 759 | ||
| 760 | for _, c in pairs(script.Package:GetChildren()) do | |
| 761 | c.Parent = Character | |
| 762 | end | |
| 763 | ||
| 764 | local b = IT("BodyForce",RootPart)
| |
| 765 | b.Name = "LowGrav" | |
| 766 | b.force = Vector3.new(0,1500,0) | |
| 767 | ||
| 768 | local SKILLTEXTCOLOR = C3(0,0,0) | |
| 769 | local SKILLFONT = "Fantasy" | |
| 770 | local SKILLTEXTSIZE = 7 | |
| 771 | ||
| 772 | local BACKATTACHMENT1 = IT("Attachment",Torso)
| |
| 773 | BACKATTACHMENT1.Position = VT(0.5, 0.5, 0.75) | |
| 774 | local BACKATTACHMENT2 = IT("Attachment",Torso)
| |
| 775 | BACKATTACHMENT2.Position = VT(-0.5, 0.5, 0.75) | |
| 776 | ||
| 777 | Humanoid.Died:Connect(FullBodyRegen) | |
| 778 | ||
| 779 | --//=================================\\ | |
| 780 | --|| DAMAGING | |
| 781 | --\\=================================// | |
| 782 | ||
| 783 | function ApplyDamage(Humanoid,Damage) | |
| 784 | if Humanoid.Health == math.huge then | |
| 785 | Humanoid.Parent:BreakJoints() | |
| 786 | else | |
| 787 | local MULTIPLY = Humanoid.MaxHealth/100 | |
| 788 | Damage = Damage * DAMAGEMULTIPLIER | |
| 789 | if Humanoid.Health ~= 0 then | |
| 790 | Humanoid.Health = Humanoid.Health - Damage*MULTIPLY | |
| 791 | end | |
| 792 | end | |
| 793 | end | |
| 794 | ||
| 795 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,CAMSINSTAKILL,INSTAKILL) | |
| 796 | local CHILDREN = workspace:GetDescendants() | |
| 797 | for index, CHILD in pairs(CHILDREN) do | |
| 798 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 799 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 800 | if HUM then | |
| 801 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 802 | if TORSO then | |
| 803 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 804 | if INSTAKILL == true or HUM.MaxHealth == math.huge then | |
| 805 | CHILD:BreakJoints() | |
| 806 | else | |
| 807 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
| 808 | ApplyDamage(HUM,DMG) | |
| 809 | end | |
| 810 | if FLING > 0 then | |
| 811 | for _, c in pairs(CHILD:GetChildren()) do | |
| 812 | if c:IsA("BasePart") then
| |
| 813 | local bv = Instance.new("BodyVelocity")
| |
| 814 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 815 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
| 816 | bv.Parent = c | |
| 817 | Debris:AddItem(bv,0.05) | |
| 818 | end | |
| 819 | end | |
| 820 | end | |
| 821 | end | |
| 822 | end | |
| 823 | end | |
| 824 | end | |
| 825 | end | |
| 826 | end | |
| 827 | ||
| 828 | --//=================================\\ | |
| 829 | --|| ATTACK FUNCTIONS AND STUFF | |
| 830 | --\\=================================// | |
| 831 | ||
| 832 | function Fireball() | |
| 833 | ATTACK = true | |
| 834 | Rooted = true | |
| 835 | local GYRO = IT("BodyGyro",RootPart)
| |
| 836 | GYRO.D = 20 | |
| 837 | GYRO.P = 4000 | |
| 838 | GYRO.MaxTorque = VT(40000,40000,40000) | |
| 839 | local POSITION = IT("BodyPosition",RootPart)
| |
| 840 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 841 | POSITION.D = 450 | |
| 842 | POSITION.P = 40000 | |
| 843 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 844 | local FIRE = Particles("FistFire",RightArm,true)
| |
| 845 | CreateSound(CHARGE,RightArm,6,1,false) | |
| 846 | coroutine.resume(coroutine.create(function() | |
| 847 | repeat | |
| 848 | Swait() | |
| 849 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 850 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
| 851 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
| 852 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 853 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 854 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 855 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 856 | until ATTACK == false | |
| 857 | FIRE.LockedToPart = false | |
| 858 | FIRE.Enabled = false | |
| 859 | Debris:AddItem(FIRE,5) | |
| 860 | GYRO:remove() | |
| 861 | POSITION:remove() | |
| 862 | end)) | |
| 863 | wait(1) | |
| 864 | repeat | |
| 865 | Particles("ExplosionFire1",RightArm,70)
| |
| 866 | coroutine.resume(coroutine.create(function() | |
| 867 | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(10,10,10)) | |
| 868 | FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p) | |
| 869 | CreateSound(FIREBALLSOUND,FIREBALL,6,1,false) | |
| 870 | local FLAME = Particles("FireballFire1",FIREBALL,true)
| |
| 871 | local FLAME2 = Particles("FireballFire2",FIREBALL,true)
| |
| 872 | for i = 1, 250 do | |
| 873 | Swait() | |
| 874 | local HIT,HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 10, Character) | |
| 875 | FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-5) | |
| 876 | if HIT then | |
| 877 | Particles("ExplosionFire1",FIREBALL,600)
| |
| 878 | ApplyAoE(FIREBALL.Position,200,15,25,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
| |
| 879 | for i = 1, 3 do | |
| 880 | WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Bright blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 881 | end | |
| 882 | for i = 1, 3 do | |
| 883 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 884 | end | |
| 885 | for i = 1, 5 do | |
| 886 | WACKYEFFECT({Time = 80+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 887 | end | |
| 888 | break | |
| 889 | end | |
| 890 | end | |
| 891 | FLAME.Enabled = false | |
| 892 | FLAME2.Enabled = false | |
| 893 | Debris:AddItem(FIREBALL,7) | |
| 894 | end)) | |
| 895 | wait(0.1) | |
| 896 | until KEYHOLD == false | |
| 897 | wait(0.2) | |
| 898 | ATTACK = false | |
| 899 | Rooted = false | |
| 900 | end | |
| 901 | ||
| 902 | function FireField() | |
| 903 | ATTACK = true | |
| 904 | Rooted = true | |
| 905 | local A = false | |
| 906 | local POSITION = IT("BodyPosition",RootPart)
| |
| 907 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 908 | POSITION.D = 450 | |
| 909 | POSITION.P = 40000 | |
| 910 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 911 | coroutine.resume(coroutine.create(function() | |
| 912 | repeat | |
| 913 | Swait() | |
| 914 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 915 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
| 916 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.85, -0.35) * ANGLES(RAD(120), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 917 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.35) * ANGLES(RAD(120), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 918 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 919 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 920 | until A == true | |
| 921 | repeat | |
| 922 | Swait() | |
| 923 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 924 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 925 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4, -0.3) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 926 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4, -0.3) * ANGLES(RAD(170), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 927 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 928 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 929 | until ATTACK == false | |
| 930 | POSITION:remove() | |
| 931 | end)) | |
| 932 | local RANGE = 75 | |
| 933 | local REGENING = script.Regen2:Clone() | |
| 934 | REGENING.Parent = Torso | |
| 935 | REGENING.Enabled = true | |
| 936 | REGENING.Rate = 900 | |
| 937 | REGENING.Speed = NumberRange.new(RANGE) | |
| 938 | wait() | |
| 939 | for i = 1, 75 do | |
| 940 | wait() | |
| 941 | ApplyAoE(Torso.Position,6,1,1,0,false) | |
| 942 | REGENING.Speed = NumberRange.new(RANGE) | |
| 943 | RANGE = RANGE - (75/(math.ceil(REGENRATE*75))) | |
| 944 | end | |
| 945 | REGENING.Enabled = false | |
| 946 | wait(0.5) | |
| 947 | for i = 1, 6 do | |
| 948 | WACKYEFFECT({Time = 10+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 949 | end | |
| 950 | CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false) | |
| 951 | A = true | |
| 952 | local FLAME = Particles("Field",Torso,true)
| |
| 953 | FLAME.Size = NumberSequence.new(0,25) | |
| 954 | FIREFIELD = true | |
| 955 | - | local DIRECTION = CF(StartPos,EndPos).lookVector |
| 955 | + | |
| 956 | - | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
|
| 956 | + | |
| 957 | for i = 1, 20 do | |
| 958 | wait(1) | |
| 959 | SOUND.Parent = Torso | |
| 960 | SOUND.Playing = true | |
| 961 | ApplyAoE(Torso.Position,100,5,10,0,false,{SHAKE = 2, TIMER = 25, DOESFADE = true})
| |
| 962 | for i = 1, 2 do | |
| 963 | WACKYEFFECT({Time = 20+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(30,30,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 964 | end | |
| 965 | if SEARING == true then | |
| 966 | break | |
| 967 | end | |
| 968 | end | |
| 969 | FIREFIELD = false | |
| 970 | FLAME.Enabled = false | |
| 971 | Debris:AddItem(FLAME,5) | |
| 972 | SOUND:remove() | |
| 973 | end)) | |
| 974 | wait(1) | |
| 975 | ATTACK = false | |
| 976 | Rooted = false | |
| 977 | - | local Particle = IT("ParticleEmitter",nil)
|
| 977 | + | |
| 978 | - | Particle.Enabled = false |
| 978 | + | |
| 979 | - | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
|
| 979 | + | |
| 980 | - | Particle.LightEmission = 0.5 |
| 980 | + | |
| 981 | - | Particle.Rate = 150 |
| 981 | + | |
| 982 | - | Particle.ZOffset = 0.2 |
| 982 | + | |
| 983 | - | Particle.Rotation = NumberRange.new(-180, 180) |
| 983 | + | |
| 984 | - | Particle.RotSpeed = NumberRange.new(-180, 180) |
| 984 | + | |
| 985 | - | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" |
| 985 | + | |
| 986 | - | Particle.Color = ColorSequence.new(C3(70,103,164),C3(35,71,139),C3(51,88,130),C3(82,124,174),C3(9,137,207)) |
| 986 | + | |
| 987 | coroutine.resume(coroutine.create(function() | |
| 988 | - | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
|
| 988 | + | |
| 989 | - | function ParticleEmitter(Table) |
| 989 | + | |
| 990 | - | local PRTCL = Particle:Clone() |
| 990 | + | |
| 991 | - | local Speed = Table.Speed or 5 |
| 991 | + | |
| 992 | - | local Drag = Table.Drag or 0 |
| 992 | + | |
| 993 | - | local Size1 = Table.Size1 or 1 |
| 993 | + | |
| 994 | - | local Size2 = Table.Size2 or 5 |
| 994 | + | |
| 995 | - | local Lifetime1 = Table.Lifetime1 or 9.5 |
| 995 | + | |
| 996 | - | local Lifetime2 = Table.Lifetime2 or 10 |
| 996 | + | |
| 997 | - | local Parent = Table.Parent or Torso |
| 997 | + | |
| 998 | - | local Emit = Table.Emit or 100 |
| 998 | + | |
| 999 | - | local Offset = Table.Offset or 360 |
| 999 | + | local RANGE = 75 |
| 1000 | - | local Acel = Table.Acel or VT(0,0,0) |
| 1000 | + | |
| 1001 | - | local Enabled = Table.Enabled or false |
| 1001 | + | |
| 1002 | - | PRTCL.Parent = Parent |
| 1002 | + | |
| 1003 | - | PRTCL.Size = NumberSequence.new(Size1,Size2) |
| 1003 | + | |
| 1004 | - | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) |
| 1004 | + | |
| 1005 | - | PRTCL.Speed = NumberRange.new(Speed) |
| 1005 | + | |
| 1006 | - | PRTCL.VelocitySpread = Offset |
| 1006 | + | |
| 1007 | - | PRTCL.Drag = Drag |
| 1007 | + | |
| 1008 | - | PRTCL.Acceleration = Acel |
| 1008 | + | |
| 1009 | - | if Enabled == false then |
| 1009 | + | |
| 1010 | - | PRTCL:Emit(Emit) |
| 1010 | + | |
| 1011 | - | Debris:AddItem(PRTCL,Lifetime2) |
| 1011 | + | |
| 1012 | - | else |
| 1012 | + | |
| 1013 | - | PRTCL.Enabled = true |
| 1013 | + | |
| 1014 | - | end |
| 1014 | + | |
| 1015 | - | return PRTCL |
| 1015 | + | |
| 1016 | end | |
| 1017 | - | m = game.Players.LocalPlayer |
| 1017 | + | |
| 1018 | - | char = m.Character |
| 1018 | + | |
| 1019 | SEARING = true | |
| 1020 | - | local Handle = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) |
| 1020 | + | |
| 1021 | - | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
|
| 1021 | + | |
| 1022 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) |
| 1022 | + | |
| 1023 | - | MakeForm(Part,"Wedge") |
| 1023 | + | |
| 1024 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
|
| 1024 | + | |
| 1025 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) |
| 1025 | + | |
| 1026 | - | MakeForm(Part,"Wedge") |
| 1026 | + | |
| 1027 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
|
| 1027 | + | |
| 1028 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) |
| 1028 | + | |
| 1029 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1029 | + | |
| 1030 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) |
| 1030 | + | |
| 1031 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1031 | + | |
| 1032 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) |
| 1032 | + | |
| 1033 | - | MakeForm(Part,"Cyl") |
| 1033 | + | |
| 1034 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1034 | + | |
| 1035 | - | for i = 1, 8 do |
| 1035 | + | |
| 1036 | - | local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) |
| 1036 | + | |
| 1037 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
|
| 1037 | + | |
| 1038 | CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false) | |
| 1039 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) |
| 1039 | + | |
| 1040 | - | MakeForm(Part,"Cyl") |
| 1040 | + | |
| 1041 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1041 | + | |
| 1042 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) |
| 1042 | + | |
| 1043 | - | MakeForm(Part,"Ball") |
| 1043 | + | |
| 1044 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1044 | + | |
| 1045 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) |
| 1045 | + | |
| 1046 | - | MakeForm(Part,"Wedge") |
| 1046 | + | |
| 1047 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
|
| 1047 | + | |
| 1048 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) |
| 1048 | + | |
| 1049 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1049 | + | |
| 1050 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) |
| 1050 | + | |
| 1051 | - | MakeForm(Part,"Cyl") |
| 1051 | + | |
| 1052 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1052 | + | |
| 1053 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) |
| 1053 | + | |
| 1054 | - | MakeForm(Part,"Cyl") |
| 1054 | + | |
| 1055 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1055 | + | |
| 1056 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) |
| 1056 | + | |
| 1057 | - | MakeForm(Part,"Cyl") |
| 1057 | + | |
| 1058 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1058 | + | |
| 1059 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) |
| 1059 | + | |
| 1060 | - | MakeForm(Part,"Wedge") |
| 1060 | + | |
| 1061 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
|
| 1061 | + | |
| 1062 | - | local LASTPART = Handle |
| 1062 | + | |
| 1063 | - | for i = 1, 10 do |
| 1063 | + | |
| 1064 | - | if LASTPART == Handle then |
| 1064 | + | |
| 1065 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) |
| 1065 | + | |
| 1066 | - | LASTPART = Part |
| 1066 | + | |
| 1067 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1067 | + | |
| 1068 | - | else |
| 1068 | + | |
| 1069 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) |
| 1069 | + | |
| 1070 | - | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
|
| 1070 | + | |
| 1071 | - | LASTPART = Part |
| 1071 | + | |
| 1072 | - | end |
| 1072 | + | |
| 1073 | local KEYDOWN = Mouse.KeyDown:connect(function(NEWKEY) | |
| 1074 | if NEWKEY == "c" and ATTACK == false then | |
| 1075 | - | local Barrel = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) |
| 1075 | + | |
| 1076 | - | MakeForm(Barrel,"Cyl") |
| 1076 | + | |
| 1077 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1077 | + | |
| 1078 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) |
| 1078 | + | |
| 1079 | - | MakeForm(Part,"Cyl") |
| 1079 | + | |
| 1080 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
|
| 1080 | + | |
| 1081 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) |
| 1081 | + | |
| 1082 | - | MakeForm(Part,"Wedge") |
| 1082 | + | |
| 1083 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1083 | + | |
| 1084 | - | local Hole2 = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) |
| 1084 | + | |
| 1085 | - | MakeForm(Hole2,"Cyl") |
| 1085 | + | |
| 1086 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
|
| 1086 | + | |
| 1087 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) |
| 1087 | + | |
| 1088 | - | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
|
| 1088 | + | |
| 1089 | - | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
|
| 1089 | + | |
| 1090 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) |
| 1090 | + | |
| 1091 | - | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
|
| 1091 | + | |
| 1092 | - | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
|
| 1092 | + | |
| 1093 | - | coroutine.resume(coroutine.create(function() |
| 1093 | + | |
| 1094 | - | while wait() do |
| 1094 | + | |
| 1095 | - | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) |
| 1095 | + | |
| 1096 | - | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) |
| 1096 | + | |
| 1097 | - | end |
| 1097 | + | |
| 1098 | WING2.Enabled = false | |
| 1099 | WING1.LockedToPart = false | |
| 1100 | - | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.7, Size2 = 0, Lifetime1 = 0.7, Lifetime2 = 0.7, Parent = Hole2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)})
|
| 1100 | + | |
| 1101 | - | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.8, Size2 = 0, Lifetime1 = 0.8, Lifetime2 = 0.9, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)})
|
| 1101 | + | |
| 1102 | Debris:AddItem(WING2,5) | |
| 1103 | - | local cR=255 |
| 1103 | + | |
| 1104 | - | local cG=0 |
| 1104 | + | |
| 1105 | - | local cB=0 |
| 1105 | + | |
| 1106 | - | local flg5=1 local omgidk=1 |
| 1106 | + | |
| 1107 | - | local add=15 |
| 1107 | + | |
| 1108 | - | game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
|
| 1108 | + | |
| 1109 | - | if omgidk>10000 then omgidk=0 end |
| 1109 | + | |
| 1110 | - | omgidk=omgidk+1 |
| 1110 | + | |
| 1111 | - | if cR>=255 then flg5=1 end |
| 1111 | + | |
| 1112 | - | if cG>=255 then flg5=2 end |
| 1112 | + | |
| 1113 | - | if cB>=255 then flg5=3 end |
| 1113 | + | |
| 1114 | - | if flg5==1 then cR=cR-add cG=cG+add end |
| 1114 | + | |
| 1115 | - | if flg5==2 then cG=cG-add cB=cB+add end |
| 1115 | + | |
| 1116 | - | if flg5==3 then cB=cB-add cR=cR+add end |
| 1116 | + | |
| 1117 | - | color=Color3.fromRGB(cR,cG,cB) |
| 1117 | + | |
| 1118 | - | for _, c in pairs(Weapon2:GetDescendants()) do |
| 1118 | + | |
| 1119 | - | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects2 and c.Parent.Parent ~= Effects2 then |
| 1119 | + | |
| 1120 | - | c.Material = "Glass" |
| 1120 | + | |
| 1121 | - | c.Color = C3(0,0,0) |
| 1121 | + | |
| 1122 | - | elseif c.ClassName == "Part" and c.Name == "Eye" then |
| 1122 | + | |
| 1123 | - | c.Color = color |
| 1123 | + | |
| 1124 | - | c.Material = "Neon" |
| 1124 | + | |
| 1125 | - | end |
| 1125 | + | |
| 1126 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1127 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1128 | - | Weapon2.Parent = Character |
| 1128 | + | |
| 1129 | - | for _, c in pairs(Weapon2:GetChildren()) do |
| 1129 | + | |
| 1130 | - | if c.ClassName == "Part" then |
| 1130 | + | |
| 1131 | - | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
| 1131 | + | |
| 1132 | - | end |
| 1132 | + | |
| 1133 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1134 | GYRO.D = 20 | |
| 1135 | - | Humanoid.Died:connect(function() |
| 1135 | + | |
| 1136 | - | ATTACK = true |
| 1136 | + | |
| 1137 | repeat | |
| 1138 | Swait() | |
| 1139 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 1140 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
| 1141 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
| 1142 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1143 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1144 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1145 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1146 | until ATTACK == false | |
| 1147 | GYRO:remove() | |
| 1148 | end | |
| 1149 | - | Pauldrons.Transparency = 0 |
| 1149 | + | |
| 1150 | FIRE.LockedToPart = false | |
| 1151 | FIRE.Enabled = false | |
| 1152 | - | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, FLINTLOCK, CF(1,1.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
|
| 1152 | + | |
| 1153 | FIRE2.LockedToPart = false | |
| 1154 | FIRE2.Enabled = false | |
| 1155 | Debris:AddItem(FIRE2,5) | |
| 1156 | end)) | |
| 1157 | local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Steel blue"), "Orb", VT(0,0,0), true)
| |
| 1158 | MakeForm(ORB,"Ball") | |
| 1159 | ORB.CFrame = CF(RootPart.Position+VT(0,8,0)) | |
| 1160 | local A = IT("Attachment",ORB)
| |
| 1161 | local FIRES = Particles("FireballFire1",A,true)
| |
| 1162 | FIRES.Size = NumberSequence.new(0) | |
| 1163 | FIRES.LockedToPart = true | |
| 1164 | local LOOP = 0 | |
| 1165 | for i = 1, 500 do | |
| 1166 | Swait() | |
| 1167 | LOOP = LOOP + 1 | |
| 1168 | if LOOP >= 30 then | |
| 1169 | LOOP = 0 | |
| 1170 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1171 | end | |
| 1172 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
| 1173 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
| 1174 | FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5) | |
| 1175 | FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2) | |
| 1176 | FIRES.Enabled = true | |
| 1177 | end | |
| 1178 | wait(1) | |
| 1179 | if KEYHOLD == false then | |
| 1180 | coroutine.resume(coroutine.create(function() | |
| 1181 | ORB.Transparency = 1 | |
| 1182 | FIRES.Enabled = false | |
| 1183 | Debris:AddItem(ORB,10) | |
| 1184 | ApplyAoE(ORB.Position,400,75,90,175,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
| |
| 1185 | CreateSound(EXPLOSIONLARGESOUND,ORB,10,1,false) | |
| 1186 | CreateSound(EXPLOSIONSMALLSOUND,ORB,10,1,false) | |
| 1187 | for i = 1, 3 do | |
| 1188 | WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1189 | end | |
| 1190 | for i = 1, 3 do | |
| 1191 | WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1192 | end | |
| 1193 | Particles("ExplosionFire1",ORB,1200)
| |
| 1194 | for i = 1, 15 do | |
| 1195 | WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1196 | end | |
| 1197 | end)) | |
| 1198 | else | |
| 1199 | for i = 1, 100 do | |
| 1200 | Swait() | |
| 1201 | ORB.Size = ORB.Size - VT(0.2,0.2,0.2)*5 | |
| 1202 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
| 1203 | FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5) | |
| 1204 | FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2) | |
| 1205 | end | |
| 1206 | ORB.Transparency = 1 | |
| 1207 | FIRES.Enabled = false | |
| 1208 | Debris:AddItem(ORB,10) | |
| 1209 | CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false) | |
| 1210 | for _, c in pairs(Character:GetChildren()) do | |
| 1211 | if c:IsA("BasePart") then
| |
| 1212 | Particles("ExplosionFire2",c,25)
| |
| 1213 | end | |
| 1214 | end | |
| 1215 | NEWANIM = true | |
| 1216 | wait(0.5) | |
| 1217 | for i = 1, 15 do | |
| 1218 | wait(0.1) | |
| 1219 | coroutine.resume(coroutine.create(function() | |
| 1220 | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(2,2,2)) | |
| 1221 | FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p) | |
| 1222 | CreateSound(FIREBALLSOUND,FIREBALL,6,1,false) | |
| 1223 | local FLAME = Particles("FireballFire3",FIREBALL,true)
| |
| 1224 | for i = 1, 250 do | |
| 1225 | Swait() | |
| 1226 | local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2, Character) | |
| 1227 | FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-2) | |
| 1228 | if HIT then | |
| 1229 | CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false) | |
| 1230 | local FIELD = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Institutional white"), "Fire", VT(75,0,75), true)
| |
| 1231 | local FIELD2 = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Institutional white"), "Fire", VT(75,0,75), true)
| |
| 1232 | FIELD.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
| 1233 | FIELD2.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(45), RAD(0)) | |
| 1234 | coroutine.resume(coroutine.create(function() | |
| 1235 | local FLAMES = Particles("DebrisFire",FIELD,true)
| |
| 1236 | local FLAMES2 = Particles("DebrisFire",FIELD2,true)
| |
| 1237 | for i = 1, 15 do | |
| 1238 | wait(1) | |
| 1239 | ApplyAoE(FIELD.Position,FIELD.Size.X/2,5,15,0,false,{SHAKE = 4, TIMER = 65, DOESFADE = true})
| |
| 1240 | end | |
| 1241 | FLAMES.Enabled = false | |
| 1242 | FLAMES2.Enabled = false | |
| 1243 | Debris:AddItem(FIELD,5) | |
| 1244 | Debris:AddItem(FIELD2,5) | |
| 1245 | end)) | |
| 1246 | Particles("ExplosionFire2",FIREBALL,600)
| |
| 1247 | break | |
| 1248 | end | |
| 1249 | end | |
| 1250 | FLAME.Enabled = false | |
| 1251 | Debris:AddItem(FIREBALL,7) | |
| 1252 | end)) | |
| 1253 | end | |
| 1254 | end | |
| 1255 | wait(0.3) | |
| 1256 | ATTACK = false | |
| 1257 | Rooted = false | |
| 1258 | end | |
| 1259 | ||
| 1260 | function Shroud() | |
| 1261 | if Mouse.Target ~= nil then | |
| 1262 | if Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1263 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1264 | local TORSO = HUM.Parent:FindFirstChild("HumanoidRootPart") or HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
| |
| 1265 | if TORSO and HUM.Health > 0 then | |
| 1266 | local DISTANCE = (RootPart.Position-TORSO.Position).Magnitude | |
| 1267 | if DISTANCE < 100 then | |
| 1268 | ATTACK = true | |
| 1269 | POSEIDON = false | |
| 1270 | Rooted = true | |
| 1271 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1272 | GYRO.D = 20 | |
| 1273 | GYRO.P = 4000 | |
| 1274 | GYRO.MaxTorque = VT(40000,40000,40000) | |
| 1275 | local POSITION = IT("BodyPosition",RootPart)
| |
| 1276 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 1277 | POSITION.D = 450 | |
| 1278 | POSITION.P = 40000 | |
| 1279 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1280 | local TARGETTING = true | |
| 1281 | local HIT = false | |
| 1282 | local FIRES = {}
| |
| 1283 | for _, c in pairs(Character:GetChildren()) do | |
| 1284 | if c:IsA("BasePart") then
| |
| 1285 | local FLAME = Particles("BodyFire",c,true)
| |
| 1286 | FLAME.Rate = 15 | |
| 1287 | table.insert(FIRES,FLAME) | |
| 1288 | end | |
| 1289 | end | |
| 1290 | CreateSound(CHARGE,Torso,6,1,false) | |
| 1291 | coroutine.resume(coroutine.create(function() | |
| 1292 | repeat | |
| 1293 | GYRO.CFrame = CF(RootPart.Position,TORSO.Position) | |
| 1294 | Swait() | |
| 1295 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1296 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1297 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1298 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1299 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1300 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1301 | until TARGETTING == false | |
| 1302 | repeat | |
| 1303 | GYRO.CFrame = CF(RootPart.Position,TORSO.Position) | |
| 1304 | POSITION.Position = CF(RootPart.Position,TORSO.Position)*CF(0,0,-5).p | |
| 1305 | DISTANCE = (RootPart.Position-TORSO.Position).Magnitude | |
| 1306 | Swait() | |
| 1307 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1308 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1309 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1310 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1311 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1312 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1313 | until HIT == true | |
| 1314 | POSITION:remove() | |
| 1315 | GYRO:remove() | |
| 1316 | end)) | |
| 1317 | wait(0.5) | |
| 1318 | repeat wait() until HOLD == true | |
| 1319 | for _, c in pairs(Character:GetChildren()) do | |
| 1320 | if c:IsA("BasePart") then
| |
| 1321 | local FLAME = Particles("BodyFire",c,true)
| |
| 1322 | table.insert(FIRES,FLAME) | |
| 1323 | end | |
| 1324 | end | |
| 1325 | for _, c in pairs(Character:GetChildren()) do | |
| 1326 | if c:IsA("BasePart") then
| |
| 1327 | c.Transparency = 1 | |
| 1328 | end | |
| 1329 | end | |
| 1330 | TARGETTING = false | |
| 1331 | for i = 1, 100 do | |
| 1332 | wait() | |
| 1333 | if DISTANCE < 5 or DISTANCE >= 200 then | |
| 1334 | break | |
| 1335 | end | |
| 1336 | end | |
| 1337 | HIT = true | |
| 1338 | if DISTANCE < 5 then | |
| 1339 | for i = 1, #FIRES do | |
| 1340 | FIRES[i].Enabled = false | |
| 1341 | end | |
| 1342 | for _, c in pairs(HUM.Parent:GetChildren()) do | |
| 1343 | if c:IsA("BasePart") then
| |
| 1344 | local FLAME = Particles("BodyFire",c,true)
| |
| 1345 | - | function printbye(Name) |
| 1345 | + | |
| 1346 | - | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your life is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
|
| 1346 | + | |
| 1347 | - | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") |
| 1347 | + | |
| 1348 | CreateSound(FIREBALLSOUND,Torso,6,1,false) | |
| 1349 | - | workspace.ChildAdded:connect(function(instance) |
| 1349 | + | |
| 1350 | - | for BANISH = 1, #TOBANISH do |
| 1350 | + | |
| 1351 | - | if TOBANISH[BANISH] ~= nil then |
| 1351 | + | |
| 1352 | - | if instance.Name == TOBANISH[BANISH] then |
| 1352 | + | |
| 1353 | - | coroutine.resume(coroutine.create(function() |
| 1353 | + | |
| 1354 | - | printbye(instance.Name) |
| 1354 | + | |
| 1355 | - | instance:ClearAllChildren() |
| 1355 | + | |
| 1356 | - | Debris:AddItem(instance,0.0005) |
| 1356 | + | |
| 1357 | - | end)) |
| 1357 | + | |
| 1358 | - | end |
| 1358 | + | |
| 1359 | - | end |
| 1359 | + | |
| 1360 | - | end |
| 1360 | + | |
| 1361 | break | |
| 1362 | end | |
| 1363 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1364 | end | |
| 1365 | UNANCHOR = false | |
| 1366 | bv:remove() | |
| 1367 | wait(1) | |
| 1368 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1369 | CreateSound(FIREBALLSOUND,Torso,6,1,false) | |
| 1370 | UNANCHOR = true | |
| 1371 | local bv = Instance.new("BodyVelocity")
| |
| 1372 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1373 | bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450 | |
| 1374 | bv.Parent = TORSO | |
| 1375 | local LANDED = false | |
| 1376 | for i = 1, 500 do | |
| 1377 | wait() | |
| 1378 | Ignore = {Character,HUM.Parent}
| |
| 1379 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1380 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 1381 | local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore) | |
| 1382 | if HITFLOOR or FULLREGEN == true then | |
| 1383 | LANDED = true | |
| 1384 | break | |
| 1385 | end | |
| 1386 | if TORSO.Parent == nil then | |
| 1387 | break | |
| 1388 | end | |
| 1389 | end | |
| 1390 | if TORSO.Parent ~= nil then | |
| 1391 | UNANCHOR = false | |
| 1392 | bv:remove() | |
| 1393 | wait(1) | |
| 1394 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Medium blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1395 | CreateSound(FIREBALLSOUND,Torso,6,1,false) | |
| 1396 | UNANCHOR = true | |
| 1397 | local bv = Instance.new("BodyVelocity")
| |
| 1398 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1399 | bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450 | |
| 1400 | bv.Parent = TORSO | |
| 1401 | local LANDED = false | |
| 1402 | for i = 1, 500 do | |
| 1403 | wait() | |
| 1404 | Ignore = {Character,HUM.Parent}
| |
| 1405 | WACKYEFFECT({Time = 15, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.9, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1406 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 1407 | local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore) | |
| 1408 | if HITFLOOR or FULLREGEN == true then | |
| 1409 | LANDED = true | |
| 1410 | break | |
| 1411 | - | function Banish(Foe) |
| 1411 | + | |
| 1412 | - | if Foe then |
| 1412 | + | |
| 1413 | - | coroutine.resume(coroutine.create(function() |
| 1413 | + | |
| 1414 | - | --if game.Players:FindFirstChild(Foe.Name) then |
| 1414 | + | |
| 1415 | - | table.insert(TOBANISH,Foe.Name) |
| 1415 | + | |
| 1416 | - | printbye(Foe.Name) |
| 1416 | + | |
| 1417 | - | --end |
| 1417 | + | |
| 1418 | - | Foe.Archivable = true |
| 1418 | + | |
| 1419 | - | local CLONE = Foe:Clone() |
| 1419 | + | |
| 1420 | - | Foe:Destroy() |
| 1420 | + | |
| 1421 | - | CLONE.Parent = Effects2 |
| 1421 | + | |
| 1422 | - | CLONE:BreakJoints() |
| 1422 | + | |
| 1423 | - | local MATERIALS = {"Glass","Neon"}
|
| 1423 | + | |
| 1424 | - | for _, c in pairs(CLONE:GetDescendants()) do |
| 1424 | + | |
| 1425 | - | if c:IsA("BasePart") then
|
| 1425 | + | |
| 1426 | - | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then |
| 1426 | + | |
| 1427 | - | CreateSound(340722848, c, 10, 1, false) |
| 1427 | + | |
| 1428 | - | end |
| 1428 | + | |
| 1429 | - | c.Anchored = true |
| 1429 | + | |
| 1430 | - | c.Transparency = c.Transparency + 0.2 |
| 1430 | + | |
| 1431 | - | c.Material = MATERIALS[MRANDOM(1,2)] |
| 1431 | + | |
| 1432 | - | c.Color = C3(0,0.7,0.3) |
| 1432 | + | |
| 1433 | - | if c.ClassName == "MeshPart" then |
| 1433 | + | |
| 1434 | - | c.TextureID = "" |
| 1434 | + | |
| 1435 | - | end |
| 1435 | + | |
| 1436 | - | if c:FindFirstChildOfClass("SpecialMesh") then
|
| 1436 | + | |
| 1437 | - | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
|
| 1437 | + | |
| 1438 | - | end |
| 1438 | + | |
| 1439 | - | if c:FindFirstChildOfClass("Decal") then
|
| 1439 | + | |
| 1440 | - | c:FindFirstChildOfClass("Decal"):remove()
|
| 1440 | + | |
| 1441 | - | end |
| 1441 | + | |
| 1442 | - | c.Name = "Banished" |
| 1442 | + | |
| 1443 | - | c.CanCollide = false |
| 1443 | + | |
| 1444 | - | else |
| 1444 | + | |
| 1445 | - | c:remove() |
| 1445 | + | |
| 1446 | - | end |
| 1446 | + | |
| 1447 | - | end |
| 1447 | + | |
| 1448 | - | local A = false |
| 1448 | + | |
| 1449 | - | for i = 1, 35 do |
| 1449 | + | |
| 1450 | - | if A == false then |
| 1450 | + | |
| 1451 | - | A = true |
| 1451 | + | |
| 1452 | - | elseif A == true then |
| 1452 | + | |
| 1453 | - | A = false |
| 1453 | + | |
| 1454 | - | end |
| 1454 | + | |
| 1455 | - | for _, c in pairs(CLONE:GetDescendants()) do |
| 1455 | + | |
| 1456 | - | if c:IsA("BasePart") then
|
| 1456 | + | |
| 1457 | - | c.Anchored = true |
| 1457 | + | |
| 1458 | - | c.Material = MATERIALS[MRANDOM(1,2)] |
| 1458 | + | |
| 1459 | - | c.Transparency = c.Transparency + 0.8/35 |
| 1459 | + | |
| 1460 | - | if A == false then |
| 1460 | + | |
| 1461 | - | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
| 1461 | + | |
| 1462 | - | elseif A == true then |
| 1462 | + | |
| 1463 | - | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
| 1463 | + | |
| 1464 | - | end |
| 1464 | + | |
| 1465 | - | end |
| 1465 | + | |
| 1466 | - | end |
| 1466 | + | |
| 1467 | - | Swait() |
| 1467 | + | |
| 1468 | - | end |
| 1468 | + | |
| 1469 | - | CLONE:remove() |
| 1469 | + | |
| 1470 | - | end)) |
| 1470 | + | |
| 1471 | - | end |
| 1471 | + | |
| 1472 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
| 1473 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
| 1474 | - | function ApplyAoE2(POSITION,RANGE,ISBANISH) |
| 1474 | + | |
| 1475 | - | local CHILDREN = workspace:GetDescendants() |
| 1475 | + | |
| 1476 | - | for index, CHILD in pairs(CHILDREN) do |
| 1476 | + | |
| 1477 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
| 1477 | + | |
| 1478 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
|
| 1478 | + | |
| 1479 | - | if HUM then |
| 1479 | + | |
| 1480 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
|
| 1480 | + | |
| 1481 | - | if TORSO then |
| 1481 | + | |
| 1482 | - | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
| 1482 | + | |
| 1483 | - | if ISBANISH == true then |
| 1483 | + | |
| 1484 | - | Banish(CHILD) |
| 1484 | + | |
| 1485 | - | else |
| 1485 | + | |
| 1486 | - | if ISBANISH == "Gravity" then |
| 1486 | + | |
| 1487 | - | HUM.PlatformStand = true |
| 1487 | + | |
| 1488 | - | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
|
| 1488 | + | |
| 1489 | - | local grav = Instance.new("BodyPosition",TORSO)
|
| 1489 | + | |
| 1490 | - | grav.D = 15 |
| 1490 | + | |
| 1491 | - | grav.P = 20000 |
| 1491 | + | |
| 1492 | - | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
| 1492 | + | |
| 1493 | - | grav.position = TORSO.Position |
| 1493 | + | |
| 1494 | - | grav.Name = "V3BanishForce"..Player.Name |
| 1494 | + | |
| 1495 | - | else |
| 1495 | + | |
| 1496 | - | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
|
| 1496 | + | |
| 1497 | - | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) |
| 1497 | + | |
| 1498 | - | end |
| 1498 | + | |
| 1499 | - | else |
| 1499 | + | |
| 1500 | - | HUM.PlatformStand = false |
| 1500 | + | |
| 1501 | - | end |
| 1501 | + | |
| 1502 | - | end |
| 1502 | + | |
| 1503 | - | elseif ISBANISH == "Gravity" then |
| 1503 | + | |
| 1504 | - | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
|
| 1504 | + | |
| 1505 | - | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
|
| 1505 | + | |
| 1506 | - | HUM.PlatformStand = false |
| 1506 | + | |
| 1507 | - | end |
| 1507 | + | |
| 1508 | - | end |
| 1508 | + | |
| 1509 | - | end |
| 1509 | + | |
| 1510 | - | end |
| 1510 | + | |
| 1511 | - | end |
| 1511 | + | local RANGE = 75 |
| 1512 | - | end |
| 1512 | + | |
| 1513 | FLAME.Speed = NumberRange.new(0,FIREBALL.Size.X*5) | |
| 1514 | FLAME.Size = NumberSequence.new(0,25) | |
| 1515 | - | function ApplyAoE(POSITION,RANGE,FLING,BURN) |
| 1515 | + | |
| 1516 | - | local CHILDREN = workspace:GetDescendants() |
| 1516 | + | |
| 1517 | - | for index, CHILD in pairs(CHILDREN) do |
| 1517 | + | |
| 1518 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
| 1518 | + | |
| 1519 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
|
| 1519 | + | |
| 1520 | - | if HUM then |
| 1520 | + | |
| 1521 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
|
| 1521 | + | |
| 1522 | - | if TORSO then |
| 1522 | + | |
| 1523 | - | if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then |
| 1523 | + | |
| 1524 | - | CHILD:BreakJoints() |
| 1524 | + | |
| 1525 | - | if FLING ~= 0 then |
| 1525 | + | |
| 1526 | - | for _, c in pairs(CHILD:GetChildren()) do |
| 1526 | + | |
| 1527 | - | if c:IsA("BasePart") and c.Transparency == 0 then
|
| 1527 | + | |
| 1528 | - | if BURN == true then |
| 1528 | + | |
| 1529 | - | Fire(c) |
| 1529 | + | |
| 1530 | - | end |
| 1530 | + | |
| 1531 | - | local bv = Instance.new("BodyVelocity")
|
| 1531 | + | |
| 1532 | - | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) |
| 1532 | + | |
| 1533 | - | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING |
| 1533 | + | |
| 1534 | - | bv.Parent = c |
| 1534 | + | |
| 1535 | - | Debris:AddItem(bv,0.05) |
| 1535 | + | |
| 1536 | - | end |
| 1536 | + | |
| 1537 | - | end |
| 1537 | + | |
| 1538 | - | end |
| 1538 | + | |
| 1539 | - | end |
| 1539 | + | |
| 1540 | - | end |
| 1540 | + | |
| 1541 | - | end |
| 1541 | + | |
| 1542 | - | end |
| 1542 | + | |
| 1543 | - | end |
| 1543 | + | |
| 1544 | for i = 1, 10 do | |
| 1545 | Swait() | |
| 1546 | FIREBALL.Mesh.Scale = FIREBALL.Mesh.Scale - VT(0.1,0.1,0.1) | |
| 1547 | end | |
| 1548 | Debris:AddItem(FIREBALL,5) | |
| 1549 | end)) | |
| 1550 | wait(0.5) | |
| 1551 | ATTACK = false | |
| 1552 | Rooted = false | |
| 1553 | - | HOLD = false |
| 1553 | + | |
| 1554 | ||
| 1555 | function Devastor() | |
| 1556 | ATTACK = true | |
| 1557 | Rooted = true | |
| 1558 | local POSITION = IT("BodyPosition",RootPart)
| |
| 1559 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 1560 | POSITION.D = 450 | |
| 1561 | POSITION.P = 40000 | |
| 1562 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1563 | local FIRE = Particles("FistFire",RightArm,true)
| |
| 1564 | local FIRE2 = Particles("FistFire",LeftArm,true)
| |
| 1565 | CreateSound(CHARGE,Torso,6,1,false) | |
| 1566 | local NEWANIM = false | |
| 1567 | coroutine.resume(coroutine.create(function() | |
| 1568 | repeat | |
| 1569 | Swait() | |
| 1570 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1571 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1572 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1573 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1574 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1575 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1576 | until ATTACK == false or NEWANIM == true | |
| 1577 | if NEWANIM == true then | |
| 1578 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1579 | GYRO.D = 20 | |
| 1580 | GYRO.P = 4000 | |
| 1581 | GYRO.MaxTorque = VT(40000,40000,40000) | |
| 1582 | repeat | |
| 1583 | Swait() | |
| 1584 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 1585 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
| 1586 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
| 1587 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1588 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1589 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1590 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1591 | - | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5,5,5)) |
| 1591 | + | |
| 1592 | GYRO:remove() | |
| 1593 | end | |
| 1594 | POSITION:remove() | |
| 1595 | FIRE.LockedToPart = false | |
| 1596 | FIRE.Enabled = false | |
| 1597 | Debris:AddItem(FIRE,5) | |
| 1598 | FIRE2.LockedToPart = false | |
| 1599 | FIRE2.Enabled = false | |
| 1600 | Debris:AddItem(FIRE2,5) | |
| 1601 | end)) | |
| 1602 | - | ApplyAoE(FIREBALL.Position,40,15,25,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
|
| 1602 | + | |
| 1603 | local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Steel blue"), "Orb", VT(0,0,0), true)
| |
| 1604 | MakeForm(ORB,"Ball") | |
| 1605 | ORB.CFrame = CF(RootPart.Position+VT(0,8,0)) | |
| 1606 | local A = IT("Attachment",ORB)
| |
| 1607 | local FIRES = Particles("FireballFire1",A,true)
| |
| 1608 | FIRES.Size = NumberSequence.new(0) | |
| 1609 | FIRES.LockedToPart = true | |
| 1610 | local LOOP = 0 | |
| 1611 | for i = 1, 200 do | |
| 1612 | Swait() | |
| 1613 | LOOP = LOOP + 1 | |
| 1614 | if LOOP >= 30 then | |
| 1615 | LOOP = 0 | |
| 1616 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1617 | end | |
| 1618 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
| 1619 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
| 1620 | FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5) | |
| 1621 | FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2) | |
| 1622 | FIRES.Enabled = true | |
| 1623 | end | |
| 1624 | RightArm.Transparency = 1 | |
| 1625 | LeftArm.Transparency = 1 | |
| 1626 | FIRE.Enabled = false | |
| 1627 | FIRE2.Enabled = false | |
| 1628 | for _, c in pairs(Character:GetChildren()) do | |
| 1629 | if c:IsA("BasePart") then
| |
| 1630 | local FLAME = Particles("BodyFire",c,true)
| |
| 1631 | table.insert(FIRETABLE,FLAME) | |
| 1632 | end | |
| 1633 | end | |
| 1634 | CreateSound(CHARGE,Torso,6,0.5,false) | |
| 1635 | for i = 1, 200 do | |
| 1636 | Swait() | |
| 1637 | LOOP = LOOP + 1 | |
| 1638 | if LOOP >= 30 then | |
| 1639 | LOOP = 0 | |
| 1640 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1641 | end | |
| 1642 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
| 1643 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
| 1644 | FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5) | |
| 1645 | FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2) | |
| 1646 | FIRES.Enabled = true | |
| 1647 | end | |
| 1648 | for _, c in pairs(Character:GetChildren()) do | |
| 1649 | if c:IsA("BasePart") then
| |
| 1650 | c.Transparency = 1 | |
| 1651 | end | |
| 1652 | end | |
| 1653 | for i = 1, #FIRETABLE do | |
| 1654 | FIRETABLE[i].Enabled = false | |
| 1655 | Debris:AddItem(FIRETABLE[i],5) | |
| 1656 | - | local RANGE = 50 |
| 1656 | + | |
| 1657 | for i = 1, 400 do | |
| 1658 | Swait() | |
| 1659 | LOOP = LOOP + 1 | |
| 1660 | if LOOP >= 30 then | |
| 1661 | LOOP = 0 | |
| 1662 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1663 | end | |
| 1664 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
| 1665 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
| 1666 | FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5) | |
| 1667 | FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2) | |
| 1668 | FIRES.Enabled = true | |
| 1669 | end | |
| 1670 | wait(0.5) | |
| 1671 | FIRES.Lifetime = NumberRange.new(2,5) | |
| 1672 | FIRES.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,ORB.Size.Y/1.5),NumberSequenceKeypoint.new(0.5,ORB.Size.Y/2),NumberSequenceKeypoint.new(1,0)})
| |
| 1673 | FIRES.LockedToPart = false | |
| 1674 | CreateSound(FIREBALLSOUND,Effects,4,1,false) | |
| 1675 | coroutine.resume(coroutine.create(function() | |
| 1676 | ORB.CFrame = CF(ORB.Position,Mouse.Hit.p) | |
| 1677 | for i = 1, 1200 do | |
| 1678 | Swait() | |
| 1679 | ORB.CFrame = ORB.CFrame*CF(0,0,-1) | |
| 1680 | local HIT,HITPOS = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2.5, Character) | |
| 1681 | if HIT then | |
| 1682 | break | |
| 1683 | end | |
| 1684 | end | |
| 1685 | for i = 1, 6 do | |
| 1686 | ApplyAoE(ORB.Position,ORB.Size.X*10,75,90,375,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
| |
| 1687 | CreateSound(EXPLOSIONLARGESOUND,Effects,2,1,false) | |
| 1688 | CreateSound(EXPLOSIONSMALLSOUND,Effects,4,1,false) | |
| 1689 | for i = 1, 3 do | |
| 1690 | WACKYEFFECT({Time = 160, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1691 | end | |
| 1692 | for i = 1, 3 do | |
| 1693 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1694 | end | |
| 1695 | for i = 1, 15 do | |
| 1696 | WACKYEFFECT({Time = 120+(i*5), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(ORB.Size.X*30,15,ORB.Size.X*30), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1697 | end | |
| 1698 | wait(1) | |
| 1699 | end | |
| 1700 | FIRES.Enabled = false | |
| 1701 | for i = 1, 10 do | |
| 1702 | - | --////////////////// |
| 1702 | + | |
| 1703 | - | function ShootBeam() |
| 1703 | + | |
| 1704 | - | ATTACK = true |
| 1704 | + | |
| 1705 | - | Rooted = false |
| 1705 | + | |
| 1706 | - | for i=0, 0.05, 0.1 / Animation_Speed do |
| 1706 | + | |
| 1707 | - | Swait() |
| 1707 | + | |
| 1708 | - | turnto(Mouse2.Hit.p) |
| 1708 | + | |
| 1709 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
| 1709 | + | |
| 1710 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) |
| 1710 | + | |
| 1711 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
| 1711 | + | |
| 1712 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
| 1712 | + | |
| 1713 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
| 1713 | + | |
| 1714 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
| 1714 | + | |
| 1715 | - | end |
| 1715 | + | |
| 1716 | - | repeat |
| 1716 | + | |
| 1717 | - | for i=0, 0.05, 0.1 / Animation_Speed do |
| 1717 | + | |
| 1718 | - | Swait() |
| 1718 | + | |
| 1719 | - | turnto(Mouse2.Hit.p) |
| 1719 | + | |
| 1720 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
| 1720 | + | |
| 1721 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) |
| 1721 | + | |
| 1722 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
| 1722 | + | |
| 1723 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
| 1723 | + | |
| 1724 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
| 1724 | + | |
| 1725 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
| 1725 | + | |
| 1726 | - | end |
| 1726 | + | |
| 1727 | - | local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character) |
| 1727 | + | |
| 1728 | - | SpawnTrail(Hole2.Position,POS) |
| 1728 | + | |
| 1729 | - | if HIT ~= nil then |
| 1729 | + | |
| 1730 | - | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then |
| 1730 | + | |
| 1731 | - | Banish(HIT.Parent) |
| 1731 | + | |
| 1732 | - | end |
| 1732 | + | |
| 1733 | - | end |
| 1733 | + | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, FLINT, CF(-0.05,-1.65,0) * ANGLES(RAD(180),RAD(0),RAD(0)), CF(0, 0, 0))
|
| 1734 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,7.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0.7,0.3), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
|
| 1734 | + | |
| 1735 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0.7,0.3), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
|
| 1735 | + | |
| 1736 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0.7,0.3), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
|
| 1736 | + | |
| 1737 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0.7,0.3), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
|
| 1737 | + | |
| 1738 | - | for i=0, 0.05, 0.1 / Animation_Speed do |
| 1738 | + | |
| 1739 | - | Swait() |
| 1739 | + | |
| 1740 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
| 1740 | + | |
| 1741 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) |
| 1741 | + | |
| 1742 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
| 1742 | + | |
| 1743 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
| 1743 | + | |
| 1744 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
| 1744 | + | |
| 1745 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
| 1745 | + | CreateSound(213603013,RightArm,4,1,false) |
| 1746 | - | end |
| 1746 | + | |
| 1747 | - | until KEYHOLD == false |
| 1747 | + | |
| 1748 | - | ATTACK = false |
| 1748 | + | |
| 1749 | - | Rooted = false |
| 1749 | + | |
| 1750 | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Ignore) | |
| 1751 | - | --///////////////// |
| 1751 | + | |
| 1752 | if AIMHIT.Parent ~= Character then | |
| 1753 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1754 | local HUM = AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1755 | if HUM then | |
| 1756 | ApplyDamage(HUM,MRANDOM(70,90)) | |
| 1757 | end | |
| 1758 | end | |
| 1759 | end | |
| 1760 | end | |
| 1761 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Pearl", "Arrow", VT(0,0,0)) | |
| 1762 | MakeForm(TRAIL,"Cyl") | |
| 1763 | local DIST = (FLINT.CFrame*CF(0,1.043,0.231).p - AIMPOS).Magnitude | |
| 1764 | TRAIL.Size = VT(0.1,DIST,0.1) | |
| 1765 | TRAIL.CFrame = CF(FLINT.CFrame*CF(0,1.043,0.231).p, AIMPOS) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 1766 | coroutine.resume(coroutine.create(function() | |
| 1767 | for i = 1, 5 do | |
| 1768 | Swait() | |
| 1769 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 1770 | end | |
| 1771 | TRAIL:remove() | |
| 1772 | - | local RANGE = 40 |
| 1772 | + | |
| 1773 | repeat | |
| 1774 | Swait() | |
| 1775 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 1776 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1777 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1778 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1779 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1780 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1781 | until ATTACK == false | |
| 1782 | GYRO:remove() | |
| 1783 | POSITION:remove() | |
| 1784 | FLINT:remove() | |
| 1785 | FLINTLOCK.Transparency = 0 | |
| 1786 | end)) | |
| 1787 | wait(0.3) | |
| 1788 | SHOT = true | |
| 1789 | wait(0.5) | |
| 1790 | ATTACK = false | |
| 1791 | Rooted = false | |
| 1792 | end | |
| 1793 | ||
| 1794 | function Jupiter() | |
| 1795 | ATTACK = true | |
| 1796 | Rooted = true | |
| 1797 | local POSITION = IT("BodyPosition",RootPart)
| |
| 1798 | POSITION.Position = RootPart.Position+VT(0,0.2,0) | |
| 1799 | POSITION.D = 450 | |
| 1800 | POSITION.P = 40000 | |
| 1801 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1802 | coroutine.resume(coroutine.create(function() | |
| 1803 | repeat | |
| 1804 | Swait() | |
| 1805 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed) | |
| 1806 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
| 1807 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.55 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1808 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 1809 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.25) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 1810 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.4) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 2 / Animation_Speed) | |
| 1811 | until ATTACK == false | |
| 1812 | end)) | |
| 1813 | wait(0.5) | |
| 1814 | repeat wait() until KEYHOLD == false | |
| 1815 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35,4,35), Transparency = 0.3, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Medium blue".Color, SoundID = 431105970, SoundPitch = 1, SoundVolume = 10})
| |
| 1816 | POSITION:remove() | |
| 1817 | RootPart.Velocity = VT(0,150,0) | |
| 1818 | ATTACK = false | |
| 1819 | Rooted = false | |
| 1820 | end | |
| 1821 | ||
| 1822 | function Taunt() | |
| 1823 | ATTACK = true | |
| 1824 | Rooted = true | |
| 1825 | local TAUNT = CreateSound(2033655189,Torso,10,1,false) | |
| 1826 | coroutine.resume(coroutine.create(function() | |
| 1827 | repeat | |
| 1828 | Swait() | |
| 1829 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1830 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1831 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1832 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1833 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1834 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1835 | until ATTACK == false | |
| 1836 | end)) | |
| 1837 | repeat wait() until TAUNT.Playing == false | |
| 1838 | ATTACK = false | |
| 1839 | Rooted = false | |
| 1840 | end | |
| 1841 | ||
| 1842 | --//=================================\\ | |
| 1843 | --|| ASSIGN THINGS TO KEYS | |
| 1844 | --\\=================================// | |
| 1845 | ||
| 1846 | function MouseDown(Mouse) | |
| 1847 | HOLD = true | |
| 1848 | if ATTACK == false then | |
| 1849 | end | |
| 1850 | end | |
| 1851 | ||
| 1852 | function MouseUp(Mouse) | |
| 1853 | HOLD = false | |
| 1854 | end | |
| 1855 | ||
| 1856 | local MUSIC = CreateSound(285883918,Character,3,1,true) | |
| 1857 | ||
| 1858 | function KeyDown(Key) | |
| 1859 | KEYHOLD = true | |
| 1860 | if ATTACK == false and FULLREGEN == false then | |
| 1861 | if Key == "z" then | |
| 1862 | Fireball() | |
| 1863 | end | |
| 1864 | ||
| 1865 | if Key == "b" and FIREFIELD == false and SEARING == false then | |
| 1866 | FireField() | |
| 1867 | end | |
| 1868 | ||
| 1869 | if Key == "c" and SEARING == false then | |
| 1870 | SearingForm() | |
| 1871 | end | |
| 1872 | ||
| 1873 | if Key == "v" and SEARING == false then | |
| 1874 | SearingOrb() | |
| 1875 | end | |
| 1876 | ||
| 1877 | if Key == "q" and SEARING == false then | |
| 1878 | Shroud() | |
| 1879 | end | |
| 1880 | ||
| 1881 | if Key == "x" and SEARING == false then | |
| 1882 | Jupiter() | |
| 1883 | wait(2) | |
| 1884 | Devastor() | |
| 1885 | end | |
| 1886 | ||
| 1887 | if Key == "e" then | |
| 1888 | Spitter() | |
| 1889 | end | |
| 1890 | ||
| 1891 | if Key == "g" then | |
| 1892 | Lock() | |
| 1893 | end | |
| 1894 | ||
| 1895 | if Key == "j" then | |
| 1896 | Jupiter() | |
| 1897 | end | |
| 1898 | ||
| 1899 | if Key == "t" and SEARING == false then | |
| 1900 | Taunt() | |
| 1901 | end | |
| 1902 | ||
| 1903 | if Key == "h" then | |
| 1904 | if POSEIDON == false then | |
| 1905 | POSEIDON = true | |
| 1906 | CreateSound(POSEIDONSOUND,Torso,5,MRANDOM(8,12)/10,false) | |
| 1907 | else | |
| 1908 | POSEIDON = false | |
| 1909 | end | |
| 1910 | end | |
| 1911 | end | |
| 1912 | ||
| 1913 | if Key == "w" and ATTACK == false and SEARING == true and VALUE2 == false then | |
| 1914 | repeat | |
| 1915 | VALUE2 = true | |
| 1916 | Swait() | |
| 1917 | BODYPOS.Position = RootPart.CFrame*CF(0,0,-5).p | |
| 1918 | until KEYHOLD == false | |
| 1919 | VALUE2 = false | |
| 1920 | end | |
| 1921 | ||
| 1922 | if string.byte(Key) == 50 and ATTACK == false then | |
| 1923 | if Speed == 16 then | |
| 1924 | Speed = 45 | |
| 1925 | elseif Speed == 45 then | |
| 1926 | Speed = 16 | |
| 1927 | end | |
| 1928 | end | |
| 1929 | ||
| 1930 | if Key == "1" then | |
| 1931 | MUSIC:Play() | |
| 1932 | CHOSENSONG = CHOSENSONG + 1 | |
| 1933 | if CHOSENSONG > #SONGS then | |
| 1934 | CHOSENSONG = 1 | |
| 1935 | end | |
| 1936 | end | |
| 1937 | end | |
| 1938 | ||
| 1939 | function KeyUp(Key) | |
| 1940 | KEYHOLD = false | |
| 1941 | end | |
| 1942 | ||
| 1943 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1944 | MouseDown(NEWKEY) | |
| 1945 | end) | |
| 1946 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1947 | MouseUp(NEWKEY) | |
| 1948 | end) | |
| 1949 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1950 | KeyDown(NEWKEY) | |
| 1951 | end) | |
| 1952 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1953 | KeyUp(NEWKEY) | |
| 1954 | end) | |
| 1955 | ||
| 1956 | --//=================================\\ | |
| 1957 | --\\=================================// | |
| 1958 | ||
| 1959 | function unanchor() | |
| 1960 | if UNANCHOR == true then | |
| 1961 | for _, c in pairs(Character:GetChildren()) do | |
| 1962 | if c:IsA("BasePart") then
| |
| 1963 | c.Anchored = false | |
| 1964 | end | |
| 1965 | end | |
| 1966 | else | |
| 1967 | for _, c in pairs(Character:GetChildren()) do | |
| 1968 | if c:IsA("BasePart") then
| |
| 1969 | c.Anchored = true | |
| 1970 | end | |
| 1971 | end | |
| 1972 | end | |
| 1973 | end | |
| 1974 | ||
| 1975 | --//=================================\\ | |
| 1976 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1977 | --\\=================================// | |
| 1978 | ||
| 1979 | Humanoid.Changed:connect(function(Jump) | |
| 1980 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1981 | Humanoid.Jump = false | |
| 1982 | end | |
| 1983 | end) | |
| 1984 | ||
| 1985 | local LOOP = 0 | |
| 1986 | ||
| 1987 | while true do | |
| 1988 | Swait() | |
| 1989 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 1990 | Humanoid = IT("Humanoid",Character)
| |
| 1991 | end | |
| 1992 | Effects.Parent = Character | |
| 1993 | script.Parent = WEAPONGUI | |
| 1994 | ANIMATE.Parent = nil | |
| 1995 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 1996 | v:Stop(); | |
| 1997 | end | |
| 1998 | SINE = SINE + CHANGE | |
| 1999 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 2000 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 2001 | Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,Effects}
| |
| 2002 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 2003 | local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore) | |
| 2004 | local WALKSPEEDVALUE = 5 | |
| 2005 | if SEARING == false then | |
| 2006 | if ANIM == "Walk" and TORSOVELOCITY > 1 and SEARING == false and Rooted == false then | |
| 2007 | if Humanoid.WalkSpeed <= 20 then | |
| 2008 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed) | |
| 2009 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2010 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
| 2011 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 +0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
| 2012 | elseif SEARING == false and Humanoid.WalkSpeed > 20 and Rooted == false then | |
| 2013 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed) | |
| 2014 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2015 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed) | |
| 2016 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed) | |
| 2017 | end | |
| 2018 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or SEARING == true or Rooted == true then | |
| 2019 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2020 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2021 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2022 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2023 | end | |
| 2024 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 2025 | ANIM = "Jump" | |
| 2026 | if ATTACK == false then | |
| 2027 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2028 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2029 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2030 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2031 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2032 | - | --/////////////////////////////////////////////// |
| 2032 | + | |
| 2033 | - | --////////////////////////////////////////////// |
| 2033 | + | |
| 2034 | - | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) |
| 2034 | + | |
| 2035 | - | if WhichPose == "Cast1" then |
| 2035 | + | |
| 2036 | - | for i=0, Time, 0.1 / Animation_Speed do |
| 2036 | + | |
| 2037 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(8*COS(SINE / 6))), 1 / Animation_Speed) | |
| 2038 | - | if Magic == true then |
| 2038 | + | |
| 2039 | - | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
|
| 2039 | + | |
| 2040 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2041 | - | if Gyro ~= nil and Gyro ~= false then |
| 2041 | + | |
| 2042 | - | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
| 2042 | + | |
| 2043 | end | |
| 2044 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) |
| 2044 | + | |
| 2045 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) |
| 2045 | + | |
| 2046 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
| 2046 | + | |
| 2047 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
| 2047 | + | |
| 2048 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
| 2048 | + | |
| 2049 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2049 | + | |
| 2050 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 1 * COS(SINE / 12)), RAD(25), RAD(20 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2051 | - | elseif WhichPose == "Cast2" then |
| 2051 | + | |
| 2052 | - | for i=0, Time, 0.1 / Animation_Speed do |
| 2052 | + | |
| 2053 | end | |
| 2054 | - | if Magic == true then |
| 2054 | + | |
| 2055 | - | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
|
| 2055 | + | |
| 2056 | - | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
|
| 2056 | + | |
| 2057 | if Humanoid.WalkSpeed <= 20 then | |
| 2058 | - | if Gyro ~= nil and Gyro ~= false then |
| 2058 | + | |
| 2059 | - | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
| 2059 | + | |
| 2060 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed) | |
| 2061 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2061 | + | |
| 2062 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2062 | + | |
| 2063 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
| 2063 | + | |
| 2064 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
| 2064 | + | |
| 2065 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
| 2065 | + | |
| 2066 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2066 | + | |
| 2067 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 2068 | - | elseif WhichPose == "RightArmUp" then |
| 2068 | + | |
| 2069 | - | for i=0, Time, 0.1 / Animation_Speed do |
| 2069 | + | |
| 2070 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed) | |
| 2071 | - | if Magic == true then |
| 2071 | + | |
| 2072 | - | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
|
| 2072 | + | |
| 2073 | end | |
| 2074 | - | if Gyro ~= nil and Gyro ~= false then |
| 2074 | + | |
| 2075 | - | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
| 2075 | + | |
| 2076 | if VALUE2 == false and DIRECTTURN == false then | |
| 2077 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed) |
| 2077 | + | |
| 2078 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) |
| 2078 | + | |
| 2079 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
| 2079 | + | |
| 2080 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
| 2080 | + | |
| 2081 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
| 2081 | + | |
| 2082 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2082 | + | |
| 2083 | GYRO.MaxTorque = VT(80000,40000,80000) | |
| 2084 | - | elseif WhichPose == "Taunt" then |
| 2084 | + | |
| 2085 | - | for i=0, Time, 0.1 / Animation_Speed do |
| 2085 | + | |
| 2086 | end | |
| 2087 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2087 | + | |
| 2088 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2088 | + | |
| 2089 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
| 2089 | + | |
| 2090 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
| 2090 | + | |
| 2091 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
| 2091 | + | |
| 2092 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2092 | + | |
| 2093 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2094 | - | HATWELD.Part0 = RightArm |
| 2094 | + | |
| 2095 | - | HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0)) |
| 2095 | + | |
| 2096 | - | CreateSound(221057812,Torso,10,1,false) |
| 2096 | + | |
| 2097 | - | for i=0, Time*2, 0.1 / Animation_Speed do |
| 2097 | + | |
| 2098 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2099 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2099 | + | |
| 2100 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2100 | + | |
| 2101 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
| 2101 | + | |
| 2102 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
| 2102 | + | |
| 2103 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
| 2103 | + | |
| 2104 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2104 | + | |
| 2105 | end | |
| 2106 | - | for i=0, Time, 0.1 / Animation_Speed do |
| 2106 | + | |
| 2107 | Humanoid.MaxHealth = "inf" | |
| 2108 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2108 | + | |
| 2109 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2109 | + | |
| 2110 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
| 2110 | + | |
| 2111 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
| 2111 | + | |
| 2112 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
| 2112 | + | |
| 2113 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2113 | + | |
| 2114 | - | HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed) |
| 2114 | + | |
| 2115 | end | |
| 2116 | - | elseif WhichPose == "Prepare key" then |
| 2116 | + | |
| 2117 | - | for i=0, Time, 0.1 / Animation_Speed do |
| 2117 | + | |
| 2118 | Head.face.Texture = "rbxassetid://919905799" | |
| 2119 | - | if Gyro ~= nil and Gyro ~= false then |
| 2119 | + | |
| 2120 | - | Gyro.cframe = CF(RootPart.Position,Tors.Position) |
| 2120 | + | |
| 2121 | for _, c in pairs(Character:GetDescendants()) do | |
| 2122 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) |
| 2122 | + | |
| 2123 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) |
| 2123 | + | |
| 2124 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
| 2124 | + | |
| 2125 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
| 2125 | + | |
| 2126 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
| 2126 | + | |
| 2127 | - | RightHip.C0 = Clerp(RightHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2127 | + | |
| 2128 | end | |
| 2129 | - | elseif WhichPose == "Turn key" then |
| 2129 | + | |
| 2130 | - | for i=0, Time, 0.1 / Animation_Speed do |
| 2130 | + | |
| 2131 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
| 2132 | - | if Gyro ~= nil and Gyro ~= false then |
| 2132 | + | |
| 2133 | - | Gyro.cframe = CF(RootPart.Position,Tors.Position) |
| 2133 | + | |
| 2134 | local REGENVALUE = IT("BoolValue",c)
| |
| 2135 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) |
| 2135 | + | |
| 2136 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) |
| 2136 | + | |
| 2137 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
| 2137 | + | |
| 2138 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
| 2138 | + | |
| 2139 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
| 2139 | + | |
| 2140 | - | RightHip.C0 = Clerp(RightHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
| 2140 | + | |
| 2141 | else | |
| 2142 | local WELD = weldBetween(Torso,c) | |
| 2143 | - | PLAYMAINANIM = true |
| 2143 | + | |
| 2144 | end | |
| 2145 | - | --///////////////////////////////////////////////////// |
| 2145 | + | |
| 2146 | - | function Prison_Key() |
| 2146 | + | |
| 2147 | end | |
| 2148 | - | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
|
| 2148 | + | |
| 2149 | - | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
|
| 2149 | + | |
| 2150 | - | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
|
| 2150 | + | |
| 2151 | - | local GYRO = IT("BodyGyro",RootPart)
|
| 2151 | + | |
| 2152 | - | GYRO.D = 750 |
| 2152 | + | |
| 2153 | - | GYRO.P = 20000 |
| 2153 | + | |
| 2154 | - | GYRO.MaxTorque = VT(0,40000000,0) |
| 2154 | + | |
| 2155 | - | local grav = Instance.new("BodyPosition",TORSO)
|
| 2155 | + | |
| 2156 | - | grav.D = 15 |
| 2156 | + | |
| 2157 | - | grav.P = 20000 |
| 2157 | + | |
| 2158 | - | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
| 2158 | + | |
| 2159 | - | grav.position = TORSO.Position |
| 2159 | + | |
| 2160 | - | local GYRO2 = IT("BodyGyro",TORSO)
|
| 2160 | + | |
| 2161 | - | GYRO2.D = 750 |
| 2161 | + | |
| 2162 | - | GYRO2.P = 20000 |
| 2162 | + | |
| 2163 | - | GYRO2.MaxTorque = VT(0,40000000,0) |
| 2163 | + | |
| 2164 | - | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) |
| 2164 | + | |
| 2165 | - | grav.Name = "Jail" |
| 2165 | + | |
| 2166 | - | local LOCKPARTS = {}
|
| 2166 | + | |
| 2167 | - | ATTACK = true |
| 2167 | + | |
| 2168 | - | Rooted = false |
| 2168 | + | |
| 2169 | - | local LOCK = IT("Model",Effects)
|
| 2169 | + | |
| 2170 | - | LOCK.Name = "Lock" |
| 2170 | + | |
| 2171 | - | local LOCK2 = IT("Model",LOCK)
|
| 2171 | + | |
| 2172 | - | LOCK2.Name = "Metal" |
| 2172 | + | |
| 2173 | - | --CREATE LOCK-- |
| 2173 | + | |
| 2174 | - | local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1)) |
| 2174 | + | |
| 2175 | - | LOCK.PrimaryPart = BASE |
| 2175 | + | |
| 2176 | - | BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4) |
| 2176 | + | |
| 2177 | - | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3)) |
| 2177 | + | |
| 2178 | - | PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0)) |
| 2178 | + | |
| 2179 | - | MakeForm(PRT,"Cyl") |
| 2179 | + | |
| 2180 | - | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1)) |
| 2180 | + | |
| 2181 | - | PRT.Color = C3(0,0,0) |
| 2181 | + | |
| 2182 | - | PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0)) |
| 2182 | + | |
| 2183 | - | MakeForm(PRT,"Cyl") |
| 2183 | + | |
| 2184 | - | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1)) |
| 2184 | + | |
| 2185 | - | PRT.Color = C3(0,0,0) |
| 2185 | + | |
| 2186 | - | PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01) |
| 2186 | + | |
| 2187 | - | for i = 1, 45 do |
| 2187 | + | |
| 2188 | - | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) |
| 2188 | + | |
| 2189 | - | PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0) |
| 2189 | + | |
| 2190 | - | end |
| 2190 | + | |
| 2191 | - | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) |
| 2191 | + | |
| 2192 | - | PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0) |
| 2192 | + | --|| END OF SCRIPT |
| 2193 | - | LOCK2.PrimaryPart = PRT |
| 2193 | + | |
| 2194 | - | --------------- |
| 2194 | + | |
| 2195 | - | local CHILDREN = LOCK:GetDescendants() |
| 2195 | + | |
| 2196 | - | for index, CHILD in pairs(CHILDREN) do |
| 2196 | + | |
| 2197 | - | if CHILD:IsA("BasePart") then
|
| 2197 | + | |
| 2198 | - | CHILD.Transparency = 1 |
| 2198 | + | |
| 2199 | - | end |
| 2199 | + | |
| 2200 | - | end |
| 2200 | + | |
| 2201 | - | for i = 1, 75 do |
| 2201 | + | |
| 2202 | - | LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)) |
| 2202 | + | |
| 2203 | - | Swait() |
| 2203 | + | |
| 2204 | - | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) |
| 2204 | + | |
| 2205 | - | GYRO.cframe = CF(RootPart.Position,TORSO.Position) |
| 2205 | + | |
| 2206 | - | local CHILDREN = LOCK:GetDescendants() |
| 2206 | + | |
| 2207 | - | for index, CHILD in pairs(CHILDREN) do |
| 2207 | + | |
| 2208 | - | if CHILD:IsA("BasePart") then
|
| 2208 | + | |
| 2209 | - | CHILD.Transparency = CHILD.Transparency - 1/75 |
| 2209 | + | |
| 2210 | - | end |
| 2210 | + | |
| 2211 | - | end |
| 2211 | + | |
| 2212 | - | end |
| 2212 | + | |
| 2213 | - | HUM.DisplayDistanceType = "None" |
| 2213 | + | |
| 2214 | - | local KEY = IT("Model",Effects)
|
| 2214 | + | |
| 2215 | - | KEY.Name = "Key" |
| 2215 | + | |
| 2216 | - | --CREATE KEY-- |
| 2216 | + | |
| 2217 | - | local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Bright blue", "KeyBase", VT(0.1, 1, 0.1),false) |
| 2217 | + | |
| 2218 | - | KEY.PrimaryPart = KBASE |
| 2218 | + | |
| 2219 | - | KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0)) |
| 2219 | + | |
| 2220 | - | local WLD = weldBetween(LeftArm,KBASE) |
| 2220 | + | |
| 2221 | - | for i = 1, 45 do |
| 2221 | + | |
| 2222 | - | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Bright blue", "Key", VT(0.1, 0.1, 0.1),false) |
| 2222 | + | |
| 2223 | - | PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0) |
| 2223 | + | |
| 2224 | - | weldBetween(KBASE,PRT) |
| 2224 | + | |
| 2225 | ParticleEmitter2.Drag = 5 | |
| 2226 | - | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Bright blue", "Key", VT(0.3, 0.1, 0.1),false) |
| 2226 | + | |
| 2227 | - | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0) |
| 2227 | + | |
| 2228 | - | weldBetween(KBASE,PRT) |
| 2228 | + | |
| 2229 | - | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Bright blue", "Key", VT(0.3, 0.1, 0.1),false) |
| 2229 | + | |
| 2230 | - | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0) |
| 2230 | + | |
| 2231 | - | weldBetween(KBASE,PRT) |
| 2231 | + | |
| 2232 | - | -------------- |
| 2232 | + | |
| 2233 | - | Rooted = true |
| 2233 | + | |
| 2234 | - | Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
|
| 2234 | + | |
| 2235 | - | coroutine.resume(coroutine.create(function() |
| 2235 | + | |
| 2236 | - | for i = 1, 10 do |
| 2236 | + | |
| 2237 | - | Swait() |
| 2237 | + | |
| 2238 | - | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) |
| 2238 | + | |
| 2239 | - | GYRO.cframe = CF(RootPart.Position,TORSO.Position) |
| 2239 | + | |
| 2240 | - | end |
| 2240 | + | |
| 2241 | - | CreateSound(1149318312,BASE,5,1,false) |
| 2241 | + | |
| 2242 | - | CreateSound(160772554,BASE,3,1,false) |
| 2242 | + | |
| 2243 | - | LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)) |
| 2243 | + | |
| 2244 | - | for i = 1, 4 do |
| 2244 | + | |
| 2245 | - | WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Bright blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
|
| 2245 | + | |
| 2246 | - | end |
| 2246 | + | |
| 2247 | - | WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
|
| 2247 | + | |
| 2248 | - | wait(1) |
| 2248 | + | |
| 2249 | - | TORSO.Parent.Parent = LOCK |
| 2249 | + | |
| 2250 | - | for i = 1, 75 do |
| 2250 | + | |
| 2251 | - | Swait() |
| 2251 | + | TextLabel4.Text = "Shackluster" |
| 2252 | - | local CHILDREN = KEY:GetDescendants() |
| 2252 | + | |
| 2253 | - | for index, CHILD in pairs(CHILDREN) do |
| 2253 | + | |
| 2254 | - | if CHILD:IsA("BasePart") then
|
| 2254 | + | |
| 2255 | - | CHILD.Transparency = i/25 |
| 2255 | + | TextLabel4.TextSize = 14 |
| 2256 | - | end |
| 2256 | + | |
| 2257 | - | end |
| 2257 | + | |
| 2258 | - | local CHILDREN = LOCK:GetDescendants() |
| 2258 | + | |
| 2259 | - | for index, CHILD in pairs(CHILDREN) do |
| 2259 | + | |
| 2260 | - | if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
|
| 2260 | + | |
| 2261 | - | CHILD.Transparency = CHILD.Transparency + 1/75 |
| 2261 | + | |
| 2262 | - | elseif CHILD.ClassName == "Decal" then |
| 2262 | + | |
| 2263 | - | CHILD.Transparency = CHILD.Transparency + 1/75 |
| 2263 | + | |
| 2264 | - | elseif CHILD.ClassName == "Accessory" then |
| 2264 | + | |
| 2265 | - | CHILD:Destroy() |
| 2265 | + | |
| 2266 | - | end |
| 2266 | + | |
| 2267 | - | end |
| 2267 | + | |
| 2268 | - | for index, CHILD in pairs(CHILDREN) do |
| 2268 | + | |
| 2269 | - | if CHILD.ClassName == "Hat" then |
| 2269 | + | |
| 2270 | - | CHILD:Destroy() |
| 2270 | + | |
| 2271 | TextLabel5.Font = Enum.Font.Antique | |
| 2272 | - | end |
| 2272 | + | |
| 2273 | - | TORSO.Parent:ClearAllChildren() |
| 2273 | + | |
| 2274 | - | KEY:remove() |
| 2274 | + | |
| 2275 | - | LOCK:remove() |
| 2275 | + | |
| 2276 | TextLabel5.TextScaled = true | |
| 2277 | - | end)) |
| 2277 | + | |
| 2278 | - | Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
|
| 2278 | + | |
| 2279 | - | GYRO:remove() |
| 2279 | + | |
| 2280 | - | ATTACK = false |
| 2280 | + | |
| 2281 | - | Rooted = false |
| 2281 | + | |
| 2282 | - | end |
| 2282 | + | |
| 2283 | - | end |
| 2283 | + | |
| 2284 | ParticleEmitter6.Speed = NumberRange.new(3, 3) | |
| 2285 | ParticleEmitter6.Rotation = NumberRange.new(0, 360) | |
| 2286 | - | if Key == "n" then |
| 2286 | + | |
| 2287 | - | ShootBeam() |
| 2287 | + | |
| 2288 | - | end |
| 2288 | + | |
| 2289 | ParticleEmitter6.Texture = "rbxassetid://296874871" | |
| 2290 | ParticleEmitter6.Transparency = NumberSequence.new(0.47540986537933,0.2896174788475,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2291 | ParticleEmitter6.ZOffset = 1 | |
| 2292 | ParticleEmitter6.Size = NumberSequence.new(0,0,0.7103830575943,0.49180328845978,0) | |
| 2293 | ParticleEmitter6.Acceleration = Vector3.new(0, 3, 0) | |
| 2294 | ParticleEmitter6.Drag = 1 | |
| 2295 | ParticleEmitter6.EmissionDirection = Enum.NormalId.Bottom | |
| 2296 | ParticleEmitter6.Lifetime = NumberRange.new(2, 2) | |
| 2297 | ParticleEmitter6.LockedToPart = true | |
| 2298 | ParticleEmitter6.Rate = 300 | |
| 2299 | ParticleEmitter6.RotSpeed = NumberRange.new(-56, 56) | |
| 2300 | ParticleEmitter6.SpreadAngle = Vector2.new(45, 45) | |
| 2301 | ParticleEmitter6.VelocitySpread = 45 | |
| 2302 | LocalScript7.Name = "CamShake" | |
| 2303 | LocalScript7.Parent = LocalScript0 | |
| 2304 | table.insert(cors,sandbox(LocalScript7,function() | |
| 2305 | wait() | |
| 2306 | VT = Vector3.new | |
| 2307 | MRANDOM = math.random | |
| 2308 | local A = nil | |
| 2309 | local B = nil | |
| 2310 | local C = nil | |
| 2311 | local HUMANOID = script.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2312 | for _, c in pairs(script:GetChildren()) do | |
| 2313 | if c.Name == "Timer" then | |
| 2314 | A = c.Value | |
| 2315 | elseif c.Name == "Shake" then | |
| 2316 | B = c.Value*5 | |
| 2317 | elseif c.Name == "DoesFade" then | |
| 2318 | C = c.Value | |
| 2319 | end | |
| 2320 | end | |
| 2321 | local TIMER = A or 35 | |
| 2322 | local SHAKE = B or 5 | |
| 2323 | local FADE = C or true | |
| 2324 | if HUMANOID and game.Players:FindFirstChild(script.Parent.Name) then | |
| 2325 | if FADE == true then | |
| 2326 | local FADER = SHAKE/TIMER | |
| 2327 | for i = 1, TIMER do | |
| 2328 | wait() | |
| 2329 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10) | |
| 2330 | end | |
| 2331 | HUMANOID.CameraOffset = VT(0,0,0) | |
| 2332 | else | |
| 2333 | for i = 1, TIMER do | |
| 2334 | wait() | |
| 2335 | HUMANOID.CameraOffset = VT(MRANDOM(-SHAKE,SHAKE)/10,MRANDOM(-SHAKE,SHAKE)/10,MRANDOM(-SHAKE,SHAKE)/10) | |
| 2336 | end | |
| 2337 | HUMANOID.CameraOffset = VT(0,0,0) | |
| 2338 | end | |
| 2339 | end | |
| 2340 | script:remove() | |
| 2341 | end)) | |
| 2342 | LocalScript7.Disabled = true | |
| 2343 | NumberValue8.Name = "Timer" | |
| 2344 | NumberValue8.Parent = LocalScript7 | |
| 2345 | NumberValue8.Value = 35 | |
| 2346 | NumberValue9.Name = "Shake" | |
| 2347 | NumberValue9.Parent = LocalScript7 | |
| 2348 | NumberValue9.Value = 5 | |
| 2349 | BoolValue10.Name = "DoesFade" | |
| 2350 | BoolValue10.Parent = LocalScript7 | |
| 2351 | ParticleEmitter11.Name = "FireballFire2" | |
| 2352 | ParticleEmitter11.Parent = LocalScript0 | |
| 2353 | ParticleEmitter11.Rotation = NumberRange.new(0, 360) | |
| 2354 | ParticleEmitter11.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9)) | |
| 2355 | ParticleEmitter11.Enabled = false | |
| 2356 | ParticleEmitter11.LightEmission = 0.89999997615814 | |
| 2357 | ParticleEmitter11.Texture = "rbxassetid://296874871" | |
| 2358 | ParticleEmitter11.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2359 | ParticleEmitter11.ZOffset = 2 | |
| 2360 | ParticleEmitter11.Size = NumberSequence.new(5,5,1.8032789230347,0) | |
| 2361 | ParticleEmitter11.Drag = 1 | |
| 2362 | ParticleEmitter11.EmissionDirection = Enum.NormalId.Right | |
| 2363 | ParticleEmitter11.Lifetime = NumberRange.new(0, 1.5) | |
| 2364 | ParticleEmitter11.Rate = 9999 | |
| 2365 | ParticleEmitter11.RotSpeed = NumberRange.new(-56, 56) | |
| 2366 | ParticleEmitter11.SpreadAngle = Vector2.new(360, 360) | |
| 2367 | ParticleEmitter11.VelocitySpread = 360 | |
| 2368 | ParticleEmitter12.Name = "ExplosionFire2" | |
| 2369 | ParticleEmitter12.Parent = LocalScript0 | |
| 2370 | ParticleEmitter12.Speed = NumberRange.new(7, 270) | |
| 2371 | ParticleEmitter12.Rotation = NumberRange.new(0, 360) | |
| 2372 | ParticleEmitter12.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9)) | |
| 2373 | ParticleEmitter12.Enabled = false | |
| 2374 | ParticleEmitter12.LightEmission = 0.89999997615814 | |
| 2375 | ParticleEmitter12.Texture = "rbxassetid://296874871" | |
| 2376 | ParticleEmitter12.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2377 | ParticleEmitter12.ZOffset = 1 | |
| 2378 | ParticleEmitter12.Size = NumberSequence.new(0,0.98360657691956,1.530054807663,0) | |
| 2379 | ParticleEmitter12.Drag = 8 | |
| 2380 | ParticleEmitter12.EmissionDirection = Enum.NormalId.Right | |
| 2381 | ParticleEmitter12.Lifetime = NumberRange.new(2, 4) | |
| 2382 | ParticleEmitter12.Rate = 300 | |
| 2383 | ParticleEmitter12.RotSpeed = NumberRange.new(-56, 56) | |
| 2384 | ParticleEmitter12.SpreadAngle = Vector2.new(360, 360) | |
| 2385 | ParticleEmitter12.VelocitySpread = 360 | |
| 2386 | ParticleEmitter13.Name = "Field" | |
| 2387 | ParticleEmitter13.Parent = LocalScript0 | |
| 2388 | ParticleEmitter13.Speed = NumberRange.new(20, 50) | |
| 2389 | ParticleEmitter13.Rotation = NumberRange.new(0, 360) | |
| 2390 | ParticleEmitter13.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9)) | |
| 2391 | ParticleEmitter13.Enabled = false | |
| 2392 | ParticleEmitter13.LightEmission = 0.89999997615814 | |
| 2393 | ParticleEmitter13.Texture = "rbxassetid://296874871" | |
| 2394 | ParticleEmitter13.Transparency = NumberSequence.new(1,0.92349725961685,0.87978142499924,0.92349725961685,1) | |
| 2395 | ParticleEmitter13.ZOffset = 1 | |
| 2396 | ParticleEmitter13.Size = NumberSequence.new(0,10) | |
| 2397 | ParticleEmitter13.EmissionDirection = Enum.NormalId.Right | |
| 2398 | ParticleEmitter13.Lifetime = NumberRange.new(2, 4) | |
| 2399 | ParticleEmitter13.Rate = 999 | |
| 2400 | ParticleEmitter13.RotSpeed = NumberRange.new(-56, 56) | |
| 2401 | ParticleEmitter13.SpreadAngle = Vector2.new(360, 360) | |
| 2402 | ParticleEmitter13.VelocitySpread = 360 | |
| 2403 | ParticleEmitter14.Name = "BodyFire" | |
| 2404 | ParticleEmitter14.Parent = LocalScript0 | |
| 2405 | ParticleEmitter14.Speed = NumberRange.new(1, 1) | |
| 2406 | ParticleEmitter14.Rotation = NumberRange.new(0, 360) | |
| 2407 | ParticleEmitter14.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9)) | |
| 2408 | ParticleEmitter14.Enabled = false | |
| 2409 | ParticleEmitter14.LightEmission = 0.89999997615814 | |
| 2410 | ParticleEmitter14.Texture = "rbxassetid://296874871" | |
| 2411 | ParticleEmitter14.Transparency = NumberSequence.new(0,0.14207655191422,0.4426229596138,0.62841534614563,1) | |
| 2412 | ParticleEmitter14.ZOffset = 1 | |
| 2413 | ParticleEmitter14.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0) | |
| 2414 | ParticleEmitter14.Acceleration = Vector3.new(0, 3, 0) | |
| 2415 | ParticleEmitter14.Drag = 3 | |
| 2416 | ParticleEmitter14.EmissionDirection = Enum.NormalId.Right | |
| 2417 | ParticleEmitter14.Lifetime = NumberRange.new(1, 1) | |
| 2418 | ParticleEmitter14.Rate = 300 | |
| 2419 | ParticleEmitter14.RotSpeed = NumberRange.new(-56, 56) | |
| 2420 | ParticleEmitter14.SpreadAngle = Vector2.new(360, 360) | |
| 2421 | ParticleEmitter14.VelocitySpread = 360 | |
| 2422 | ParticleEmitter15.Name = "WingFire1" | |
| 2423 | ParticleEmitter15.Parent = LocalScript0 | |
| 2424 | ParticleEmitter15.Speed = NumberRange.new(8, 8) | |
| 2425 | ParticleEmitter15.Rotation = NumberRange.new(0, 360) | |
| 2426 | ParticleEmitter15.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9)) | |
| 2427 | ParticleEmitter15.Enabled = false | |
| 2428 | ParticleEmitter15.LightEmission = 0.89999997615814 | |
| 2429 | ParticleEmitter15.Texture = "rbxassetid://296874871" | |
| 2430 | ParticleEmitter15.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2431 | ParticleEmitter15.ZOffset = 1 | |
| 2432 | ParticleEmitter15.Size = NumberSequence.new(0,4.0437164306641,5.7377052307129,6.1748638153076) | |
| 2433 | ParticleEmitter15.Acceleration = Vector3.new(8, 5, -7) | |
| 2434 | ParticleEmitter15.EmissionDirection = Enum.NormalId.Back | |
| 2435 | ParticleEmitter15.Lifetime = NumberRange.new(2.5, 2.5) | |
| 2436 | ParticleEmitter15.LockedToPart = true | |
| 2437 | ParticleEmitter15.Rate = 300 | |
| 2438 | ParticleEmitter15.RotSpeed = NumberRange.new(-56, 56) | |
| 2439 | ParticleEmitter15.SpreadAngle = Vector2.new(15, 5) | |
| 2440 | ParticleEmitter15.VelocitySpread = 15 | |
| 2441 | ParticleEmitter16.Name = "WingFire2" | |
| 2442 | ParticleEmitter16.Parent = LocalScript0 | |
| 2443 | ParticleEmitter16.Speed = NumberRange.new(8, 8) | |
| 2444 | ParticleEmitter16.Rotation = NumberRange.new(0, 360) | |
| 2445 | ParticleEmitter16.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9)) | |
| 2446 | ParticleEmitter16.Enabled = false | |
| 2447 | ParticleEmitter16.LightEmission = 0.89999997615814 | |
| 2448 | ParticleEmitter16.Texture = "rbxassetid://296874871" | |
| 2449 | ParticleEmitter16.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2450 | ParticleEmitter16.ZOffset = 1 | |
| 2451 | ParticleEmitter16.Size = NumberSequence.new(0,4.0437164306641,5.7377052307129,6.1748638153076) | |
| 2452 | ParticleEmitter16.Acceleration = Vector3.new(-8, 5, -7) | |
| 2453 | ParticleEmitter16.EmissionDirection = Enum.NormalId.Back | |
| 2454 | ParticleEmitter16.Lifetime = NumberRange.new(2.5, 2.5) | |
| 2455 | ParticleEmitter16.LockedToPart = true | |
| 2456 | ParticleEmitter16.Rate = 300 | |
| 2457 | ParticleEmitter16.RotSpeed = NumberRange.new(-56, 56) | |
| 2458 | ParticleEmitter16.SpreadAngle = Vector2.new(15, 5) | |
| 2459 | ParticleEmitter16.VelocitySpread = 15 | |
| 2460 | ParticleEmitter17.Name = "ExplosionFire1" | |
| 2461 | ParticleEmitter17.Parent = LocalScript0 | |
| 2462 | ParticleEmitter17.Speed = NumberRange.new(7, 670) | |
| 2463 | ParticleEmitter17.Rotation = NumberRange.new(0, 360) | |
| 2464 | ParticleEmitter17.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9)) | |
| 2465 | ParticleEmitter17.Enabled = false | |
| 2466 | ParticleEmitter17.LightEmission = 0.89999997615814 | |
| 2467 | ParticleEmitter17.Texture = "rbxassetid://296874871" | |
| 2468 | ParticleEmitter17.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2469 | ParticleEmitter17.ZOffset = 1 | |
| 2470 | ParticleEmitter17.Size = NumberSequence.new(10,10,7.0491800308228,0) | |
| 2471 | ParticleEmitter17.Drag = 5 | |
| 2472 | ParticleEmitter17.EmissionDirection = Enum.NormalId.Right | |
| 2473 | ParticleEmitter17.Lifetime = NumberRange.new(2, 4) | |
| 2474 | ParticleEmitter17.Rate = 300 | |
| 2475 | ParticleEmitter17.RotSpeed = NumberRange.new(-56, 56) | |
| 2476 | ParticleEmitter17.SpreadAngle = Vector2.new(360, 360) | |
| 2477 | ParticleEmitter17.VelocitySpread = 360 | |
| 2478 | ParticleEmitter18.Name = "FireballFire1" | |
| 2479 | ParticleEmitter18.Parent = LocalScript0 | |
| 2480 | ParticleEmitter18.Rotation = NumberRange.new(0, 360) | |
| 2481 | ParticleEmitter18.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9)) | |
| 2482 | ParticleEmitter18.Enabled = false | |
| 2483 | ParticleEmitter18.LightEmission = 0.89999997615814 | |
| 2484 | ParticleEmitter18.Texture = "rbxassetid://296874871" | |
| 2485 | ParticleEmitter18.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2486 | ParticleEmitter18.ZOffset = 1 | |
| 2487 | ParticleEmitter18.Size = NumberSequence.new(10,10,7.0491800308228,0) | |
| 2488 | ParticleEmitter18.Drag = 1 | |
| 2489 | ParticleEmitter18.EmissionDirection = Enum.NormalId.Right | |
| 2490 | ParticleEmitter18.Lifetime = NumberRange.new(0, 1.5) | |
| 2491 | ParticleEmitter18.Rate = 9999 | |
| 2492 | ParticleEmitter18.RotSpeed = NumberRange.new(-56, 56) | |
| 2493 | ParticleEmitter18.SpreadAngle = Vector2.new(360, 360) | |
| 2494 | ParticleEmitter18.VelocitySpread = 360 | |
| 2495 | ParticleEmitter19.Name = "FireballFire3" | |
| 2496 | ParticleEmitter19.Parent = LocalScript0 | |
| 2497 | ParticleEmitter19.Rotation = NumberRange.new(0, 360) | |
| 2498 | ParticleEmitter19.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9)) | |
| 2499 | ParticleEmitter19.Enabled = false | |
| 2500 | ParticleEmitter19.LightEmission = 0.89999997615814 | |
| 2501 | ParticleEmitter19.Texture = "rbxassetid://296874871" | |
| 2502 | ParticleEmitter19.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2503 | ParticleEmitter19.ZOffset = 1 | |
| 2504 | ParticleEmitter19.Size = NumberSequence.new(2.7868854999542,4.4808745384216,4.5901637077332,0) | |
| 2505 | ParticleEmitter19.Drag = 1 | |
| 2506 | ParticleEmitter19.EmissionDirection = Enum.NormalId.Right | |
| 2507 | ParticleEmitter19.Lifetime = NumberRange.new(0, 1.5) | |
| 2508 | ParticleEmitter19.Rate = 9999 | |
| 2509 | ParticleEmitter19.RotSpeed = NumberRange.new(-56, 56) | |
| 2510 | ParticleEmitter19.SpreadAngle = Vector2.new(360, 360) | |
| 2511 | ParticleEmitter19.VelocitySpread = 360 | |
| 2512 | ParticleEmitter20.Name = "DebrisFire" | |
| 2513 | ParticleEmitter20.Parent = LocalScript0 | |
| 2514 | ParticleEmitter20.Speed = NumberRange.new(2, 2) | |
| 2515 | ParticleEmitter20.Rotation = NumberRange.new(0, 360) | |
| 2516 | ParticleEmitter20.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9)) | |
| 2517 | ParticleEmitter20.Enabled = false | |
| 2518 | ParticleEmitter20.LightEmission = 0.89999997615814 | |
| 2519 | ParticleEmitter20.Texture = "rbxassetid://296874871" | |
| 2520 | ParticleEmitter20.Transparency = NumberSequence.new(0,0.14207655191422,0.4426229596138,0.62841534614563,1) | |
| 2521 | ParticleEmitter20.ZOffset = 1 | |
| 2522 | ParticleEmitter20.Size = NumberSequence.new(2.677595615387,3.9890713691711,4.6448087692261,3.8251371383667,0) | |
| 2523 | ParticleEmitter20.Acceleration = Vector3.new(0, 25, 0) | |
| 2524 | ParticleEmitter20.Drag = 3 | |
| 2525 | ParticleEmitter20.EmissionDirection = Enum.NormalId.Right | |
| 2526 | ParticleEmitter20.Lifetime = NumberRange.new(0, 3) | |
| 2527 | ParticleEmitter20.Rate = 300 | |
| 2528 | ParticleEmitter20.RotSpeed = NumberRange.new(-56, 56) | |
| 2529 | ParticleEmitter20.SpreadAngle = Vector2.new(360, 360) | |
| 2530 | ParticleEmitter20.VelocitySpread = 360 | |
| 2531 | Part21.Name = "Pauldrons" | |
| 2532 | Part21.Parent = LocalScript0 | |
| 2533 | Part21.CFrame = CFrame.new(47.1000023, 30.5235691, 58.9999733, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
| 2534 | Part21.Orientation = Vector3.new(0, 180, 0) | |
| 2535 | Part21.Position = Vector3.new(47.1000023, 35.5235691, 58.9999733) | |
| 2536 | Part21.Rotation = Vector3.new(-180, 0, -180) | |
| 2537 | Part21.Transparency = 1 | |
| 2538 | Part21.Size = Vector3.new(1,1,1) | |
| 2539 | Part21.Anchored = true | |
| 2540 | Part21.BottomSurface = Enum.SurfaceType.Smooth | |
| 2541 | - | local RANGE = 50 |
| 2541 | + | |
| 2542 | Part21.Locked = true | |
| 2543 | Part21.TopSurface = Enum.SurfaceType.Smooth | |
| 2544 | Part21.FormFactor = Enum.FormFactor.Custom | |
| 2545 | Part21.formFactor = Enum.FormFactor.Custom | |
| 2546 | SpecialMesh22.Parent = Part21 | |
| 2547 | SpecialMesh22.MeshId = "http://www.roblox.com/asset/?id= " | |
| 2548 | SpecialMesh22.TextureId = "rbxassetid://" | |
| 2549 | SpecialMesh22.MeshType = Enum.MeshType.FileMesh | |
| 2550 | Folder23.Name = "Package" | |
| 2551 | Folder23.Parent = LocalScript0 | |
| 2552 | CharacterMesh24.Parent = Folder23 | |
| 2553 | CharacterMesh24.BodyPart = Enum.BodyPart.Torso | |
| 2554 | CharacterMesh24.MeshId = 27111894 | |
| 2555 | CharacterMesh25.Parent = Folder23 | |
| 2556 | CharacterMesh25.BodyPart = Enum.BodyPart.LeftLeg | |
| 2557 | CharacterMesh25.MeshId = 27111857 | |
| 2558 | CharacterMesh26.Parent = Folder23 | |
| 2559 | CharacterMesh26.BodyPart = Enum.BodyPart.RightLeg | |
| 2560 | CharacterMesh26.MeshId = 27111882 | |
| 2561 | CharacterMesh27.Name = "Superhero Left Arm" | |
| 2562 | CharacterMesh27.Parent = Folder23 | |
| 2563 | CharacterMesh27.BodyPart = Enum.BodyPart.LeftArm | |
| 2564 | CharacterMesh27.MeshId = 32328397 | |
| 2565 | CharacterMesh28.Name = "Superhero Right Arm" | |
| 2566 | CharacterMesh28.Parent = Folder23 | |
| 2567 | CharacterMesh28.BodyPart = Enum.BodyPart.RightArm | |
| 2568 | CharacterMesh28.MeshId = 32328563 | |
| 2569 | Part29.Name = "Flintlock" | |
| 2570 | Part29.Parent = LocalScript0 | |
| 2571 | Part29.CFrame = CFrame.new(-11.2999983, 4.42351913, 92.0999756, -1, 0, 0, 0, -1, 0, 0, 0, 1) | |
| 2572 | Part29.Orientation = Vector3.new(0, 0, 180) | |
| 2573 | Part29.Position = Vector3.new(-11.2999983, 4.42351913, 92.0999756) | |
| 2574 | Part29.Rotation = Vector3.new(0, 0, -180) | |
| 2575 | Part29.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 2576 | Part29.Size = Vector3.new(1, 2, 1) | |
| 2577 | Part29.Anchored = true | |
| 2578 | Part29.Transparency = 1 | |
| 2579 | Part29.BottomSurface = Enum.SurfaceType.Smooth | |
| 2580 | Part29.BrickColor = BrickColor.new("Black")
| |
| 2581 | Part29.CanCollide = false | |
| 2582 | Part29.Locked = true | |
| 2583 | Part29.TopSurface = Enum.SurfaceType.Smooth | |
| 2584 | Part29.brickColor = BrickColor.new("Black")
| |
| 2585 | Part29.FormFactor = Enum.FormFactor.Plate | |
| 2586 | Part29.formFactor = Enum.FormFactor.Plate | |
| 2587 | SpecialMesh30.Parent = Part29 | |
| 2588 | SpecialMesh30.MeshId = "http://www.roblox.com/asset/?id=92656610" | |
| 2589 | SpecialMesh30.Scale = Vector3.new(1.5, 1.5, 1.5) | |
| 2590 | SpecialMesh30.TextureId = "http://www.roblox.com/asset/?id=92658105" | |
| 2591 | SpecialMesh30.MeshType = Enum.MeshType.FileMesh | |
| 2592 | for i,v in pairs(mas:GetChildren()) do | |
| 2593 | v.Parent = workspace | |
| 2594 | pcall(function() v:MakeJoints() end) | |
| 2595 | end | |
| 2596 | mas:Destroy() | |
| 2597 | for i,v in pairs(cors) do | |
| 2598 | spawn(function() | |
| 2599 | pcall(v) | |
| 2600 | end) | |
| 2601 | end |