SHOW:
|
|
- or go back to the newest paste.
1 | - | --//====================================================\\-- |
1 | + | -- Created by Nebula_Zorua -- |
2 | - | --|| CREATED BY SHACKLUSTER Edit By NameClan |
2 | + | -- Banisher Infinite -- |
3 | - | --\\====================================================//-- |
3 | + | -- A fanmade banisher -- |
4 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
4 | + | -- Discord: Nebula the Zorua#6969 |
5 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
5 | + | -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA |
6 | ||
7 | - | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") |
7 | + | wait(1/60) |
8 | - | script.Parent = Player.Character |
8 | + | |
9 | --// Initializing \\-- | |
10 | - | function Debounces:GetProgressPercentage() |
10 | + | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) |
11 | - | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") |
11 | + | local Plrs = owner |
12 | - | if(self.CoolingDown and not self.Usable)then |
12 | + | local Plr = owner |
13 | - | return math.max( |
13 | + | local Char = Plr.Character |
14 | - | math.floor( |
14 | + | local Hum = Char:FindFirstChildOfClass'Humanoid' |
15 | local RArm = Char["Right Arm"] | |
16 | - | if Key == "z" and ATTACK == true then |
16 | + | local LArm = Char["Left Arm"] |
17 | - | Shot() |
17 | + | local RLeg = Char["Right Leg"] |
18 | local LLeg = Char["Left Leg"] | |
19 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
20 | - | if Key == "b" and ATTACK == true then |
20 | + | local Torso = Char.Torso |
21 | - | Kick() |
21 | + | local Head = Char.Head |
22 | local NeutralAnims = true | |
23 | local Attack = false | |
24 | - | if Key == "n" and ATTACK == true then |
24 | + | |
25 | - | Punch() |
25 | + | |
26 | local Debounces = {Debounces={}} | |
27 | local Mouse = Plr:GetMouse() | |
28 | - | if Key == "t" and ATTACK == true then |
28 | + | |
29 | - | Taunt() |
29 | + | |
30 | local Change = 1 | |
31 | local BanishedEvents = {} | |
32 | - | if Key == "c" and ATTACK == true then |
32 | + | |
33 | - | kiss() |
33 | + | |
34 | --// Effect Thread System \\-- | |
35 | ||
36 | - | if Key == "v" and ATTACK == true then |
36 | + | |
37 | - | Oblivion() |
37 | + | --// Debounce System \\-- |
38 | ||
39 | function Debounces:New(name,cooldown) | |
40 | - | if Key == "x" and ATTACK == true then |
40 | + | local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0} |
41 | - | Nuke() |
41 | + | setmetatable(aaaaa,{__index = Debounces}) |
42 | Debounces.Debounces[name] = aaaaa | |
43 | - | |
43 | + | return aaaaa |
44 | - | Mouse.Button1Down:connect(function(NEWKEY) |
44 | + | |
45 | - | MouseDown(NEWKEY) |
45 | + | |
46 | - | end) |
46 | + | function Debounces:Use(overrideUsable) |
47 | - | Mouse.Button1Up:connect(function(NEWKEY) |
47 | + | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") |
48 | - | MouseUp(NEWKEY) |
48 | + | if(self.Usable or overrideUsable)then |
49 | - | end) |
49 | + | self.Usable = false |
50 | - | Mouse.KeyDown:connect(function(NEWKEY) |
50 | + | self.CoolingDown = true |
51 | - | KeyDown(NEWKEY) |
51 | + | local LastUse = time() |
52 | - | end) |
52 | + | self.LastUse = LastUse |
53 | - | Mouse.KeyUp:connect(function(NEWKEY) |
53 | + | delay(self.Cooldown or 2,function() |
54 | - | KeyUp(NEWKEY) |
54 | + | if(self.LastUse == LastUse)then |
55 | - | end) |
55 | + | self.CoolingDown = false |
56 | self.Usable = true | |
57 | - | --//=================================\\ |
57 | + | |
58 | - | --\\=================================// |
58 | + | end) |
59 | - | script:ClearAllChildren() |
59 | + | |
60 | - | wait(0.2) |
60 | + | |
61 | ||
62 | - | local LIGHTHITSOUNDS = {"1177780949","1177781153","1177784554"} |
62 | + | function Debounces:Get(name) |
63 | - | local FireSound = "904051531" |
63 | + | assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name))) |
64 | - | local LAUGHS = {834001699,834001752,834001797,834001828} |
64 | + | for i,v in next, Debounces.Debounces do |
65 | - | Player = owner |
65 | + | if(i == name)then |
66 | - | PlayerGui = Player.PlayerGui |
66 | + | return v; |
67 | - | Cam = workspace.CurrentCamera |
67 | + | |
68 | - | Backpack = Player.Backpack |
68 | + | |
69 | - | Character = Player.Character |
69 | + | |
70 | - | Humanoid = Character.Humanoid |
70 | + | |
71 | - | RootPart = Character["HumanoidRootPart"] |
71 | + | function Debounces:GetProgressPercentage() |
72 | - | Torso = Character["Torso"] |
72 | + | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") |
73 | - | Head = Character["Head"] |
73 | + | if(self.CoolingDown and not self.Usable)then |
74 | - | RightArm = Character["Right Arm"] |
74 | + | return math.max( |
75 | - | LeftArm = Character["Left Arm"] |
75 | + | math.floor( |
76 | - | RightLeg = Character["Right Leg"] |
76 | + | ( |
77 | - | LeftLeg = Character["Left Leg"] |
77 | + | (time()-self.LastUse)/self.Cooldown or 2 |
78 | )*100 | |
79 | - | local Attack = true |
79 | + | ) |
80 | ) | |
81 | else | |
82 | return 100 | |
83 | end | |
84 | end | |
85 | ||
86 | --// Shortcut Variables \\-- | |
87 | - | local sick = Instance.new("Sound",Character) |
87 | + | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ} |
88 | - | q = Character:GetChildren() |
88 | + | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV} |
89 | - | for u = 1, #q do |
89 | + | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis} |
90 | - | if q[u].ClassName == "Accessory" then |
90 | + | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end} |
91 | - | q[u]:Destroy() |
91 | + | local R3 = {N=Region3.new} |
92 | - | elseif q[u].ClassName == "CharacterMesh" then |
92 | + | local De = S.Debris |
93 | - | q[u]:Destroy() |
93 | + | local WS = workspace |
94 | local Lght = S.Lighting | |
95 | local RepS = S.ReplicatedStorage | |
96 | - | Head.face:Destroy() |
96 | + | local IN = Instance.new |
97 | - | Head.Mesh:Destroy() |
97 | + | --// Instance Creation Functions \\-- |
98 | - | newmesh = Instance.new("SpecialMesh") |
98 | + | |
99 | - | newmesh.Scale = Vector3.new(1.1,1.1,1.1) |
99 | + | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) |
100 | - | newmesh.MeshId = "http://www.roblox.com/asset/?id=0" |
100 | + | local Sound = IN("Sound") |
101 | - | newmesh.TextureId = "http://www.roblox.com/asset/?id=0" |
101 | + | Sound.SoundId = "rbxassetid://".. tostring(id or 0) |
102 | - | newmesh.Parent = Head |
102 | + | Sound.Pitch = pitch or 1 |
103 | Sound.Volume = volume or 1 | |
104 | - | local function weldBetween(a, b) |
104 | + | Sound.Looped = looped or false |
105 | - | local weldd = Instance.new("ManualWeld") |
105 | + | if(autoPlay)then |
106 | - | weldd.Part0 = a |
106 | + | |
107 | - | weldd.Part1 = b |
107 | + | repeat wait() until Sound.IsLoaded |
108 | - | weldd.C0 = CFrame.new() |
108 | + | Sound.Playing = autoPlay or false |
109 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
109 | + | |
110 | - | weldd.Parent = a |
110 | + | |
111 | - | return weldd |
111 | + | if(not looped and effect)then |
112 | Sound.Stopped:connect(function() | |
113 | - | RootJoint = RootPart["RootJoint"] |
113 | + | Sound.Volume = 0 |
114 | - | Neck = Torso["Neck"] |
114 | + | Sound:destroy() |
115 | - | RightShoulder = Torso["Right Shoulder"] |
115 | + | end) |
116 | - | LeftShoulder = Torso["Left Shoulder"] |
116 | + | elseif(effect)then |
117 | - | RightHip = Torso["Right Hip"] |
117 | + | warn("Sound can't be looped and a sound effect!") |
118 | - | LeftHip = Torso["Left Hip"] |
118 | + | |
119 | - | local TIME = 0 |
119 | + | Sound.Parent =parent or Torso |
120 | - | local sick = Instance.new("Sound",Torso) |
120 | + | return Sound |
121 | end | |
122 | - | IT = Instance.new |
122 | + | function Part(parent,color,material,size,cframe,anchored,cancollide) |
123 | - | CF = CFrame.new |
123 | + | local part = IN("Part") |
124 | - | VT = Vector3.new |
124 | + | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) |
125 | - | RAD = math.rad |
125 | + | part.Material = material or Enum.Material.SmoothPlastic |
126 | - | C3 = Color3.new |
126 | + | part.TopSurface,part.BottomSurface=10,10 |
127 | - | UD2 = UDim2.new |
127 | + | part.Size = size or V3.N(1,1,1) |
128 | - | BRICKC = BrickColor.new |
128 | + | part.CFrame = cframe or CF.N(0,0,0) |
129 | - | ANGLES = CFrame.Angles |
129 | + | part.Anchored = anchored or true |
130 | - | EULER = CFrame.fromEulerAnglesXYZ |
130 | + | part.CanCollide = cancollide or false |
131 | - | COS = math.cos |
131 | + | part.Parent = parent or Char |
132 | - | ACOS = math.acos |
132 | + | return part |
133 | - | SIN = math.sin |
133 | + | |
134 | - | ASIN = math.asin |
134 | + | function Mesh(parent,meshtype,meshid,textid,scale,offset) |
135 | - | ABS = math.abs |
135 | + | local part = IN("SpecialMesh") |
136 | - | MRANDOM = math.random |
136 | + | part.MeshId = meshid or "" |
137 | - | FLOOR = math.floor |
137 | + | part.TextureId = textid or "" |
138 | part.Scale = scale or V3.N(1,1,1) | |
139 | part.Offset = offset or V3.N(0,0,0) | |
140 | - | it = Instance.new |
140 | + | part.MeshType = meshtype or Enum.MeshType.Sphere |
141 | part.Parent = parent | |
142 | - | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) |
142 | + | return part |
143 | - | local fp=it("Part") |
143 | + | |
144 | - | fp.formFactor=formfactor |
144 | + | |
145 | - | fp.Parent=parent |
145 | + | NewInstance = function(instance,parent,properties) |
146 | - | fp.Reflectance=reflectance |
146 | + | local inst = Instance.new(instance,parent) |
147 | - | fp.Transparency=transparency |
147 | + | if(properties)then |
148 | - | fp.CanCollide=false |
148 | + | for i,v in next, properties do |
149 | - | fp.Locked=true |
149 | + | pcall(function() inst[i] = v end) |
150 | - | fp.BrickColor=BrickColor.new(tostring(brickcolor)) |
150 | + | |
151 | - | fp.Name=name |
151 | + | |
152 | - | fp.Size=size |
152 | + | return inst; |
153 | - | fp.Position=Character.Torso.Position |
153 | + | |
154 | - | fp.Material=material |
154 | + | |
155 | - | fp:BreakJoints() |
155 | + | |
156 | - | return fp |
156 | + | |
157 | - | end |
157 | + | --// Extended ROBLOX tables \\-- |
158 | - | |
158 | + | local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance}) |
159 | - | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
159 | + | --// Customization \\-- |
160 | - | local mesh=it(Mesh) |
160 | + | |
161 | - | mesh.Parent=part |
161 | + | local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this |
162 | - | if Mesh=="SpecialMesh" then |
162 | + | local Remove_Hats = false |
163 | - | mesh.MeshType=meshtype |
163 | + | local Remove_Clothing = false |
164 | - | mesh.MeshId=meshid |
164 | + | local PlayerSize = 1 |
165 | - | end |
165 | + | local DamageColor = BrickColor.new'Really red' |
166 | - | mesh.Offset=offset |
166 | + | local MusicID = 1119237438 |
167 | - | mesh.Scale=scale |
167 | + | local ChatSounds = {["You will know pain."] = 907333294,["Submit now."] = 907330103,["I will show you true power."] = 907329532, ["Your death is assured."] = 907332670, ["My attacks will tear you apart!"] = 907329893, ["Most worrying indeed."] = 1395854043} |
168 | - | return mesh |
168 | + | local TauntDialogues = {"I'll cut you!", "I'll blast your head off!","Submit now.","Your death is assured.", "I will show you true power.", "You will know pain.","My attacks will tear you apart!"} |
169 | - | end |
169 | + | |
170 | - | |
170 | + | --// Weapon and GUI creation, and Character Customization \\-- |
171 | - | function weld(parent,part0,part1,c0,c1) |
171 | + | |
172 | - | local weld=it("Weld") |
172 | + | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end |
173 | - | weld.Parent=parent |
173 | + | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end |
174 | - | weld.Part0=part0 |
174 | + | local Effects = IN("Folder",Char) |
175 | - | weld.Part1=part1 |
175 | + | |
176 | - | weld.C0=c0 |
176 | + | |
177 | - | weld.C1=c1 |
177 | + | pcall(function() Char.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Really red' Char.ReaperShadowHead.Eye1.Material = 'Glass' end) |
178 | - | return weld |
178 | + | pcall(function() Char.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Really red' Char.ReaperShadowHead.Eye2.Material = 'Glass' end) |
179 | - | end |
179 | + | pcall(function() Char.LeftWing.BrickColor = BrickColor.new'Really red' Char.LeftWing.Transparency = 0.5 end) |
180 | ||
181 | - | q = "Really black" |
181 | + | New = function(Object, Parent, Name, Data) |
182 | - | Claw1=part(Enum.FormFactor.Custom,Character,Enum.Material.SmoothPlastic,0,0,q,"Claw",Vector3.new(0.400000006, 0.400000036, 0.400000006)) |
182 | + | local Object = Instance.new(Object) |
183 | - | Claw1weld=weld(Character,RightArm,Claw1,CFrame.new(0.25, -2.3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00980377197, -0.0303750038, 0.719708443, -5, 3.10001451e-005, 3.09999632e-005, 3.10008145e-005, 0, 0, 0, -4, -1)) |
183 | + | for Index, Value in pairs(Data or {}) do |
184 | - | mesh("SpecialMesh",Claw1,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=10681506",Vector3.new(0, 0, 0),Vector3.new(-1,-1.8,-1)) |
184 | + | Object[Index] = Value |
185 | - | Claw2=part(Enum.FormFactor.Custom,Character,Enum.Material.SmoothPlastic,0,0,q,"Claw",Vector3.new(0.400000006, 0.400000036, 0.400000006)) |
185 | + | |
186 | - | Claw2weld=weld(Character,LeftArm,Claw2,CFrame.new(-0.25, -2.3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00980377197, -0.0303750038, 0.719708443, 5, 3.10001451e-005, 3.09999632e-005, 3.10008145e-005, 0, 0, 0, -4, -1)) |
186 | + | Object.Parent = Parent |
187 | - | mesh("SpecialMesh",Claw2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=10681506",Vector3.new(0, 0, 0),Vector3.new(-1,-1.8,-1)) |
187 | + | Object.Name = Name |
188 | return Object | |
189 | - | --//=================================\\ |
189 | + | |
190 | - | --|| USEFUL VALUES |
190 | + | |
191 | - | --\\=================================// |
191 | + | Ulta_Caliber = New("Model",Char,"Ulta_Caliber",{}) |
192 | Handle = New("Part",Ulta_Caliber,"Handle",{Material = Enum.Material.Metal,Size = Vector3.new(1.13946342, 0.351685941, 0.328840196),CFrame = CFrame.new(-52.3439636, 4.31768751, -59.3824234, 0.5, -0.866025269, -1.57914513e-07, 0.866025269, 0.5, 3.60109915e-08, 4.7770822e-08, -1.5476347e-07, 1),CanCollide = false,}) | |
193 | - | Animation_Speed = 3 |
193 | + | WMesh =New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(1, 1, 0.855579317),}) |
194 | - | local FORCERESET = false |
194 | + | Part2 = New("Part",Ulta_Caliber,"Part2",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(1.87730086, 0.396701694, 0.328840196),CFrame = CFrame.new(-50.9256058, 4.80724812, -59.3824234, 0.99999994, -2.24410021e-21, -1.57914513e-07, 0, 0.99999994, 3.60109773e-08, 1.57914499e-07, -3.60109809e-08, 1),CanCollide = false,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
195 | - | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) |
195 | + | WMesh =New("BlockMesh",Part2,"Mesh",{Scale = Vector3.new(1, 1, 1.11225295),}) |
196 | - | local Speed = 16 |
196 | + | mot = New("Motor",Part2,"mot",{Part0 = Part2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, -6.12576133e-15, 1.57914513e-07, 1.18124174e-14, 1, -3.60109809e-08, -1.57914513e-07, 3.60109809e-08, 1),C1 = CFrame.new(1.13315201, -0.98355484, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
197 | - | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
197 | + | Blade = New("Part",Ulta_Caliber,"Blade",{BrickColor = BrickColor.new("Quill grey"),Material = Enum.Material.Ice,Size = Vector3.new(0.328840256, 0.328840226, 0.572665811),CFrame = CFrame.new(-50.9072571, 4.11668205, -59.3754196, -2.32669322e-07, -0.00661635399, 0.999977946, -1.28771217e-06, 0.999977946, 0.00661635399, -1, -1.28614465e-06, -2.41184125e-07),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.87451, 0.87451, 0.870588),}) |
198 | - | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
198 | + | WMesh =New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.0978527591, 0.790156424, 1),MeshType = Enum.MeshType.Wedge,}) |
199 | - | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
199 | + | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -2.32669336e-07, -1.28771228e-06, -1, -0.00661629438, 0.999978125, -1.28614465e-06, 0.999978125, 0.00661629438, -2.41184125e-07),C1 = CFrame.new(0.544277191, -1.34472656, 0.00700378418, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
200 | - | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) |
200 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.1684952, 4.40930319, -59.3824196, 0.70710665, -0.70710665, -1.57914471e-07, 0.70710665, 0.70710665, 3.60109986e-08, 8.61987672e-08, -1.37126023e-07, 1),CanCollide = false,}) |
201 | - | local DAMAGEMULTIPLIER = 1 |
201 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(0.385011137, 0.748631597, 0.855579317),}) |
202 | - | local ANIM = "Idle" |
202 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.707106829, 0.707106829, 8.61987814e-08, -0.707106829, 0.707106829, -1.37126037e-07, -1.57914471e-07, 3.60110022e-08, 1),C1 = CFrame.new(1.16707611, -1.83820343, 3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
203 | - | local ATTACK = false |
203 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-52.6288223, 3.82322454, -59.3824234, 5.96046377e-08, -0.999999881, -2.24250414e-08, 0.999999881, 5.96046519e-08, -5.41976775e-09, 5.41976064e-09, -2.2425013e-08, 1),CanCollide = false,}) |
204 | - | local EQUIPPED = false |
204 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(0.543293059, 0.924025238, 0.855579317),}) |
205 | - | local HOLD = false |
205 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.96046519e-08, 1, 5.41976819e-09, -1, 5.96046519e-08, -2.24250307e-08, -2.24250307e-08, -5.41976686e-09, 1),C1 = CFrame.new(-0.570646286, -0.000537872314, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
206 | - | local COMBO = 1 |
206 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-52.8299942, 3.82262015, -59.3813744, 1.57915409e-07, 5.96046306e-08, 0.999999881, 4.68513015e-08, 0.999999881, -5.96046448e-08, -1, 4.68513228e-08, 1.57915395e-07),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
207 | - | local COMBO2 = 1 |
207 | + | WMesh =New("SpecialMesh",WPart,"Mesh",{Scale = Vector3.new(0.861996353, 0.541153729, 0.299452811),MeshType = Enum.MeshType.Wedge,}) |
208 | - | local Rooted = false |
208 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.57915409e-07, 4.68513122e-08, -1, 5.96046519e-08, 1, 4.68513264e-08, 1, -5.9604659e-08, 1.57915409e-07),C1 = CFrame.new(-0.671756744, 0.173381805, 0.00104904175, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
209 | - | local SINE = 0 |
209 | + | WPart = New("Part",Ulta_Caliber,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.344652593, 0.328840226, 0.328840196),CFrame = CFrame.new(-51.1012497, 4.28257656, -59.3753929, 0.70710665, 0.70710665, -1.20777344e-07, -0.70710665, 0.70710665, 1.25668052e-07, 1.74263192e-07, -3.45828965e-09, 1),CanCollide = false,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
210 | - | local STAGGERHITANIM = false |
210 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(1, 0.98605454, 0.727242351),}) |
211 | - | local STAGGERANIM = false |
211 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.707106829, -0.707106829, 1.74263207e-07, 0.707106829, 0.707106829, -3.45827589e-09, -1.20777329e-07, 1.25668066e-07, 1),C1 = CFrame.new(0.590950012, -1.0937767, 0.00703048706, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
212 | - | local KEYHOLD = false |
212 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-51.7306976, 4.31373549, -59.3824272, 0.432455212, -0.901655316, 1.27368111e-07, 0.901655316, 0.432455212, -3.95984443e-07, 3.01960569e-07, 2.86087754e-07, 1),CanCollide = false,}) |
213 | - | local CHANGE = 2 / Animation_Speed |
213 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(0.541154027, 0.370038033, 0.855579317),}) |
214 | - | local WALKINGANIM = false |
214 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.432455301, 0.901655436, 3.01960569e-07, -0.901655436, 0.432455301, 2.86087754e-07, 1.27368125e-07, -3.959845e-07, 1),C1 = CFrame.new(0.303211212, -0.533081055, -3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
215 | - | local VALUE1 = false |
215 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-51.7885818, 4.20838785, -59.3824234, 0.587423027, -0.809279799, -2.19202548e-07, 0.809279799, 0.587423027, -1.98992353e-07, 2.89805143e-07, -6.05034742e-08, 1),CanCollide = false,}) |
216 | - | local NOWALK = false |
216 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(0.275924385, 0.370038033, 0.855579317),}) |
217 | - | local VALUE2 = false |
217 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.587423146, 0.809279919, 2.89805172e-07, -0.809279919, 0.587423146, -6.05035027e-08, -2.19202548e-07, -1.98992367e-07, 1),C1 = CFrame.new(0.183034897, -0.535625458, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
218 | - | local INTRO = false |
218 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-51.8400269, 4.15359306, -59.3824234, 0.760836244, -0.648943782, -2.6871362e-07, 0.648943782, 0.760836244, -1.52704587e-07, 3.035438e-07, -5.81968678e-08, 1),CanCollide = false,}) |
219 | - | local TRANSFORMED = false |
219 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(0.275924385, 0.370038033, 0.855579317),}) |
220 | - | local ROBLOXIDLEANIMATION = IT("Animation") |
220 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.760836303, 0.648943841, 3.035438e-07, -0.648943841, 0.760836303, -5.8196882e-08, -2.68713649e-07, -1.52704587e-07, 1),C1 = CFrame.new(0.109859467, -0.518470764, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
221 | - | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" |
221 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-51.9011612, 4.11773586, -59.3824234, 0.91851747, -0.395380199, -1.96948804e-08, 0.395380199, 0.91851747, -6.96443863e-07, 2.93450228e-07, 6.31909018e-07, 1),CanCollide = false,}) |
222 | - | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
222 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(0.275924385, 0.370038033, 0.855579317),}) |
223 | - | --ROBLOXIDLEANIMATION.Parent = Humanoid |
223 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.91851759, 0.395380259, 2.93450228e-07, -0.395380259, 0.91851759, 6.31909018e-07, -1.96948431e-08, -6.96443919e-07, 1),C1 = CFrame.new(0.0482387543, -0.483455658, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
224 | - | local WEAPONGUI = IT("ScreenGui", PlayerGui) |
224 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.356609762, 0.328840226, 0.328840196),CFrame = CFrame.new(-52.0863571, 4.12933016, -59.3824234, 0.991345346, 0.131278723, -5.39203029e-08, -0.131278723, 0.991345346, -9.33255933e-07, -6.90630628e-08, 9.32257819e-07, 1),CanCollide = false,}) |
225 | - | WEAPONGUI.Name = "BanishV3Gui" |
225 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(1, 0.370038033, 0.855579317),}) |
226 | - | local Weapon = IT("Model") |
226 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.991345525, -0.131278753, -6.90630415e-08, 0.131278753, 0.991345525, 9.32257819e-07, -5.392031e-08, -9.33256047e-07, 1),C1 = CFrame.new(-0.034318924, -0.317272186, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
227 | - | Weapon.Name = "Adds" |
227 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-52.1749916, 4.05356789, -59.3820763, 0.991345346, 0.131278723, -5.39203029e-08, -0.131278723, 0.991345346, -9.33255933e-07, -6.90630628e-08, 9.32257819e-07, 1),CanCollide = false,}) |
228 | - | local Effects = IT("Folder", Weapon) |
228 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(0.994611204, 0.301591754, 0.699436307),}) |
229 | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.991345525, -0.131278753, -6.90630415e-08, 0.131278753, 0.991345525, 9.32257819e-07, -5.392031e-08, -9.33256047e-07, 1),C1 = CFrame.new(-0.144248962, -0.278392792, 0.000347137451, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) | |
230 | - | local ANIMATOR = Humanoid.Animator |
230 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-52.0123367, 4.06675053, -59.3824272, 0.793815136, -0.608158827, -7.65793686e-08, 0.608158827, 0.793815136, -8.4843424e-07, 5.7677272e-07, 6.26927658e-07, 1),CanCollide = false,}) |
231 | - | local ANIMATE = Character:FindFirstChild("Animate") |
231 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(0.346509725, 0.370038033, 0.684463739),}) |
232 | - | local UNANCHOR = true |
232 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.793815255, 0.608158886, 5.7677272e-07, -0.608158886, 0.793815255, 6.26927715e-07, -7.65793615e-08, -8.48434354e-07, 1),C1 = CFrame.new(-0.0515041351, -0.412666321, -3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
233 | - | local TOBANISH = {} |
233 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.827166021, 0.351685941, 0.328840196),CFrame = CFrame.new(-52.1878128, 4.82334518, -59.3845367, 0.999954939, 0.00948500633, -7.15095894e-09, -0.00948500633, 0.999954939, 7.46392743e-08, 7.85854581e-09, -7.45681135e-08, 1),CanCollide = false,}) |
234 | - | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} |
234 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(1, 1, 0.573238373),}) |
235 | - | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} |
235 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999955058, -0.00948503613, 7.85857424e-09, 0.00948503613, 0.999955058, -7.45681064e-08, -7.1509394e-09, 7.46392885e-08, 1),C1 = CFrame.new(0.515987396, 0.117599487, -0.00211334229, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
236 | - | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} |
236 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.364346951, 0.350982577, 0.328840196),CFrame = CFrame.new(-52.3578377, 4.71502256, -59.3845367, -0.870376885, -0.492385834, 1.83688564e-06, 0.492385834, -0.870376885, 4.2302986e-07, 1.3904895e-06, 1.2726523e-06, 1),CanCollide = false,}) |
237 | - | local HITBLOCKSOUNDS = {"199148933", "199148947"} |
237 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(1, 1, 0.573238373),}) |
238 | - | script.Parent = PlayerGui |
238 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.870377064, 0.492385924, 1.3904895e-06, -0.492385924, -0.870377064, 1.2726523e-06, 1.83688599e-06, 4.2302986e-07, 1),C1 = CFrame.new(0.337165833, 0.210681915, -0.00211334229, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
239 | WPart = New("Part",Ulta_Caliber,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-51.2399673, 4.18922997, -59.3753929, 0.470120013, 0.882602334, -6.54556175e-07, -0.882602334, 0.470120013, -3.05826063e-07, 3.77971503e-08, 7.21487936e-07, 1),CanCollide = false,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
240 | - | --//=================================\\ |
240 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(0.789272487, 0.271646053, 0.727242351),}) |
241 | - | --\\=================================// |
241 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.470120043, -0.882602453, 3.77971396e-08, 0.882602453, 0.470120043, 7.21487936e-07, -6.54556288e-07, -3.0582612e-07, 1),C1 = CFrame.new(0.440750122, -1.02031708, 0.00703048706, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
242 | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(1.22879124, 0.618263781, 0.328840196),CFrame = CFrame.new(-50.7363968, 4.58814573, -59.3824234, 0.999999881, -2.98023224e-08, -1.57914513e-07, 2.98023224e-08, 0.999999881, 3.60109738e-08, 1.57914499e-07, -3.60109844e-08, 1),CanCollide = false,}) | |
243 | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(1, 1, 0.855579317),}) | |
244 | - | --//=================================\\ |
244 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, -6.12576133e-15, 1.57914513e-07, 1.18124174e-14, 1, -3.60109809e-08, -1.57914513e-07, 3.60109809e-08, 1),C1 = CFrame.new(1.03800774, -1.25696564, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
245 | - | --|| SAZERENOS' ARTIFICIAL HEARTBEAT |
245 | + | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.859521151, 0.531045794, 0.328840196),CFrame = CFrame.new(-51.7777481, 4.63175058, -59.3824234, 0.999999881, -2.98023224e-08, -1.57914513e-07, 2.98023224e-08, 0.999999881, 3.60109738e-08, 1.57914499e-07, -3.60109844e-08, 1),CanCollide = false,}) |
246 | - | --\\=================================// |
246 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(1, 1, 0.855579317),}) |
247 | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, -6.12576133e-15, 1.57914513e-07, 1.18124174e-14, 1, -3.60109809e-08, -1.57914513e-07, 3.60109809e-08, 1),C1 = CFrame.new(0.555093765, -0.333324432, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) | |
248 | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.414286286, 0.328840226, 0.328840196),CFrame = CFrame.new(-51.4174423, 4.47936392, -59.3824234, 0.5, 0.866025209, 2.92257027e-08, -0.866025209, 0.5, 1.03682424e-07, 7.51787468e-08, -7.7151455e-08, 1),CanCollide = false,}) | |
249 | - | Class_Name = "Beserker" |
249 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(1, 0.265229613, 0.855579317),}) |
250 | - | Weapon_Name = "Claws" |
250 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.50000006, -0.866025329, 7.51787468e-08, 0.866025329, 0.50000006, -7.7151455e-08, 2.92257365e-08, 1.03682439e-07, 1),C1 = CFrame.new(0.603277206, -0.721553802, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
251 | WPart = New("Part",Ulta_Caliber,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.527529478, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.0795135, 4.63236904, -59.3824196, -2.98023366e-08, -0.999999881, 3.74803335e-08, 0.999999881, -2.98023153e-08, -4.49242386e-08, 4.49242386e-08, 3.74803761e-08, 1),CanCollide = false,}) | |
252 | - | Custom_Colors = { |
252 | + | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(1, 0.263090521, 0.855579317),}) |
253 | - | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon. |
253 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.38707111e-16, 1, 4.49242421e-08, -1, -1.54506983e-15, 3.74803619e-08, 3.74803619e-08, -4.49242421e-08, 1),C1 = CFrame.new(1.40474701, -1.80373001, 3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
254 | - | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon. |
254 | + | WPart = New("Part",Ulta_Caliber,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(1.17252171, 0.576061606, 0.328840196),CFrame = CFrame.new(-50.7363968, 4.55438519, -59.3753891, 0.999999881, -2.98023224e-08, -1.57914513e-07, 2.98023224e-08, 0.999999881, 3.60109738e-08, 1.57914499e-07, -3.60109844e-08, 1),CanCollide = false,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
255 | WMesh =New("BlockMesh",WPart,"Mesh",{Scale = Vector3.new(1, 1, 0.727242351),}) | |
256 | - | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities. |
256 | + | mot = New("Motor",WPart,"mot",{Part0 = WPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, -6.12576133e-15, 1.57914513e-07, 1.18124174e-14, 1, -3.60109809e-08, -1.57914513e-07, 3.60109809e-08, 1),C1 = CFrame.new(1.00876999, -1.27384567, 0.00703430176, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
257 | - | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar. |
257 | + | Blade = New("Part",Ulta_Caliber,"Blade",{BrickColor = BrickColor.new("Quill grey"),Material = Enum.Material.Ice,Size = Vector3.new(0.328840256, 0.328840226, 0.605763316),CFrame = CFrame.new(-49.3369522, 4.12218142, -59.3754158, 1.84564726e-07, 0.00661724806, -0.999978065, 5.00432975e-07, -0.999978065, -0.00661724806, -1, -4.99200723e-07, -1.87872132e-07),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.87451, 0.87451, 0.870588),}) |
258 | - | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar. |
258 | + | WMesh =New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.0978527591, 0.779461861, 1),MeshType = Enum.MeshType.Wedge,}) |
259 | - | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar. |
259 | + | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.84564712e-07, 5.00432975e-07, -1, 0.00661721826, -0.999978185, -4.9920078e-07, -0.999978185, -0.00661721826, -1.8787216e-07),C1 = CFrame.new(1.33419228, -2.70190048, 0.00700759888, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
260 | - | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar. |
260 | + | Blade = New("Part",Ulta_Caliber,"Blade",{BrickColor = BrickColor.new("Quill grey"),Material = Enum.Material.Ice,Size = Vector3.new(0.328840256, 0.328840226, 0.835727096),CFrame = CFrame.new(-50.0582809, 4.11805487, -59.3754158, -2.32669322e-07, -0.00661635399, 0.999977946, -1.28771217e-06, 0.999977946, 0.00661635399, -1, -1.28614465e-06, -2.41184125e-07),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.87451, 0.87451, 0.870588),}) |
261 | WMesh =New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.0978527591, 0.790156424, 1),MeshType = Enum.MeshType.Wedge,}) | |
262 | - | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. |
262 | + | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -2.32669336e-07, -1.28771228e-06, -1, -0.00661629438, 0.999978125, -1.28614465e-06, 0.999978125, 0.00661629438, -2.41184125e-07),C1 = CFrame.new(0.969955444, -2.07927704, 0.00700759888, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
263 | - | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. |
263 | + | Blade = New("Part",Ulta_Caliber,"Blade",{BrickColor = BrickColor.new("Quill grey"),Material = Enum.Material.Ice,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-49.5309296, 4.30089998, -59.3754158, -5.15544457e-07, -0.00661677122, -0.999978065, 1.41483298e-07, 0.999978065, -0.00661677122, 1, -1.44891516e-07, -5.14597104e-07),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.87451, 0.87451, 0.870588),}) |
264 | - | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. |
264 | + | WMesh =New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.0978527591, 0.31531024, 0.65928185),MeshType = Enum.MeshType.Wedge,}) |
265 | - | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. |
265 | + | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -5.15544514e-07, 1.41483355e-07, 1, -0.00661674142, 0.999978185, -1.44891501e-07, -0.999978185, -0.00661674142, -5.14597104e-07),C1 = CFrame.new(1.39197922, -2.44455338, 0.00700759888, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
266 | - | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. |
266 | + | Blade2 = New("Part",Ulta_Caliber,"Blade2",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(0.328840256, 0.328840226, 1.44360781),CFrame = CFrame.new(-50.3589401, 4.14609241, -59.3749352, -1.8456474e-07, -0.00555405021, 0.999984503, 9.5615583e-08, -0.999984503, -0.00555405021, 1, 9.45890548e-08, 1.85092958e-07),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) |
267 | - | } |
267 | + | WMesh =New("BlockMesh",Blade2,"Mesh",{Scale = Vector3.new(0.0458685458, 0.541722536, 1),}) |
268 | mot = New("Motor",Blade2,"mot",{Part0 = Blade2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.8456474e-07, 9.56156043e-08, 1, -0.00555405021, -0.999984622, 9.45890548e-08, 0.999984622, -0.00555405021, 1.85092958e-07),C1 = CFrame.new(0.843906403, -1.80487823, 0.00748825073, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) | |
269 | - | Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar. |
269 | + | Blade = New("Part",Ulta_Caliber,"Blade",{BrickColor = BrickColor.new("Quill grey"),Material = Enum.Material.Ice,Size = Vector3.new(0.328840256, 0.328840226, 0.705641866),CFrame = CFrame.new(-50.2675247, 4.12026787, -59.3754196, 1.84564726e-07, 0.00661724806, -0.999978065, 5.00432975e-07, -0.999978065, -0.00661724806, -1, -4.99200723e-07, -1.87872132e-07),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.87451, 0.87451, 0.870588),}) |
270 | - | Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar. |
270 | + | WMesh =New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.0978527591, 0.779461861, 1),MeshType = Enum.MeshType.Wedge,}) |
271 | - | Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar. |
271 | + | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.84564712e-07, 5.00432975e-07, -1, 0.00661721826, -0.999978185, -4.9920078e-07, -0.999978185, -0.00661721826, -1.8787216e-07),C1 = CFrame.new(0.867248535, -1.8969574, 0.00700378418, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
272 | - | Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar. |
272 | + | Part3 = New("Part",Ulta_Caliber,"Part3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.2174072, 4.39788437, -59.3824196, -1.49011626e-07, -0.999999881, -1.98068761e-07, 0.999999881, -1.49011612e-07, -3.30714123e-08, 3.30713661e-08, -1.98068761e-07, 1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
273 | - | Ability_Background_Transparency = 0 --Transparency for the background of the abilities. |
273 | + | WMesh =New("BlockMesh",Part3,"Mesh",{Scale = Vector3.new(0.0855581015, 0.188227236, 1.12080872),}) |
274 | - | Stat_Background_Transparency = 0 --Transparency for the background of the stats. |
274 | + | mot = New("Motor",Part3,"mot",{Part0 = Part3,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.49011612e-07, 1, 3.30713732e-08, -1, -1.49011612e-07, -1.98068776e-07, -1.98068776e-07, -3.30714016e-08, 1),C1 = CFrame.new(1.13273048, -1.80155182, 3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
275 | Part2 = New("Part",Ulta_Caliber,"Part2",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.520495594, 0.328840226, 0.328840196),CFrame = CFrame.new(-51.9148941, 4.73376513, -59.3824234, 0.499999881, -0.866025329, -1.02213342e-07, 0.866025329, 0.499999881, 2.49974264e-09, 4.89418106e-08, -8.97692303e-08, 1),CanCollide = false,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
276 | - | Player_Size = 1 --Size of the player. |
276 | + | WMesh =New("BlockMesh",Part2,"Mesh",{Scale = Vector3.new(1, 0.575376868, 1.11225307),}) |
277 | - | Animation_Speed = 2 |
277 | + | mot = New("Motor",Part2,"mot",{Part0 = Part2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.5, 0.866025507, 4.89418248e-08, -0.866025507, 0.5, -8.97692303e-08, -1.02213335e-07, 2.49974352e-09, 1),C1 = CFrame.new(0.574869156, -0.163547516, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
278 | - | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) |
278 | + | Part2 = New("Part",Ulta_Caliber,"Part2",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.730803668, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.3537521, 4.49474096, -59.3824234, 0.999999881, -1.49011655e-07, -3.99031308e-07, 1.49011626e-07, 0.999999881, -1.96114058e-07, 3.99031364e-07, 1.9611403e-07, 1),CanCollide = false,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
279 | WMesh =New("BlockMesh",Part2,"Mesh",{Scale = Vector3.new(1, 0.701574802, 1.11225307),}) | |
280 | - | Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui. |
280 | + | mot = New("Motor",Part2,"mot",{Part0 = Part2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 1.49011598e-07, 3.99031393e-07, -1.49011683e-07, 1, 1.9611403e-07, -3.99031364e-07, -1.96114087e-07, 1),C1 = CFrame.new(1.14843941, -1.63504791, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
281 | - | Enable_Stats = false --Enables or disables stats. |
281 | + | Neon = New("Part",Ulta_Caliber,"Neon",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.368567139, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.4424782, 4.61851454, -59.3824234, -0.258819222, -0.965925694, -2.34842005e-07, 0.965925694, -0.258819222, -3.79127165e-08, -2.41607623e-08, -2.36652511e-07, 1),CanCollide = false,Color = Color3.new(1, 0, 0),}) |
282 | - | Put_Stats_In_Character = false --Places stats in Character. |
282 | + | WMesh =New("BlockMesh",Neon,"Mesh",{Scale = Vector3.new(1, 0.109086163, 1.12936485),}) |
283 | - | Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort. |
283 | + | mot = New("Motor",Neon,"mot",{Part0 = Neon,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.258819252, 0.965925813, -2.41607623e-08, -0.965925813, -0.258819252, -2.36652511e-07, -2.3484202e-07, -3.79127165e-08, 1),C1 = CFrame.new(1.21126747, -1.49632263, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
284 | - | Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort. |
284 | + | Part2 = New("Part",Ulta_Caliber,"Part2",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.365753591, 0.62600112, 0.328840196),CFrame = CFrame.new(-49.9626884, 4.69178581, -59.3826065, 7.68042241e-07, -0.00064355135, -0.999999762, -9.31381408e-08, -0.999999762, 0.00064355135, -1, 9.26439014e-08, -7.68102325e-07),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
285 | - | Enable_Stagger = false --Enables or disables staggering. |
285 | + | WMesh =New("SpecialMesh",Part2,"Mesh",{Scale = Vector3.new(1, 1, 0.168976992),MeshType = Enum.MeshType.Wedge,}) |
286 | - | Enable_Stun = false --Enables or disables the stun mechanic. |
286 | + | mot = New("Motor",Part2,"mot",{Part0 = Part2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 7.68042412e-07, -9.31381976e-08, -1, -0.00064358121, -0.999999881, 9.26438943e-08, -0.999999881, 0.000643581152, -7.68102325e-07),C1 = CFrame.new(1.51461601, -1.87519455, -0.000183105469, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
287 | - | Enable_Abilities = false --Enables abilites with cooldowns and mana costs. |
287 | + | Part3 = New("Part",Ulta_Caliber,"Part3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Metal,Size = Vector3.new(0.419210047, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.2704659, 4.60726166, -59.3824196, -0.258819252, -0.965925813, -2.34842005e-07, 0.965925813, -0.258819252, -3.7912713e-08, -2.41607623e-08, -2.36652539e-07, 1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
288 | - | Enable_Secondary_Bar = false --Enables the secondary mana bar, if true. |
288 | + | WMesh =New("BlockMesh",Part3,"Mesh",{Scale = Vector3.new(1, 0.188227236, 1.12080872),}) |
289 | mot = New("Motor",Part3,"mot",{Part0 = Part3,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.258819252, 0.965925813, -2.41607623e-08, -0.965925813, -0.258819252, -2.36652511e-07, -2.3484202e-07, -3.79127165e-08, 1),C1 = CFrame.new(1.28752899, -1.65091705, 3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) | |
290 | - | Start_Equipped = false --Starts the player equipped with their weapon. |
290 | + | Part2 = New("Part",Ulta_Caliber,"Part2",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.3136215, 4.95879316, -59.379261, 0.787994385, -0.615682065, 2.82908672e-07, 0.615682065, 0.787994385, -6.01714532e-07, 1.47534422e-07, 6.4832966e-07, 1),CanCollide = false,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
291 | - | Start_Equipped_With_Equipped_Animation = false --Used in conjunction with the above option. Starts your equip animation. |
291 | + | WMesh =New("BlockMesh",Part2,"Mesh",{Scale = Vector3.new(0.840607285, 0.938997805, 0.442120701),}) |
292 | - | Can_Equip_Or_Unequip = true --Enables or disables the ability to unequip or equip your weapon. |
292 | + | mot = New("Motor",Part2,"mot",{Part0 = Part2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.787994564, 0.615682125, 1.47534436e-07, -0.615682125, 0.787994564, 6.4832966e-07, 2.82908701e-07, -6.01714646e-07, 1),C1 = CFrame.new(1.57038498, -1.43777466, 0.00316238403, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
293 | - | Disable_Animator = true --Disables the Animator in the humanoid. |
293 | + | CylinderWMesh =New("Part",Ulta_Caliber,"CylinderMesh",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Elasticity = 0,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.378414333, 0.377710849, 0.328840196),CFrame = CFrame.new(-50.0357437, 4.80339193, -59.39114, 2.98023224e-08, -0.999999881, 1.57914499e-07, -0.999999881, -2.98023224e-08, -3.60109773e-08, 3.60109915e-08, -1.57914499e-07, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
294 | - | Disable_Animate = true --Disables the Animate script in the character. |
294 | + | WMesh =New("CylinderMesh",CylinderWMesh,"Mesh",{Scale = Vector3.new(1, 1, 0.876968741),}) |
295 | - | Disable_Moving_Arms = false --Keeps the arms from moving around. |
295 | + | mot = New("Motor",CylinderWMesh,"mot",{Part0 = CylinderWMesh,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.05101373e-15, -1, 3.6010988e-08, -1, -6.73767064e-15, -1.57914513e-07, 1.57914513e-07, -3.6010988e-08, -1),C1 = CFrame.new(1.57474327, -1.7561264, -0.00871658325, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
296 | - | Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms. |
296 | + | Barrel = New("Part",Ulta_Caliber,"Barrel",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Metal,Elasticity = 0,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.378414333, 0.377710849, 0.328840196),CFrame = CFrame.new(-50.0357437, 4.80443621, -59.3890343, 2.98023224e-08, -0.999999881, 1.57914499e-07, -0.999999881, -2.98023224e-08, -3.60109773e-08, 3.60109915e-08, -1.57914499e-07, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
297 | - | Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory. |
297 | + | WMesh =New("CylinderMesh",Barrel,"Mesh",{Scale = Vector3.new(1, 1.00999999, 0.79932487),}) |
298 | - | Disable_Jump = false --Disables jumping. |
298 | + | mot = New("Motor",Barrel,"mot",{Part0 = Barrel,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.05101373e-15, -1, 3.6010988e-08, -1, -6.73767064e-15, -1.57914513e-07, 1.57914513e-07, -3.6010988e-08, -1),C1 = CFrame.new(1.57564735, -1.75560379, -0.00661087036, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
299 | - | Use_HopperBin = true --Uses a hopperbin to do things. |
299 | + | Part3 = New("Part",Ulta_Caliber,"Part3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.5515137, 4.3936615, -59.3824234, -1.49011626e-07, -0.999999881, -1.98068761e-07, 0.999999881, -1.49011612e-07, -3.30714123e-08, 3.30713661e-08, -1.98068761e-07, 1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
300 | WMesh =New("BlockMesh",Part3,"Mesh",{Scale = Vector3.new(0.0855581015, 0.188227236, 1.12080872),}) | |
301 | - | Player_Size = 1 --Size of the player. |
301 | + | mot = New("Motor",Part3,"mot",{Part0 = Part3,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.49011612e-07, 1, 3.30713732e-08, -1, -1.49011612e-07, -1.98068776e-07, -1.98068776e-07, -3.30714016e-08, 1),C1 = CFrame.new(0.962020874, -1.51432037, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
302 | - | Animation_Speed = 2 |
302 | + | Part3 = New("Part",Ulta_Caliber,"Part3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Metal,Size = Vector3.new(0.419210047, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.1192398, 4.60677624, -59.3824196, -0.258819222, -0.965925694, -2.34842005e-07, 0.965925694, -0.258819222, -3.79127165e-08, -2.41607623e-08, -2.36652511e-07, 1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
303 | - | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) |
303 | + | WMesh =New("BlockMesh",Part3,"Mesh",{Scale = Vector3.new(1, 0.188227236, 1.12080872),}) |
304 | mot = New("Motor",Part3,"mot",{Part0 = Part3,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.258819252, 0.965925813, -2.41607623e-08, -0.965925813, -0.258819252, -2.36652511e-07, -2.3484202e-07, -3.79127165e-08, 1),C1 = CFrame.new(1.36272049, -1.78212357, 3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) | |
305 | - | Cooldown_1 = 0 --Cooldowns for abilites. |
305 | + | Part2 = New("Part",Ulta_Caliber,"Part2",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.497987658, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.6954193, 4.64329672, -59.3824234, 0.258819222, 0.965925694, -2.51750805e-07, -0.965925694, 0.258819222, -1.35819789e-07, -6.60338912e-08, 2.78325388e-07, 1),CanCollide = false,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
306 | - | Cooldown_2 = 0 |
306 | + | WMesh =New("BlockMesh",Part2,"Mesh",{Scale = Vector3.new(1, 0.562543094, 1.11225307),}) |
307 | - | Cooldown_3 = 0 |
307 | + | mot = New("Motor",Part2,"mot",{Part0 = Part2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.258819252, -0.965925813, -6.60338841e-08, 0.965925813, 0.258819252, 2.78325388e-07, -2.51750834e-07, -1.35819803e-07, 1),C1 = CFrame.new(1.10625839, -1.26487732, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
308 | - | Cooldown_4 = 0 |
308 | + | Neon = New("Part",Ulta_Caliber,"Neon",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.368567139, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.2807121, 4.61570024, -59.3824196, -0.258819252, -0.965925813, -2.34842005e-07, 0.965925813, -0.258819252, -3.7912713e-08, -2.41607623e-08, -2.36652539e-07, 1),CanCollide = false,Color = Color3.new(1, 0, 0),}) |
309 | - | Skill_1_Mana_Cost = 0 --How much mana is required to use the skill. |
309 | + | WMesh =New("BlockMesh",Neon,"Mesh",{Scale = Vector3.new(1, 0.109086163, 1.12936485),}) |
310 | - | Skill_2_Mana_Cost = 0 |
310 | + | mot = New("Motor",Neon,"mot",{Part0 = Neon,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.258819252, 0.965925813, -2.41607623e-08, -0.965925813, -0.258819252, -2.36652511e-07, -2.3484202e-07, -3.79127165e-08, 1),C1 = CFrame.new(1.28971481, -1.63782501, 3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
311 | - | Skill_3_Mana_Cost = 0 |
311 | + | Part3 = New("Part",Ulta_Caliber,"Part3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Metal,Size = Vector3.new(0.419210047, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.6045723, 4.60303879, -59.3824234, -0.258819282, -0.965925932, -2.34842005e-07, 0.965925932, -0.258819282, -3.79127094e-08, -2.41607623e-08, -2.36652568e-07, 1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
312 | - | Skill_4_Mana_Cost = 0 |
312 | + | WMesh =New("BlockMesh",Part3,"Mesh",{Scale = Vector3.new(1, 0.188227236, 1.12080872),}) |
313 | - | Max_Mana = 0 --Maximum amount of mana you can have. |
313 | + | mot = New("Motor",Part3,"mot",{Part0 = Part3,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.258819252, 0.965925813, -2.41607623e-08, -0.965925813, -0.258819252, -2.36652511e-07, -2.3484202e-07, -3.79127165e-08, 1),C1 = CFrame.new(1.11681747, -1.36368942, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
314 | - | Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have. |
314 | + | Part3 = New("Part",Ulta_Caliber,"Part3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.066185, 4.39740467, -59.3824196, -1.49011626e-07, -0.999999881, -1.98068761e-07, 0.999999881, -1.49011612e-07, -3.30714123e-08, 3.30713661e-08, -1.98068761e-07, 1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
315 | - | Mana_Name = "Mana" --Name for the mana bar. |
315 | + | WMesh =New("BlockMesh",Part3,"Mesh",{Scale = Vector3.new(0.0855581015, 0.188227236, 1.12080872),}) |
316 | - | Secondary_Mana_Name = "Block" --Name for the secondary mana bar. |
316 | + | mot = New("Motor",Part3,"mot",{Part0 = Part3,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.49011612e-07, 1, 3.30713732e-08, -1, -1.49011612e-07, -1.98068776e-07, -1.98068776e-07, -3.30714016e-08, 1),C1 = CFrame.new(1.2079258, -1.93275452, 3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
317 | - | Max_Stun = 1 --Maximum amount of stun you can have. |
317 | + | Part3 = New("Part",Ulta_Caliber,"Part3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Metal,Size = Vector3.new(0.419210047, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.4315338, 4.60514545, -59.3824234, -0.258819222, -0.965925694, -2.34842005e-07, 0.965925694, -0.258819222, -3.79127165e-08, -2.41607623e-08, -2.36652511e-07, 1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
318 | - | Recover_Mana = 0 --How much mana you gain. |
318 | + | WMesh =New("BlockMesh",Part3,"Mesh",{Scale = Vector3.new(1, 0.188227236, 1.12080872),}) |
319 | - | Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another. |
319 | + | mot = New("Motor",Part3,"mot",{Part0 = Part3,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.258819252, 0.965925813, -2.41607623e-08, -0.965925813, -0.258819252, -2.36652511e-07, -2.3484202e-07, -3.79127165e-08, 1),C1 = CFrame.new(1.20516205, -1.5124855, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
320 | - | Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another. |
320 | + | Part2 = New("Part",Ulta_Caliber,"Part2",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-51.9104652, 4.60788345, -59.3824272, -0.588878095, -0.808221817, 1.09032158e-06, 0.808221817, -0.588878095, 8.42210341e-07, -3.86262684e-08, 1.37718132e-06, 1),CanCollide = false,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
321 | - | Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another. |
321 | + | WMesh =New("BlockMesh",Part2,"Mesh",{Scale = Vector3.new(0.534737229, 0.787132502, 1.11225307),}) |
322 | - | Recover_Secondary_Mana = 0 --How much secondary mana you gain. |
322 | + | mot = New("Motor",Part2,"mot",{Part0 = Part2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.588878155, 0.808221936, -3.8626272e-08, -0.808221936, -0.588878155, 1.37718132e-06, 1.0903218e-06, 8.42210511e-07, 1),C1 = CFrame.new(0.468067169, -0.230323792, -3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
323 | - | Lose_Stun = 0 --How much stun you lose. |
323 | + | Part3 = New("Part",Ulta_Caliber,"Part3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Metal,Size = Vector3.new(0.328840256, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.3784828, 4.39577246, -59.3824234, -1.49011626e-07, -0.999999881, -1.98068761e-07, 0.999999881, -1.49011612e-07, -3.30714123e-08, 3.30713661e-08, -1.98068761e-07, 1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
324 | - | Stun_Wait = 0 --Delay between losing stun. |
324 | + | WMesh =New("BlockMesh",Part3,"Mesh",{Scale = Vector3.new(0.0855581015, 0.188227236, 1.12080872),}) |
325 | - | Mana_Wait = 0 --Delay between gaining mana. |
325 | + | mot = New("Motor",Part3,"mot",{Part0 = Part3,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.49011612e-07, 1, 3.30713732e-08, -1, -1.49011612e-07, -1.98068776e-07, -1.98068776e-07, -3.30714016e-08, 1),C1 = CFrame.new(1.05036354, -1.66311264, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
326 | - | Secondary_Mana_Wait = 0 --Delay between gaining secondary mana. |
326 | + | Neon = New("Part",Ulta_Caliber,"Neon",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.368567139, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.1280746, 4.61569977, -59.3824196, -0.258819222, -0.965925694, -2.34842005e-07, 0.965925694, -0.258819222, -3.79127165e-08, -2.41607623e-08, -2.36652511e-07, 1),CanCollide = false,Color = Color3.new(1, 0, 0),}) |
327 | - | Menu_Update_Speed = 0 --How fast the Weapon Gui will update. |
327 | + | WMesh =New("BlockMesh",Neon,"Mesh",{Scale = Vector3.new(1, 0.109086163, 1.12936485),}) |
328 | - | Constant_Update = false --Removes the delay between updating the Weapon GUI. |
328 | + | mot = New("Motor",Neon,"mot",{Part0 = Neon,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.258819252, 0.965925813, -2.41607623e-08, -0.965925813, -0.258819252, -2.36652511e-07, -2.3484202e-07, -3.79127165e-08, 1),C1 = CFrame.new(1.36603165, -1.7700119, 3.81469727e-06, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) |
329 | - | Show_Stats = false --Hides or shows stats. |
329 | + | Neon = New("Part",Ulta_Caliber,"Neon",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.368567139, 0.328840226, 0.328840196),CFrame = CFrame.new(-50.6162033, 4.61738539, -59.3824234, -0.258819222, -0.965925694, -2.34842005e-07, 0.965925694, -0.258819222, -3.79127165e-08, -2.41607623e-08, -2.36652511e-07, 1),CanCollide = false,Color = Color3.new(1, 0, 0),}) |
330 | - | Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78} |
330 | + | WMesh =New("BlockMesh",Neon,"Mesh",{Scale = Vector3.new(1, 0.109086163, 1.12936485),}) |
331 | mot = New("Motor",Neon,"mot",{Part0 = Neon,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.258819252, 0.965925813, -2.41607623e-08, -0.965925813, -0.258819252, -2.36652511e-07, -2.3484202e-07, -3.79127165e-08, 1),C1 = CFrame.new(1.12342644, -1.34643555, 0, 0.50000006, 0.866025329, 4.77708291e-08, -0.866025329, 0.50000006, -1.5476347e-07, -1.57914513e-07, 3.60109951e-08, 1),}) | |
332 | - | ArtificialHB = Instance.new("BindableEvent", script) |
332 | + | |
333 | - | ArtificialHB.Name = "ArtificialHB" |
333 | + | |
334 | if(PlayerSize ~= 1)then | |
335 | - | script:WaitForChild("ArtificialHB") |
335 | + | for _,v in next, Char:GetDescendats() do |
336 | if(v:IsA'BasePart')then | |
337 | - | frame = Frame_Speed |
337 | + | v.Size = v.Size * PlayerSize |
338 | - | tf = 0 |
338 | + | |
339 | - | allowframeloss = false |
339 | + | |
340 | - | tossremainder = false |
340 | + | |
341 | - | lastframe = tick() |
341 | + | |
342 | - | script.ArtificialHB:Fire() |
342 | + | for _,v in next, Ulta_Caliber:GetDescendants() do |
343 | if(v:IsA'BasePart')then | |
344 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
345 | end | |
346 | end | |
347 | local Music = Sound(Char,MusicID,1,3,true,false,true) | |
348 | - | script.ArtificialHB:Fire() |
348 | + | Music.Name = 'Music' |
349 | ||
350 | --// Stop animations \\-- | |
351 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
352 | - | script.ArtificialHB:Fire() |
352 | + | v:Stop(); |
353 | end | |
354 | - | lastframe = tick() |
354 | + | |
355 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
356 | pcall(game.Destroy,Hum:FindFirstChild'Animator') | |
357 | ||
358 | --// Joints \\-- | |
359 | ||
360 | local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)}) | |
361 | local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)}) | |
362 | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)}) | |
363 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
364 | - | --//=================================\\ |
364 | + | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) |
365 | - | --\\=================================// |
365 | + | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso}) |
366 | local HW = NewInstance('Weld',Char,{Part0=RArm,Part1=Handle,C0 = CF.N(0,-.5,-.4)* CF.A(M.R(0),M.R(90),M.R(-30))}) | |
367 | - | --//=================================\\ |
367 | + | local LSC0 = LS.C0 |
368 | - | --|| SOME FUNCTIONS |
368 | + | local RSC0 = RS.C0 |
369 | - | --\\=================================// |
369 | + | local NKC0 = NK.C0 |
370 | local LHC0 = LH.C0 | |
371 | - | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) |
371 | + | local RHC0 = RH.C0 |
372 | - | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
372 | + | local RJC0 = RJ.C0 |
373 | ||
374 | --// Artificial HB \\-- | |
375 | - | function PositiveAngle(NUMBER) |
375 | + | |
376 | - | if NUMBER >= 0 then |
376 | + | local ArtificialHB = IN("BindableEvent", script) |
377 | - | NUMBER = 0 |
377 | + | ArtificialHB.Name = "Heartbeat" |
378 | ||
379 | - | return NUMBER |
379 | + | script:WaitForChild("Heartbeat") |
380 | ||
381 | local tf = 0 | |
382 | - | function NegativeAngle(NUMBER) |
382 | + | local allowframeloss = false |
383 | - | if NUMBER <= 0 then |
383 | + | local tossremainder = false |
384 | - | NUMBER = 0 |
384 | + | local lastframe = tick() |
385 | local frame = 1/Frame_Speed | |
386 | - | return NUMBER |
386 | + | ArtificialHB:Fire() |
387 | ||
388 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
389 | - | function Swait(NUMBER) |
389 | + | |
390 | - | if NUMBER == 0 or NUMBER == nil then |
390 | + | |
391 | if allowframeloss then | |
392 | script.Heartbeat:Fire() | |
393 | - | for i = 1, NUMBER do |
393 | + | |
394 | else | |
395 | for i = 1, math.floor(tf / frame) do | |
396 | ArtificialHB:Fire() | |
397 | end | |
398 | lastframe = tick() | |
399 | - | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) |
399 | + | |
400 | - | local NEWMESH = IT(MESH) |
400 | + | |
401 | - | if MESH == "SpecialMesh" then |
401 | + | |
402 | - | NEWMESH.MeshType = MESHTYPE |
402 | + | |
403 | - | if MESHID ~= "nil" and MESHID ~= "" then |
403 | + | |
404 | - | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
404 | + | |
405 | end | |
406 | - | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
406 | + | |
407 | - | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
407 | + | |
408 | function swait(num) | |
409 | if num == 0 or num == nil then | |
410 | - | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
410 | + | |
411 | - | NEWMESH.Scale = SCALE |
411 | + | |
412 | - | NEWMESH.Parent = PARENT |
412 | + | for i = 0, num do |
413 | - | return NEWMESH |
413 | + | |
414 | end | |
415 | end | |
416 | - | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) |
416 | + | |
417 | - | local NEWPART = IT("Part") |
417 | + | |
418 | - | NEWPART.formFactor = FORMFACTOR |
418 | + | --// Effect Function(s) \\-- |
419 | - | NEWPART.Reflectance = REFLECTANCE |
419 | + | |
420 | - | NEWPART.Transparency = TRANSPARENCY |
420 | + | function Tween(obj,props,time,easing,direction,repeats,backwards) |
421 | - | NEWPART.CanCollide = false |
421 | + | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) |
422 | - | NEWPART.Locked = true |
422 | + | local tween = S.TweenService:Create(obj, info, props) |
423 | - | NEWPART.Anchored = true |
423 | + | |
424 | - | if ANCHOR == false then |
424 | + | tween:Play() |
425 | - | NEWPART.Anchored = false |
425 | + | |
426 | ||
427 | - | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
427 | + | function OnceWas(who,dontRemove) |
428 | - | NEWPART.Name = NAME |
428 | + | coroutine.wrap(function() |
429 | - | NEWPART.Size = SIZE |
429 | + | local c = who:children() |
430 | - | NEWPART.Position = Torso.Position |
430 | + | if(not dontRemove)then who:destroy() end |
431 | - | NEWPART.Material = MATERIAL |
431 | + | for _,v in next, c do |
432 | - | NEWPART:BreakJoints() |
432 | + | if(v:IsA'BasePart' and v.Transparency < 0.9)then |
433 | - | NEWPART.Parent = PARENT |
433 | + | local Prt = v:Clone() |
434 | - | return NEWPART |
434 | + | Prt.Parent = Effects |
435 | Prt.BrickColor = BrickColor.new'Crimson' | |
436 | Prt.Material = Enum.Material.Glass | |
437 | - | local function weldBetween(a, b) |
437 | + | Prt.CanCollide = false |
438 | - | local weldd = Instance.new("ManualWeld") |
438 | + | Prt.Anchored = true |
439 | - | weldd.Part0 = a |
439 | + | Prt:breakJoints() |
440 | - | weldd.Part1 = b |
440 | + | |
441 | - | weldd.C0 = CFrame.new() |
441 | + | |
442 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
442 | + | local part = Effect{ |
443 | - | weldd.Parent = a |
443 | + | Manual=Prt, |
444 | - | return weldd |
444 | + | Effect='Fade', |
445 | Frames = 90, | |
446 | } | |
447 | end | |
448 | - | function QuaternionFromCFrame(cf) |
448 | + | |
449 | - | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
449 | + | end)() |
450 | - | local trace = m00 + m11 + m22 |
450 | + | |
451 | - | if trace > 0 then |
451 | + | |
452 | - | local s = math.sqrt(1 + trace) |
452 | + | function Bezier(startpos, pos2, pos3, endpos, t) |
453 | - | local recip = 0.5 / s |
453 | + | local A = startpos:lerp(pos2, t) |
454 | - | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
454 | + | local B = pos2:lerp(pos3, t) |
455 | local C = pos3:lerp(endpos, t) | |
456 | - | local i = 0 |
456 | + | local lerp1 = A:lerp(B, t) |
457 | - | if m11 > m00 then |
457 | + | local lerp2 = B:lerp(C, t) |
458 | - | i = 1 |
458 | + | local cubic = lerp1:lerp(lerp2, t) |
459 | return cubic | |
460 | - | if m22 > (i == 0 and m00 or m11) then |
460 | + | |
461 | - | i = 2 |
461 | + | |
462 | function Effect(data) | |
463 | - | if i == 0 then |
463 | + | local FX = data.Effect or 'ResizeAndFade' |
464 | - | local s = math.sqrt(m00 - m11 - m22 + 1) |
464 | + | local Parent = data.Parent or Effects |
465 | - | local recip = 0.5 / s |
465 | + | local Color = data.Color or C3.N(0,0,0) |
466 | - | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
466 | + | local Size = data.Size or V3.N(1,1,1) |
467 | - | elseif i == 1 then |
467 | + | local MoveDir = data.MoveDirection or nil |
468 | - | local s = math.sqrt(m11 - m22 - m00 + 1) |
468 | + | local MeshData = data.Mesh or nil |
469 | - | local recip = 0.5 / s |
469 | + | local SndData = data.Sound or nil |
470 | - | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
470 | + | local Frames = data.Frames or 45 |
471 | - | elseif i == 2 then |
471 | + | local Manual = data.Manual or nil |
472 | - | local s = math.sqrt(m22 - m00 - m11 + 1) |
472 | + | local Material = data.Material or nil |
473 | - | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
473 | + | local CFra = data.CFrame or Torso.CFrame |
474 | local Settings = data.FXSettings or {} | |
475 | local Snd,Prt,Msh; | |
476 | local Shape = data.Shape or Enum.PartType.Block | |
477 | - | |
477 | + | |
478 | - | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
478 | + | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then |
479 | - | local xs, ys, zs = x + x, y + y, z + z |
479 | + | Prt = Manual |
480 | - | local wx, wy, wz = w * xs, w * ys, w * zs |
480 | + | |
481 | - | local xx = x * xs |
481 | + | Prt = Part(Parent,Color,Material,Size,CFra,true,false) |
482 | - | local xy = x * ys |
482 | + | Prt.Shape = Shape |
483 | - | local xz = x * zs |
483 | + | |
484 | - | local yy = y * ys |
484 | + | if(typeof(MeshData) == 'table')then |
485 | - | local yz = y * zs |
485 | + | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) |
486 | - | local zz = z * zs |
486 | + | elseif(typeof(MeshData) == 'Instance')then |
487 | - | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) |
487 | + | Msh = MeshData:Clone() |
488 | Msh.Parent = Prt | |
489 | - | |
489 | + | elseif(Shape == Enum.PartType.Block)then |
490 | - | function QuaternionSlerp(a, b, t) |
490 | + | Msh = Mesh(Prt,Enum.MeshType.Brick) |
491 | - | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
491 | + | |
492 | - | local startInterp, finishInterp; |
492 | + | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then |
493 | - | if cosTheta >= 0.0001 then |
493 | + | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) |
494 | - | if (1 - cosTheta) > 0.0001 then |
494 | + | |
495 | - | local theta = ACOS(cosTheta) |
495 | + | if(Snd)then |
496 | - | local invSinTheta = 1 / SIN(theta) |
496 | + | repeat wait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 |
497 | - | startInterp = SIN((1 - t) * theta) * invSinTheta |
497 | + | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch |
498 | - | finishInterp = SIN(t * theta) * invSinTheta |
498 | + | |
499 | local MoveSpeed = nil; | |
500 | - | startInterp = 1 - t |
500 | + | if(MoveDir)then |
501 | - | finishInterp = t |
501 | + | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames |
502 | end | |
503 | local Inc = M.RNG()-M.RNG() | |
504 | - | if (1 + cosTheta) > 0.0001 then |
504 | + | local Thingie = 0 |
505 | - | local theta = ACOS(-cosTheta) |
505 | + | local Thingie2 = M.RNG(50,100)/100 |
506 | - | local invSinTheta = 1 / SIN(theta) |
506 | + | if(FX ~= 'Arc')then |
507 | - | startInterp = SIN((t - 1) * theta) * invSinTheta |
507 | + | for i = 1, Frames do |
508 | - | finishInterp = SIN(t * theta) * invSinTheta |
508 | + | if(swait and typeof(swait) == 'function')then |
509 | swait() | |
510 | - | startInterp = t - 1 |
510 | + | |
511 | - | finishInterp = t |
511 | + | |
512 | end | |
513 | if(FX == 'ResizeAndFade')then | |
514 | - | 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 |
514 | + | if(not Settings.EndSize)then |
515 | Settings.EndSize = V3.N(0,0,0) | |
516 | end | |
517 | - | function Clerp(a, b, t) |
517 | + | local grow = (typeof(Settings.EndSize) == 'Vector3' and Settings.EndSize+Size or typeof(Settings.EndSize) == 'number' and V3.N(Settings.EndSize)) |
518 | - | local qa = {QuaternionFromCFrame(a)} |
518 | + | if(Settings.EndIsIncrement)then |
519 | - | local qb = {QuaternionFromCFrame(b)} |
519 | + | Prt.Size = Prt.Size + Settings.EndSize |
520 | - | local ax, ay, az = a.x, a.y, a.z |
520 | + | else |
521 | - | local bx, by, bz = b.x, b.y, b.z |
521 | + | Prt.Size = Prt.Size - grow/Frames |
522 | - | local _t = 1 - t |
522 | + | end |
523 | - | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
523 | + | Prt.Transparency = (i/Frames) |
524 | elseif(FX == 'Fade')then | |
525 | Prt.Transparency = (i/Frames) | |
526 | - | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) |
526 | + | |
527 | - | local frame = IT("Frame") |
527 | + | |
528 | - | frame.BackgroundTransparency = TRANSPARENCY |
528 | + | if(Settings.RandomizeCFrame)then |
529 | - | frame.BorderSizePixel = BORDERSIZEPIXEL |
529 | + | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) |
530 | - | frame.Position = POSITION |
530 | + | |
531 | - | frame.Size = SIZE |
531 | + | if(MoveDir and MoveSpeed)then |
532 | - | frame.BackgroundColor3 = COLOR |
532 | + | local Orientation = Prt.Orientation |
533 | - | frame.BorderColor3 = BORDERCOLOR |
533 | + | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) |
534 | - | frame.Name = NAME |
534 | + | Prt.Orientation = Orientation |
535 | - | frame.Parent = PARENT |
535 | + | |
536 | - | return frame |
536 | + | |
537 | Prt:destroy() | |
538 | else | |
539 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
540 | - | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) |
540 | + | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end |
541 | - | local label = IT("TextLabel") |
541 | + | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) |
542 | - | label.BackgroundTransparency = 1 |
542 | + | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) |
543 | - | label.Size = UD2(1, 0, 1, 0) |
543 | + | assert(start ~= nil,"You need to specify a start point!") |
544 | - | label.Position = UD2(0, 0, 0, 0) |
544 | + | assert(endP ~= nil,"You need to specify an end point!") |
545 | - | label.TextColor3 = TEXTCOLOR |
545 | + | for i = 0, 1, Settings.Speed or 0.01 do |
546 | - | label.TextStrokeTransparency = STROKETRANSPARENCY |
546 | + | if(swait and typeof(swait) == 'function')then |
547 | - | label.TextTransparency = TRANSPARENCY |
547 | + | swait() |
548 | - | label.FontSize = TEXTFONTSIZE |
548 | + | |
549 | - | label.Font = TEXTFONT |
549 | + | |
550 | - | label.BorderSizePixel = BORDERSIZEPIXEL |
550 | + | |
551 | - | label.TextScaled = false |
551 | + | if(Settings.Home)then |
552 | - | label.Text = TEXT |
552 | + | endP = Settings.Home.CFrame |
553 | - | label.Name = NAME |
553 | + | |
554 | - | label.Parent = PARENT |
554 | + | Prt.CFrame = Bezier(start, quarter, threequarter, endP, i) |
555 | - | return label |
555 | + | |
556 | if(Settings.RemoveOnGoal)then | |
557 | Prt:destroy() | |
558 | - | function NoOutlines(PART) |
558 | + | |
559 | - | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
559 | + | |
560 | end)) | |
561 | return Prt,Msh,Snd | |
562 | - | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) |
562 | + | end |
563 | - | local NEWWELD = IT(TYPE) |
563 | + | |
564 | - | NEWWELD.Part0 = PART0 |
564 | + | |
565 | - | NEWWELD.Part1 = PART1 |
565 | + | function SoulSteal(whom) |
566 | - | NEWWELD.C0 = C0 |
566 | + | local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart') |
567 | - | NEWWELD.C1 = C1 |
567 | + | print(torso) |
568 | - | NEWWELD.Parent = PARENT |
568 | + | if(torso and torso:IsA'BasePart')then |
569 | - | return NEWWELD |
569 | + | local Model = Instance.new("Model",Effects) |
570 | Model.Name = whom.Name.."'s Soul" | |
571 | whom:BreakJoints() | |
572 | - | local S = IT("Sound") |
572 | + | local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false) |
573 | - | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) |
573 | + | Soul.Name = 'Head' |
574 | - | local NEWSOUND = nil |
574 | + | NewInstance("Humanoid",Model,{Health=0,MaxHealth=0}) |
575 | Effect{ | |
576 | - | NEWSOUND = S:Clone() |
576 | + | Effect="Arc", |
577 | - | NEWSOUND.Parent = PARENT |
577 | + | Manual = Soul, |
578 | - | NEWSOUND.Volume = VOLUME |
578 | + | FXSettings={ |
579 | - | NEWSOUND.Pitch = PITCH |
579 | + | Start=torso.CFrame, |
580 | - | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
580 | + | Home = Torso, |
581 | - | NEWSOUND:play() |
581 | + | RemoveOnGoal = true, |
582 | - | if DOESLOOP == true then |
582 | + | } |
583 | - | NEWSOUND.Looped = true |
583 | + | } |
584 | local lastPoint = Soul.CFrame.p | |
585 | - | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT |
585 | + | |
586 | - | NEWSOUND:remove() |
586 | + | for i = 0, 1, 0.01 do |
587 | local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0) | |
588 | local mag = (lastPoint - Soul.Position).magnitude | |
589 | - | return NEWSOUND |
589 | + | Effect{ |
590 | Effect = "Fade", | |
591 | CFrame = point * CF.N(0, mag/2, 0), | |
592 | - | function CFrameFromTopBack(at, top, back) |
592 | + | Size = V3.N(.5,mag+.5,.5), |
593 | - | local right = top:Cross(back) |
593 | + | Color = Soul.BrickColor |
594 | - | 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) |
594 | + | } |
595 | lastPoint = Soul.CFrame.p | |
596 | swait() | |
597 | - | --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}) |
597 | + | |
598 | - | function WACKYEFFECT(Table) |
598 | + | for i = 1, 15 do |
599 | - | local TYPE = (Table.EffectType or "Sphere") |
599 | + | Effect{ |
600 | - | local SIZE = (Table.Size or VT(1,1,1)) |
600 | + | Effect="Fade", |
601 | - | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
601 | + | Color = BrickColor.new'Really red', |
602 | - | local TRANSPARENCY = (Table.Transparency or 0) |
602 | + | MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p |
603 | - | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
603 | + | } |
604 | - | local CFRAME = (Table.CFrame or Torso.CFrame) |
604 | + | |
605 | - | local MOVEDIRECTION = (Table.MoveToPos or nil) |
605 | + | |
606 | - | local ROTATION1 = (Table.RotationX or 0) |
606 | + | |
607 | - | local ROTATION2 = (Table.RotationY or 0) |
607 | + | |
608 | - | local ROTATION3 = (Table.RotationZ or 0) |
608 | + | --// Other Functions \\ -- |
609 | - | local MATERIAL = (Table.Material or "Neon") |
609 | + | |
610 | - | local COLOR = (Table.Color or C3(1,1,1)) |
610 | + | function Turn(position) |
611 | - | local TIME = (Table.Time or 45) |
611 | + | Root.CFrame=CFrame.new(Root.CFrame.p,V3.N(position.X,Root.Position.Y,position.Z)) |
612 | - | local SOUNDID = (Table.SoundID or nil) |
612 | + | |
613 | - | local SOUNDPITCH = (Table.SoundPitch or nil) |
613 | + | |
614 | - | local SOUNDVOLUME = (Table.SoundVolume or nil) |
614 | + | function Shoot(startP,endP) |
615 | local part,pos,norm,dist = CastRay(startP,endP,1500) | |
616 | - | local PLAYSSOUND = false |
616 | + | if(part and part.Parent and part.Parent ~= workspace)then |
617 | - | local SOUND = nil |
617 | + | local part = part |
618 | - | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) |
618 | + | local who = part.Parent; |
619 | - | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
619 | + | OnceWas(who) |
620 | - | PLAYSSOUND = true |
620 | + | local plr = S.Players:GetPlayerFromCharacter(who) |
621 | - | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
621 | + | warn("Banished "..who.Name) |
622 | if(plr)then | |
623 | - | EFFECT.Color = COLOR |
623 | + | BanishedEvents[plr] = plr.CharacterAdded:connect(function(c) |
624 | - | local MSH = nil |
624 | + | c:destroy() |
625 | - | if TYPE == "Sphere" then |
625 | + | end) |
626 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
626 | + | |
627 | - | elseif TYPE == "Block" then |
627 | + | if(who:FindFirstChild'Head' and Hum.Health > 0)then |
628 | - | MSH = IT("BlockMesh",EFFECT) |
628 | + | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(M.RNG(-3,3),1.5,M.RNG(-3,3))), "BANISHED", 1.5, C3.N(1,0,0)) |
629 | - | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
629 | + | |
630 | - | elseif TYPE == "Wave" then |
630 | + | |
631 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) |
631 | + | Effect{ |
632 | - | elseif TYPE == "Ring" then |
632 | + | Effect='ResizeAndFade', |
633 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
633 | + | Frames=45, |
634 | - | elseif TYPE == "Slash" then |
634 | + | Size=V3.N(.1,.1,.1), |
635 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
635 | + | CFrame=Barrel.CFrame, |
636 | - | elseif TYPE == "Round Slash" then |
636 | + | Mesh ={MeshType=Enum.MeshType.Sphere}, |
637 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
637 | + | Color=BrickColor.new'Really red', |
638 | - | elseif TYPE == "Swirl" then |
638 | + | FXSettings={ |
639 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
639 | + | EndSize=V3.N(.05,.05,.05), |
640 | - | elseif TYPE == "Skull" then |
640 | + | EndIsIncrement=true, |
641 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
641 | + | } |
642 | - | elseif TYPE == "Crystal" then |
642 | + | } |
643 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
643 | + | Effect{ |
644 | Effect='ResizeAndFade', | |
645 | - | if MSH ~= nil then |
645 | + | Frames=45, |
646 | - | local MOVESPEED = nil |
646 | + | Size=V3.N(.1,.1,.1), |
647 | - | if MOVEDIRECTION ~= nil then |
647 | + | CFrame=Barrel.CFrame, |
648 | - | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
648 | + | Mesh ={MeshType=Enum.MeshType.Sphere}, |
649 | Color=BrickColor.new'Really red', | |
650 | - | local GROWTH = SIZE - ENDSIZE |
650 | + | FXSettings={ |
651 | - | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
651 | + | EndSize=V3.N(.1,.1,.1), |
652 | - | if TYPE == "Block" then |
652 | + | EndIsIncrement=true, |
653 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
653 | + | } |
654 | } | |
655 | - | EFFECT.CFrame = CFRAME |
655 | + | Effect{ |
656 | Effect='Fade', | |
657 | - | for LOOP = 1, TIME+1 do |
657 | + | Frames=15, |
658 | - | Swait() |
658 | + | Size=V3.N(.15,.15,dist), |
659 | - | MSH.Scale = MSH.Scale - GROWTH/TIME |
659 | + | CFrame=CF.N(Barrel.CFrame.p,pos)*CF.N(0,0,-dist/2), |
660 | - | if TYPE == "Wave" then |
660 | + | Color=BrickColor.new'Really red', |
661 | - | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
661 | + | } |
662 | Effect{ | |
663 | - | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
663 | + | Effect='ResizeAndFade', |
664 | - | if TYPE == "Block" then |
664 | + | Frames=45, |
665 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
665 | + | Size=V3.N(.5,.5,.5), |
666 | CFrame=CF.N(pos), | |
667 | - | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
667 | + | Mesh ={MeshType=Enum.MeshType.Sphere}, |
668 | Color=BrickColor.new'Really red', | |
669 | - | if MOVEDIRECTION ~= nil then |
669 | + | FXSettings={ |
670 | - | local ORI = EFFECT.Orientation |
670 | + | EndSize=V3.N(.05,.05,.05), |
671 | - | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
671 | + | EndIsIncrement=true, |
672 | - | EFFECT.Orientation = ORI |
672 | + | } |
673 | } | |
674 | for i = 1, 5 do | |
675 | - | if PLAYSSOUND == false then |
675 | + | Effect{ |
676 | - | EFFECT:remove() |
676 | + | Effect='ResizeAndFade', |
677 | Frames=65, | |
678 | - | SOUND.Stopped:Connect(function() |
678 | + | Size=V3.N(.2,.2,1), |
679 | - | EFFECT:remove() |
679 | + | CFrame=CF.N(CF.N(pos)*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))*CF.N(0,0,-2).p,pos), |
680 | Mesh = {MeshType=Enum.MeshType.Sphere}, | |
681 | Material=Enum.Material.Neon, | |
682 | Color=BrickColor.new'Really red', | |
683 | - | if PLAYSSOUND == false then |
683 | + | FXSettings={ |
684 | - | EFFECT:remove() |
684 | + | EndSize=V3.N(.005,.005,.05), |
685 | EndIsIncrement=true, | |
686 | - | repeat Swait() until SOUND.Playing == false |
686 | + | } |
687 | - | EFFECT:remove() |
687 | + | } |
688 | end | |
689 | end | |
690 | ||
691 | function Chat(text) | |
692 | if(ChatSounds[text])then | |
693 | - | function MakeForm(PART,TYPE) |
693 | + | Sound(Head,ChatSounds[text],1,3,false,true,true) |
694 | - | if TYPE == "Cyl" then |
694 | + | |
695 | - | local MSH = IT("CylinderMesh",PART) |
695 | + | --if(game.PlaceId ~= 843468296)then |
696 | - | elseif TYPE == "Ball" then |
696 | + | |
697 | - | local MSH = IT("SpecialMesh",PART) |
697 | + | if(Char:FindFirstChild'ChatGUI')then Char.ChatGUI:destroy() end |
698 | - | MSH.MeshType = "Sphere" |
698 | + | local BBG = NewInstance("BillboardGui",Char,{Name='ChatGUI',Size=UDim2.new(0,100,0,40),StudsOffset=V3.N(0,3,0),Adornee=Head}) |
699 | - | elseif TYPE == "Wedge" then |
699 | + | local Txt = NewInstance("TextLabel",BBG,{Text = "",BackgroundTransparency=1,TextColor3=C3.N(1,0,0),BorderSizePixel=0,Font=Enum.Font.Garamond,TextSize=30,TextStrokeTransparency=1,Size=UDim2.new(1,0,.5,0)}) |
700 | - | local MSH = IT("SpecialMesh",PART) |
700 | + | local SND = Sound(Head,418252437,M.RNG(9,11)/10,3,false,false,true) |
701 | - | MSH.MeshType = "Wedge" |
701 | + | for i = 1, #text do |
702 | delay(i/25, function() | |
703 | SND.Pitch = M.RNG(9,11)/10 | |
704 | SND.Volume = 3 | |
705 | - | local asd = Instance.new("ParticleEmitter") |
705 | + | SND.Parent = Effects |
706 | - | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) |
706 | + | SND:Play() |
707 | - | asd.LightEmission = .1 |
707 | + | Txt.Text = text:sub(1,i) |
708 | - | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" |
708 | + | |
709 | - | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) |
709 | + | |
710 | - | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) |
710 | + | delay((#text/25)+2, function() |
711 | - | asd.Transparency = bbb |
711 | + | Txt.Text = "" |
712 | - | asd.Size = aaa |
712 | + | for i = 1, #text do |
713 | - | asd.ZOffset = .9 |
713 | + | Txt.Text = Txt.Text.. string.char(M.RNG(0,126)) |
714 | - | asd.Acceleration = Vector3.new(0, -15, 0) |
714 | + | |
715 | - | asd.LockedToPart = false |
715 | + | end) |
716 | - | asd.EmissionDirection = "Back" |
716 | + | delay((#text/25)+3, function() |
717 | - | asd.Lifetime = NumberRange.new(1, 2) |
717 | + | BBG:destroy() |
718 | - | asd.Rotation = NumberRange.new(-100, 100) |
718 | + | SND:destroy() |
719 | - | asd.RotSpeed = NumberRange.new(-100, 100) |
719 | + | end) |
720 | - | asd.Speed = NumberRange.new(10) |
720 | + | |
721 | - | asd.Enabled = false |
721 | + | --else |
722 | - | asd.VelocitySpread = 999 |
722 | + | -- Chat2(text) |
723 | --end | |
724 | - | function getbloody(victim,amount) |
724 | + | |
725 | - | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) |
725 | + | |
726 | - | PART.CFrame = victim.CFrame |
726 | + | function Chat2(text) |
727 | - | local HITPLAYERSOUNDS = {"356551938","264486467"} |
727 | + | coroutine.wrap(function() |
728 | - | Debris:AddItem(PART,5) |
728 | + | if(Char:FindFirstChild'ChatGUI')then Char.ChatGUI:destroy() end |
729 | - | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) |
729 | + | local BBG = NewInstance("BillboardGui",Char,{Name='ChatGUI',Size=UDim2.new(0,100,0,40),StudsOffset=V3.N(0,3,0),Adornee=Head}) |
730 | - | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) |
730 | + | local offset = 0; |
731 | - | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) |
731 | + | local xsize = 0; |
732 | - | local prtcl = asd:Clone() |
732 | + | for i = 1, #text do |
733 | - | prtcl.Parent = PART |
733 | + | offset = offset - 16 |
734 | - | prtcl:Emit(amount*10) |
734 | + | xsize = xsize + 32 |
735 | delay(i/25, function() | |
736 | local Txt = NewInstance("TextLabel",BBG,{Text = text:sub(i,i),Position=UDim2.new(0,offset,0,0),BackgroundTransparency=1,TextColor3=C3.N(1,0,0),BorderSizePixel=0,Font=Enum.Font.Garamond,TextSize=40,TextStrokeTransparency=1,Size=UDim2.new(1,0,.5,0)}) | |
737 | - | local Particle = IT("ParticleEmitter",nil) |
737 | + | offset = offset + 32 |
738 | - | Particle.Enabled = false |
738 | + | while Txt and Txt.Parent do |
739 | - | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) |
739 | + | Txt.Rotation = M.RNG(-15,15) |
740 | - | Particle.LightEmission = 0.5 |
740 | + | swait() |
741 | - | Particle.Rate = 150 |
741 | + | |
742 | - | Particle.ZOffset = 1 |
742 | + | end) |
743 | - | Particle.Rotation = NumberRange.new(-180, 180) |
743 | + | |
744 | - | Particle.RotSpeed = NumberRange.new(-180, 180) |
744 | + | BBG.Size = UDim2.new(0,xsize,0,40) |
745 | - | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" |
745 | + | delay((#text/25)+3, function() |
746 | - | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) |
746 | + | for _,v in next, BBG:children() do |
747 | pcall(function() v.Text = string.char(M.RNG(0,126)) end) | |
748 | - | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) |
748 | + | |
749 | - | function ParticleEmitter(Table) |
749 | + | end) |
750 | - | local PRTCL = Particle:Clone() |
750 | + | delay((#text/25)+4, function() |
751 | - | local Speed = Table.Speed or 5 |
751 | + | BBG:destroy() |
752 | - | local Drag = Table.Drag or 0 |
752 | + | end) |
753 | - | local Size1 = Table.Size1 or 1 |
753 | + | end)() |
754 | - | local Size2 = Table.Size2 or 5 |
754 | + | |
755 | - | local Lifetime1 = Table.Lifetime1 or 1 |
755 | + | |
756 | - | local Lifetime2 = Table.Lifetime2 or 1.5 |
756 | + | function getRegion(point,range,ignore) |
757 | - | local Parent = Table.Parent or Torso |
757 | + | return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100) |
758 | - | local Emit = Table.Emit or 100 |
758 | + | |
759 | - | local Offset = Table.Offset or 360 |
759 | + | |
760 | - | local Acel = Table.Acel or VT(0,0,0) |
760 | + | function clerp(startCF,endCF,alpha) |
761 | - | local Enabled = Table.Enabled or false |
761 | + | return startCF:lerp(endCF, alpha) |
762 | - | PRTCL.Parent = Parent |
762 | + | |
763 | - | PRTCL.Size = NumberSequence.new(Size1,Size2) |
763 | + | |
764 | - | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) |
764 | + | function GetTorso(char) |
765 | - | PRTCL.Speed = NumberRange.new(Speed) |
765 | + | return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart' |
766 | - | PRTCL.VelocitySpread = Offset |
766 | + | |
767 | - | PRTCL.Drag = Drag |
767 | + | |
768 | - | PRTCL.Acceleration = Acel |
768 | + | |
769 | - | if Enabled == false then |
769 | + | |
770 | - | PRTCL:Emit(Emit) |
770 | + | function ShowDamage(Pos, Text, Time, Color) |
771 | - | Debris:AddItem(PRTCL,Lifetime2) |
771 | + | coroutine.wrap(function() |
772 | local Rate = (1 / 30) | |
773 | - | PRTCL.Enabled = true |
773 | + | local Pos = (Pos or Vector3.new(0, 0, 0)) |
774 | local Text = (Text or "") | |
775 | - | return PRTCL |
775 | + | local Time = (Time or 2) |
776 | local Color = (Color or Color3.new(1, 0, 1)) | |
777 | local EffectPart = NewInstance("Part",Effects,{ | |
778 | - | function SpawnTrail(FROM,TO,BIG) |
778 | + | Material=Enum.Material.SmoothPlastic, |
779 | - | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) |
779 | + | Reflectance = 0, |
780 | - | MakeForm(TRAIL,"Cyl") |
780 | + | Transparency = 1, |
781 | - | local DIST = (FROM - TO).Magnitude |
781 | + | CanCollide=false, |
782 | - | if BIG == true then |
782 | + | BrickColor = BrickColor.new(Color), |
783 | - | TRAIL.Size = VT(0.5,DIST,0.5) |
783 | + | Name = "Effect", |
784 | Size = Vector3.new(0,0,0), | |
785 | - | TRAIL.Size = VT(0.25,DIST,0.25) |
785 | + | Anchored = true, |
786 | CFrame = CFrame.new(Pos) | |
787 | - | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) |
787 | + | }) |
788 | local BillboardGui = NewInstance("BillboardGui",EffectPart,{ | |
789 | - | for i = 1, 5 do |
789 | + | Size = UDim2.new(3.75, 0, 3.75, 0), |
790 | - | Swait() |
790 | + | Adornee = EffectPart, |
791 | - | TRAIL.Transparency = TRAIL.Transparency + 0.1 |
791 | + | }) |
792 | local TextLabel = NewInstance("TextLabel",BillboardGui,{ | |
793 | - | TRAIL:remove() |
793 | + | BackgroundTransparency = 1, |
794 | Size = UDim2.new(1, 0, 1, 0), | |
795 | Text = Text, | |
796 | Font = "Arial", | |
797 | - | Debris = game:GetService("Debris") |
797 | + | TextColor3 = Color, |
798 | TextStrokeColor3 = Color3.new(0,0,0), | |
799 | - | function CastProperRay(StartPos, EndPos, Distance, Ignore) |
799 | + | TextStrokeTransparency=0, |
800 | - | local DIRECTION = CF(StartPos,EndPos).lookVector |
800 | + | TextScaled = true, |
801 | - | return Raycast(StartPos, DIRECTION, Distance, Ignore) |
801 | + | }) |
802 | game.Debris:AddItem(EffectPart, (Time)) | |
803 | EffectPart.Parent = game:GetService("Workspace") | |
804 | - | function turnto(position) |
804 | + | delay(0, function() |
805 | - | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) |
805 | + | local Frames = (Time / Rate) |
806 | for Frame = 1, Frames do | |
807 | wait(Rate) | |
808 | - | --//=================================\\ |
808 | + | local Percent = (Frame / Frames) |
809 | - | --|| RESIZE PLAYER |
809 | + | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) |
810 | - | --\\=================================// |
810 | + | TextLabel.TextTransparency = Percent |
811 | TextLabel.TextStrokeTransparency = Percent | |
812 | - | if Player_Size ~= 1 then |
812 | + | |
813 | - | RootPart.Size = RootPart.Size * Player_Size |
813 | + | if EffectPart and EffectPart.Parent then |
814 | - | Torso.Size = Torso.Size * Player_Size |
814 | + | EffectPart:Destroy() |
815 | - | Head.Size = Head.Size * Player_Size |
815 | + | |
816 | - | RightArm.Size = RightArm.Size * Player_Size |
816 | + | end) end)() |
817 | - | LeftArm.Size = LeftArm.Size * Player_Size |
817 | + | |
818 | - | RightLeg.Size = RightLeg.Size * Player_Size |
818 | + | |
819 | - | LeftLeg.Size = LeftLeg.Size * Player_Size |
819 | + | |
820 | - | RootJoint.Parent = RootPart |
820 | + | function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult) |
821 | - | Neck.Parent = Torso |
821 | + | if(who)then |
822 | - | RightShoulder.Parent = Torso |
822 | + | local hum = who:FindFirstChildOfClass'Humanoid' |
823 | - | LeftShoulder.Parent = Torso |
823 | + | local Damage = M.RNG(minDam,maxDam) |
824 | - | RightHip.Parent = Torso |
824 | + | local canHit = true |
825 | - | LeftHip.Parent = Torso |
825 | + | if(hum)then |
826 | for _, p in pairs(Hit) do | |
827 | - | RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) |
827 | + | if p[1] == hum then |
828 | - | RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) |
828 | + | if(time() - p[2] < 0.1) then |
829 | - | Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) |
829 | + | canHit = false |
830 | - | Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
830 | + | else |
831 | - | RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0 |
831 | + | Hit[_] = nil |
832 | - | LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0 |
832 | + | |
833 | - | if Disable_Moving_Arms == false then |
833 | + | |
834 | - | RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) |
834 | + | |
835 | - | LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) |
835 | + | if(canHit)then |
836 | if(hum.Health >= math.huge)then | |
837 | - | RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) |
837 | + | who:BreakJoints() |
838 | - | LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) |
838 | + | if(who:FindFirstChild'Head' and hum.Health > 0)then |
839 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "INSTANT", 1.5, C3.N(1,0,0)) | |
840 | - | RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) |
840 | + | |
841 | - | LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) |
841 | + | |
842 | - | RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) |
842 | + | local player = S.Players:GetPlayerFromCharacter(who) |
843 | - | LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) |
843 | + | if(Type == "Fire")then |
844 | --idk.. | |
845 | else | |
846 | local c = Instance.new("ObjectValue",hum) | |
847 | - | --//=================================\\ |
847 | + | c.Name = "creator" |
848 | - | --\\=================================// |
848 | + | c.Value = Plr |
849 | game:service'Debris':AddItem(c,0.35) | |
850 | - | --//=================================\\ |
850 | + | if(M.RNG(1,100) <= (critChance or 0))then |
851 | - | --|| WEAPON CREATION |
851 | + | if(who:FindFirstChild'Head' and hum.Health > 0)then |
852 | - | --\\=================================// |
852 | + | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "[CRIT] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color) |
853 | end | |
854 | - | local PRT = CreatePart(3, char, "Fabric", 0, 0, "", "The Mask", VT(1,1,1),false) |
854 | + | hum.Health = hum.Health - Damage*(critMult or 2) |
855 | - | PRT.Color = C3(0,0,0) |
855 | + | |
856 | - | local MaskWeld = CreateWeldOrSnapOrMotor("Weld", hed, hed, PRT, CF(0,0.2,0), CF(0, 0.15, 0)) |
856 | + | if(who:FindFirstChild'Head' and hum.Health > 0)then |
857 | - | CreateMesh("SpecialMesh", PRT, "FileMesh", "62146989", "145633085", VT(1.1,1.1,1.1)*1.05, VT(0,0,0)) |
857 | + | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), Damage, 1.5, DamageColor.Color) |
858 | end | |
859 | - | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) |
859 | + | hum.Health = hum.Health - Damage |
860 | - | local TORSO = Torso |
860 | + | |
861 | - | local HUM = Humanoid |
861 | + | if(Type == 'Knockback' and GetTorso(who))then |
862 | - | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then |
862 | + | local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit |
863 | local body = NewInstance('BodyVelocity',GetTorso(who),{ | |
864 | - | VT = Vector3.new |
864 | + | P = 500, |
865 | - | MRANDOM = math.random |
865 | + | maxForce = V3.N(math.huge,0,math.huge), |
866 | - | local A = TIME |
866 | + | velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05 |
867 | - | local B = INTENSITY |
867 | + | }) |
868 | - | local C = true |
868 | + | game:service'Debris':AddItem(body,.5) |
869 | - | local HUMANOID = Humanoid |
869 | + | elseif(Type == 'Knockdown' and GetTorso(who))then |
870 | - | local TIMER = A or 35 |
870 | + | local rek = GetTorso(who) |
871 | - | local SHAKE = B or 5 |
871 | + | print(rek) |
872 | - | local FADE = C or true |
872 | + | hum.PlatformStand = true |
873 | - | if HUMANOID then |
873 | + | delay(1,function() |
874 | - | local FADER = SHAKE / TIMER |
874 | + | hum.PlatformStand = false |
875 | - | for i = 1, TIMER do |
875 | + | end) |
876 | local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit | |
877 | - | 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) |
877 | + | local bodvol = NewInstance("BodyVelocity",rek,{ |
878 | velocity = angle * Knock, | |
879 | - | HUMANOID.CameraOffset = VT(0, 0, 0) |
879 | + | P = 5000, |
880 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
881 | }) | |
882 | local rl = NewInstance("BodyAngularVelocity",rek,{ | |
883 | P = 3000, | |
884 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
885 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
886 | }) | |
887 | - | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) |
887 | + | game:GetService("Debris"):AddItem(bodvol, .5) |
888 | - | PRT.Color = C3(0,0,0) |
888 | + | game:GetService("Debris"):AddItem(rl, .5) |
889 | - | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) |
889 | + | |
890 | - | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) |
890 | + | |
891 | - | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false) |
891 | + | |
892 | - | PRT.Color = C3(0,0,0) |
892 | + | |
893 | table.insert(Hit,{hum,time()}) | |
894 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false) |
894 | + | |
895 | - | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) |
895 | + | |
896 | - | MakeForm(Part,"Wedge") |
896 | + | |
897 | ||
898 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false) |
898 | + | function ClosestPart(pos,range) |
899 | - | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
899 | + | local mag,closest = math.huge; |
900 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) |
900 | + | for _,v in next, getRegion(pos,range or 10,{Char}) do |
901 | - | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0)) |
901 | + | if((v.CFrame.p-pos).magnitude < mag)then |
902 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) |
902 | + | mag = (v.CFrame.p-pos).magnitude |
903 | - | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0)) |
903 | + | closest = v |
904 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false) |
904 | + | |
905 | - | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
905 | + | |
906 | - | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false) |
906 | + | return closest |
907 | - | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
907 | + | |
908 | ||
909 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false) |
909 | + | function AOEBanish(pos,range) |
910 | - | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) |
910 | + | local mag,closest = math.huge; |
911 | - | MakeForm(Part,"Wedge") |
911 | + | for _,v in next, getRegion(pos,range or 10,{Char}) do |
912 | local who = v.Parent | |
913 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false) |
913 | + | if((v.CFrame.p-pos).magnitude < mag and who and who ~= workspace and not Char:IsAncestorOf(v))then |
914 | - | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
914 | + | local plr = S.Players:GetPlayerFromCharacter(who) |
915 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) |
915 | + | if(plr)then |
916 | - | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0)) |
916 | + | BanishedEvents[plr] = plr.CharacterAdded:connect(function(c) |
917 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) |
917 | + | c:destroy() |
918 | - | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0)) |
918 | + | |
919 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false) |
919 | + | |
920 | - | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
920 | + | warn("Banished "..who.Name) |
921 | - | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false) |
921 | + | if(who:FindFirstChild'Head' and Hum.Health > 0)then |
922 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
922 | + | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(M.RNG(-3,3),1.5,M.RNG(-3,3))), "BANISHED", 1.5, C3.N(1,0,0)) |
923 | end | |
924 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false) |
924 | + | OnceWas(who) |
925 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) |
925 | + | |
926 | - | MakeForm(Part,"Wedge") |
926 | + | |
927 | end | |
928 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false) |
928 | + | |
929 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
929 | + | function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult) |
930 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) |
930 | + | for _,v in next, getRegion(where,range,{Char}) do |
931 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0)) |
931 | + | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then |
932 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) |
932 | + | DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult) |
933 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0)) |
933 | + | |
934 | - | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false) |
934 | + | |
935 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
935 | + | |
936 | - | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false) |
936 | + | |
937 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
937 | + | function AOEHeal(where,range,amount) |
938 | local healed = {} | |
939 | - | --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}) |
939 | + | for _,v in next, getRegion(where,range,{Char}) do |
940 | - | function WACKYEFFECT(Table) |
940 | + | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil) |
941 | - | local TYPE = (Table.EffectType or "Sphere") |
941 | + | if(hum and not healed[hum])then |
942 | - | local SIZE = (Table.Size or VT(1,1,1)) |
942 | + | hum.Health = hum.Health + amount |
943 | - | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
943 | + | if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then |
944 | - | local TRANSPARENCY = (Table.Transparency or 0) |
944 | + | ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color) |
945 | - | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
945 | + | |
946 | - | local CFRAME = (Table.CFrame or Torso.CFrame) |
946 | + | |
947 | - | local MOVEDIRECTION = (Table.MoveToPos or nil) |
947 | + | |
948 | - | local ROTATION1 = (Table.RotationX or 0) |
948 | + | |
949 | - | local ROTATION2 = (Table.RotationY or 0) |
949 | + | |
950 | - | local ROTATION3 = (Table.RotationZ or 0) |
950 | + | function CastRay(startPos,endPos,range,ignoreList) |
951 | - | local MATERIAL = (Table.Material or "Neon") |
951 | + | local ray = Ray.new(startPos,(endPos-startPos).unit*range) |
952 | - | local COLOR = (Table.Color or C3(1,1,1)) |
952 | + | local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true) |
953 | - | local TIME = (Table.Time or 45) |
953 | + | return part,pos,norm,(pos and (startPos-pos).magnitude) |
954 | - | local SOUNDID = (Table.SoundID or nil) |
954 | + | |
955 | - | local SOUNDPITCH = (Table.SoundPitch or nil) |
955 | + | |
956 | - | local SOUNDVOLUME = (Table.SoundVolume or nil) |
956 | + | --// Attack Functions \\-- |
957 | ||
958 | - | local PLAYSSOUND = false |
958 | + | |
959 | - | local SOUND = nil |
959 | + | function Show_Mercy() |
960 | - | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true) |
960 | + | Chat "I will show you mercy." |
961 | - | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
961 | + | ShowDamage((Head.CFrame * CF.N(0, 0, (Head.Size.Z / 2)).p+V3.N(M.RNG(-3,3),1.5,M.RNG(-3,3))), "DEBANISHED", 1.5, C3.N(.7,0,0)) |
962 | - | PLAYSSOUND = true |
962 | + | |
963 | - | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
963 | + | for p,v in next, BanishedEvents do |
964 | warn("Unbanished "..p.Name) | |
965 | - | EFFECT.Color = COLOR |
965 | + | v:disconnect() |
966 | - | local MSH = nil |
966 | + | BanishedEvents[p] = nil |
967 | - | if TYPE == "Sphere" then |
967 | + | |
968 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
968 | + | |
969 | - | elseif TYPE == "Block" then |
969 | + | |
970 | - | MSH = IT("BlockMesh",EFFECT) |
970 | + | function Banishing_Storm() |
971 | - | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
971 | + | Attack = true |
972 | - | elseif TYPE == "Wave" then |
972 | + | NeutralAnims = false |
973 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) |
973 | + | Hum.AutoRotate = false |
974 | - | elseif TYPE == "Ring" then |
974 | + | for i = 0, 2.3, .1 do |
975 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
975 | + | swait() |
976 | - | elseif TYPE == "Slash" then |
976 | + | Turn(Mouse.Hit.p) |
977 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
977 | + | local Alpha = .15 |
978 | - | elseif TYPE == "Round Slash" then |
978 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.149688482, 0.00629410101, -0.0288102441, 0.908953488, -0.00262140064, -0.416884065, -7.05317973e-08, 0.99998033, -0.00628811028, 0.41689238, 0.00571563188, 0.908935547),Alpha) |
979 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
979 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.404874682, -0.991180301, -0.0352490693, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) |
980 | - | elseif TYPE == "Swirl" then |
980 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.71690762, -0.991053104, 0.00471016858, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) |
981 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
981 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.26718163, 0.394917995, 0.30748421, 0.758522511, -0.65150404, 0.013650775, 0.563350797, 0.666130126, 0.488780826, -0.327535838, -0.363061011, 0.87229985),Alpha) |
982 | - | elseif TYPE == "Skull" then |
982 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.46891451, 0.639140844, 0.117049158, 0.947687626, 0.107383646, 0.300595015, 0.195006967, -0.940317333, -0.278883517, 0.252707064, 0.322912514, -0.912067294),Alpha) |
983 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
983 | + | NK.C0 = clerp(NK.C0,CFrame.new(-0.232400328, 1.4423281, 0.0608692467, 0.612107515, -0.5404585, -0.577260137, 0.0609407648, 0.760062039, -0.646986902, 0.788422942, 0.360846847, 0.498175651),Alpha) |
984 | - | elseif TYPE == "Crystal" then |
984 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110755987, -0.74960357, -0.415038228, -5.42402267e-06, -2.98023224e-07, 1.00000024, -0.500007331, 0.866021454, -2.48476863e-06, -0.866021395, -0.500007272, -4.7981739e-06),Alpha) |
985 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
985 | + | |
986 | local numberFall = 0; | |
987 | - | if MSH ~= nil then |
987 | + | |
988 | - | local MOVESPEED = nil |
988 | + | for i = 0, .8, 0.1 do |
989 | - | if MOVEDIRECTION ~= nil then |
989 | + | swait() |
990 | - | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
990 | + | Turn(Mouse.Hit.p) |
991 | local Alpha = .3 | |
992 | - | local GROWTH = SIZE - ENDSIZE |
992 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.149688482, 0.00629410101, -0.0288102441, 0.908953488, -0.00262140064, -0.416884065, -7.05317973e-08, 0.99998033, -0.00628811028, 0.41689238, 0.00571563188, 0.908935547),Alpha) |
993 | - | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
993 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.404874682, -0.991180301, -0.0352490693, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) |
994 | - | if TYPE == "Block" then |
994 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.71690762, -0.991053104, 0.00471016858, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) |
995 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
995 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.26718163, 0.394917995, 0.30748421, 0.758522511, -0.65150404, 0.013650775, 0.563350797, 0.666130126, 0.488780826, -0.327535838, -0.363061011, 0.87229985),Alpha) |
996 | RS.C0 = clerp(RS.C0,CFrame.new(1.47921813, 0.661770463, 0.060773734, 0.947700858, 0.195051998, 0.252622485, 0.194988579, -0.980473101, 0.0255415048, 0.252671421, 0.0250527933, -0.967227817),Alpha) | |
997 | - | EFFECT.CFrame = CFRAME |
997 | + | NK.C0 = clerp(NK.C0,CFrame.new(-0.232400328, 1.4423281, 0.0608692467, 0.612107515, -0.5404585, -0.577260137, 0.0609407648, 0.760062039, -0.646986902, 0.788422942, 0.360846847, 0.498175651),Alpha) |
998 | HW.C0 = clerp(HW.C0,CFrame.new(-0.110747263, -0.749596298, -0.415039092, -1.66893005e-06, -5.14090061e-06, 1.00000012, -0.500009954, 0.866019845, 3.60608101e-06, -0.866019726, -0.500009894, -3.9935112e-06),Alpha) | |
999 | - | for LOOP = 1, TIME+1 do |
999 | + | |
1000 | - | Swait() |
1000 | + | Sound(Barrel,238353911,M.RNG(7,13)/10,10,false,true,true) |
1001 | - | MSH.Scale = MSH.Scale - GROWTH/TIME |
1001 | + | local part,pos,dist = Shoot(Barrel.CFrame.p,Barrel.CFrame*CF.N(0,-1500,0).p) |
1002 | - | if TYPE == "Wave" then |
1002 | + | if(not part)then |
1003 | - | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
1003 | + | numberFall = numberFall + 1 |
1004 | end | |
1005 | - | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
1005 | + | Effect{ |
1006 | - | if TYPE == "Block" then |
1006 | + | Effect='ResizeAndFade', |
1007 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1007 | + | Frames=45, |
1008 | Size=V3.N(.1,.1,.1), | |
1009 | - | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
1009 | + | CFrame=Barrel.CFrame, |
1010 | Mesh ={MeshType=Enum.MeshType.Sphere}, | |
1011 | - | if MOVEDIRECTION ~= nil then |
1011 | + | Color=BrickColor.new'Really red', |
1012 | - | local ORI = EFFECT.Orientation |
1012 | + | FXSettings={ |
1013 | - | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
1013 | + | EndSize=V3.N(.05,.05,.05), |
1014 | - | EFFECT.Orientation = ORI |
1014 | + | EndIsIncrement=true, |
1015 | } | |
1016 | } | |
1017 | - | if PLAYSSOUND == false then |
1017 | + | Effect{ |
1018 | - | EFFECT:remove() |
1018 | + | Effect='ResizeAndFade', |
1019 | Frames=45, | |
1020 | - | SOUND.Stopped:Connect(function() |
1020 | + | Size=V3.N(.1,.1,.1), |
1021 | - | EFFECT:remove() |
1021 | + | CFrame=Barrel.CFrame, |
1022 | Mesh ={MeshType=Enum.MeshType.Sphere}, | |
1023 | Color=BrickColor.new'Really red', | |
1024 | FXSettings={ | |
1025 | - | if PLAYSSOUND == false then |
1025 | + | EndSize=V3.N(.1,.1,.1), |
1026 | - | EFFECT:remove() |
1026 | + | EndIsIncrement=true, |
1027 | } | |
1028 | - | repeat Swait() until SOUND.Playing == false |
1028 | + | } |
1029 | - | EFFECT:remove() |
1029 | + | for i = 0, .7, 0.1 do |
1030 | swait() | |
1031 | Turn(Mouse.Hit.p) | |
1032 | local Alpha = .3 | |
1033 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.149688482, 0.00629410101, -0.0288102441, 0.908953488, -0.00262140064, -0.416884065, -7.05317973e-08, 0.99998033, -0.00628811028, 0.41689238, 0.00571563188, 0.908935547),Alpha) | |
1034 | LH.C0 = clerp(LH.C0,CFrame.new(-0.404874682, -0.991180301, -0.0352490693, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) | |
1035 | RH.C0 = clerp(RH.C0,CFrame.new(0.71690762, -0.991053104, 0.00471016858, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) | |
1036 | - | function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW) |
1036 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.26718163, 0.394917995, 0.30748421, 0.758522511, -0.65150404, 0.013650775, 0.563350797, 0.666130126, 0.488780826, -0.327535838, -0.363061011, 0.87229985),Alpha) |
1037 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) |
1037 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.47678053, 0.526562393, 0.174270749, 0.947701395, 0.126782924, 0.292896599, 0.194988653, -0.956529498, -0.216866404, 0.252669275, 0.262636065, -0.931225359),Alpha) |
1038 | - | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0)) |
1038 | + | NK.C0 = clerp(NK.C0,CFrame.new(-0.232400328, 1.4423281, 0.0608692467, 0.612107515, -0.5404585, -0.577260137, 0.0609407648, 0.760062039, -0.646986902, 0.788422942, 0.360846847, 0.498175651),Alpha) |
1039 | - | wave.CFrame = CFRAME |
1039 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110761039, -0.749590993, -0.415038049, 5.96046448e-07, -4.7236681e-06, 1.00000012, -0.500009775, 0.866019845, 4.39817086e-06, -0.866019845, -0.500009775, -1.90734863e-06),Alpha) |
1040 | - | coroutine.resume(coroutine.create(function(PART) |
1040 | + | |
1041 | - | for i = 1, WAIT do |
1041 | + | until not S.UserInputService:IsKeyDown(Enum.KeyCode.Z) |
1042 | - | Swait() |
1042 | + | delay(2, function() |
1043 | - | mesh.Scale = mesh.Scale + GROW |
1043 | + | for i = 1, numberFall*2 do |
1044 | - | if DOESROT == true then |
1044 | + | local part,pos,dist = ClosestPart(Mouse.Hit.p,2),Mouse.Hit.p+V3.N(M.RNG(-100,100)/100,0,M.RNG(-100,100)/100),1500 |
1045 | - | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) |
1045 | + | Effect{ |
1046 | Effect='Fade', | |
1047 | - | wave.Transparency = wave.Transparency + 0.5 / WAIT |
1047 | + | Frames=15, |
1048 | - | if wave.Transparency > 0.99 then |
1048 | + | Size=V3.N(.15,dist,.15), |
1049 | - | wave:remove() |
1049 | + | CFrame=CF.N(pos)*CF.N(0,dist/2,0), |
1050 | Color=BrickColor.new'Really red', | |
1051 | } | |
1052 | Effect{ | |
1053 | Effect='ResizeAndFade', | |
1054 | Frames=45, | |
1055 | - | function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW) |
1055 | + | Size=V3.N(.5,.5,.5), |
1056 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) |
1056 | + | CFrame=CF.N(pos), |
1057 | - | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) |
1057 | + | Mesh ={MeshType=Enum.MeshType.Sphere}, |
1058 | - | wave.CFrame = CFRAME |
1058 | + | Color=BrickColor.new'Really red', |
1059 | - | coroutine.resume(coroutine.create(function(PART) |
1059 | + | FXSettings={ |
1060 | - | for i = 1, WAIT do |
1060 | + | EndSize=V3.N(.05,.05,.05), |
1061 | - | Swait() |
1061 | + | EndIsIncrement=true, |
1062 | - | mesh.Scale = mesh.Scale + GROW |
1062 | + | } |
1063 | - | mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8)) |
1063 | + | } |
1064 | - | if DOESROT == true then |
1064 | + | |
1065 | - | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) |
1065 | + | Effect{ |
1066 | Effect='ResizeAndFade', | |
1067 | - | wave.Transparency = wave.Transparency + 0.5 / WAIT |
1067 | + | Frames=65, |
1068 | - | if wave.Transparency > 0.99 then |
1068 | + | Size=V3.N(.2,.2,1), |
1069 | - | wave:remove() |
1069 | + | CFrame=CF.N(CF.N(pos)*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))*CF.N(0,0,-2).p,pos), |
1070 | Mesh = {MeshType=Enum.MeshType.Sphere}, | |
1071 | Material=Enum.Material.Neon, | |
1072 | Color=BrickColor.new'Really red', | |
1073 | FXSettings={ | |
1074 | EndSize=V3.N(.005,.005,.05), | |
1075 | - | --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}) |
1075 | + | EndIsIncrement=true, |
1076 | - | function WACKYEFFECT(Table) |
1076 | + | } |
1077 | - | local TYPE = (Table.EffectType or "Sphere") |
1077 | + | } |
1078 | - | local SIZE = (Table.Size or VT(1,1,1)) |
1078 | + | |
1079 | - | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
1079 | + | if(part and part.Parent and part.Parent ~= workspace)then |
1080 | - | local TRANSPARENCY = (Table.Transparency or 0) |
1080 | + | local part = part |
1081 | - | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
1081 | + | local who = part.Parent |
1082 | - | local CFRAME = (Table.CFrame or Torso.CFrame) |
1082 | + | OnceWas(who) |
1083 | - | local MOVEDIRECTION = (Table.MoveToPos or nil) |
1083 | + | local plr = S.Players:GetPlayerFromCharacter(who) |
1084 | - | local ROTATION1 = (Table.RotationX or 0) |
1084 | + | if(plr)then |
1085 | - | local ROTATION2 = (Table.RotationY or 0) |
1085 | + | BanishedEvents[plr] = plr.CharacterAdded:connect(function(c) |
1086 | - | local ROTATION3 = (Table.RotationZ or 0) |
1086 | + | c:destroy() |
1087 | - | local MATERIAL = (Table.Material or "Neon") |
1087 | + | end) |
1088 | - | local COLOR = (Table.Color or C3(1,1,1)) |
1088 | + | |
1089 | - | local TIME = (Table.Time or 45) |
1089 | + | if(who:FindFirstChild'Head' and Hum.Health > 0)then |
1090 | - | local SOUNDID = (Table.SoundID or nil) |
1090 | + | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(M.RNG(-3,3),1.5,M.RNG(-3,3))), "BANISHED", 1.5, C3.N(1,0,0)) |
1091 | - | local SOUNDPITCH = (Table.SoundPitch or nil) |
1091 | + | |
1092 | - | local SOUNDVOLUME = (Table.SoundVolume or nil) |
1092 | + | |
1093 | swait(5) | |
1094 | - | local PLAYSSOUND = false |
1094 | + | end |
1095 | - | local SOUND = nil |
1095 | + | |
1096 | - | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) |
1096 | + | Hum.AutoRotate = true |
1097 | - | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
1097 | + | Attack = false |
1098 | - | PLAYSSOUND = true |
1098 | + | NeutralAnims = true |
1099 | - | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
1099 | + | |
1100 | ||
1101 | - | EFFECT.Color = COLOR |
1101 | + | function Spectral_Banish() |
1102 | - | local MSH = nil |
1102 | + | Attack = true |
1103 | - | if TYPE == "Sphere" then |
1103 | + | Chat "If you desire to be a ghost.." |
1104 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
1104 | + | swait(120) |
1105 | - | elseif TYPE == "Block" then |
1105 | + | Chat "Then move on to the afterlife!" |
1106 | - | MSH = IT("BlockMesh",EFFECT) |
1106 | + | NeutralAnims = false |
1107 | - | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
1107 | + | Hum.AutoRotate = false |
1108 | - | elseif TYPE == "Wave" then |
1108 | + | for i = 0, 6, .1 do |
1109 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) |
1109 | + | swait() |
1110 | - | elseif TYPE == "Ring" then |
1110 | + | Turn(Mouse.Hit.p) |
1111 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
1111 | + | local Alpha = .15 |
1112 | - | elseif TYPE == "Slash" then |
1112 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.149688482, 0.00629410101, -0.0288102441, 0.908953488, -0.00262140064, -0.416884065, -7.05317973e-08, 0.99998033, -0.00628811028, 0.41689238, 0.00571563188, 0.908935547),Alpha) |
1113 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
1113 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.404874682, -0.991180301, -0.0352490693, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) |
1114 | - | elseif TYPE == "Round Slash" then |
1114 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.71690762, -0.991053104, 0.00471016858, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) |
1115 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
1115 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.26718163, 0.394917995, 0.30748421, 0.758522511, -0.65150404, 0.013650775, 0.563350797, 0.666130126, 0.488780826, -0.327535838, -0.363061011, 0.87229985),Alpha) |
1116 | - | elseif TYPE == "Swirl" then |
1116 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.46891451, 0.639140844, 0.117049158, 0.947687626, 0.107383646, 0.300595015, 0.195006967, -0.940317333, -0.278883517, 0.252707064, 0.322912514, -0.912067294),Alpha) |
1117 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
1117 | + | NK.C0 = clerp(NK.C0,CFrame.new(-0.232400328, 1.4423281, 0.0608692467, 0.612107515, -0.5404585, -0.577260137, 0.0609407648, 0.760062039, -0.646986902, 0.788422942, 0.360846847, 0.498175651),Alpha) |
1118 | - | elseif TYPE == "Skull" then |
1118 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110755987, -0.74960357, -0.415038228, -5.42402267e-06, -2.98023224e-07, 1.00000024, -0.500007331, 0.866021454, -2.48476863e-06, -0.866021395, -0.500007272, -4.7981739e-06),Alpha) |
1119 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
1119 | + | |
1120 | - | elseif TYPE == "Crystal" then |
1120 | + | for i = 0, .8, 0.1 do |
1121 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
1121 | + | swait() |
1122 | Turn(Mouse.Hit.p) | |
1123 | - | if MSH ~= nil then |
1123 | + | local Alpha = .3 |
1124 | - | local MOVESPEED = nil |
1124 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.149688482, 0.00629410101, -0.0288102441, 0.908953488, -0.00262140064, -0.416884065, -7.05317973e-08, 0.99998033, -0.00628811028, 0.41689238, 0.00571563188, 0.908935547),Alpha) |
1125 | - | if MOVEDIRECTION ~= nil then |
1125 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.404874682, -0.991180301, -0.0352490693, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) |
1126 | - | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
1126 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.71690762, -0.991053104, 0.00471016858, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) |
1127 | LS.C0 = clerp(LS.C0,CFrame.new(-1.26718163, 0.394917995, 0.30748421, 0.758522511, -0.65150404, 0.013650775, 0.563350797, 0.666130126, 0.488780826, -0.327535838, -0.363061011, 0.87229985),Alpha) | |
1128 | - | local GROWTH = SIZE - ENDSIZE |
1128 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.47921813, 0.661770463, 0.060773734, 0.947700858, 0.195051998, 0.252622485, 0.194988579, -0.980473101, 0.0255415048, 0.252671421, 0.0250527933, -0.967227817),Alpha) |
1129 | - | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
1129 | + | NK.C0 = clerp(NK.C0,CFrame.new(-0.232400328, 1.4423281, 0.0608692467, 0.612107515, -0.5404585, -0.577260137, 0.0609407648, 0.760062039, -0.646986902, 0.788422942, 0.360846847, 0.498175651),Alpha) |
1130 | - | if TYPE == "Block" then |
1130 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110747263, -0.749596298, -0.415039092, -1.66893005e-06, -5.14090061e-06, 1.00000012, -0.500009954, 0.866019845, 3.60608101e-06, -0.866019726, -0.500009894, -3.9935112e-06),Alpha) |
1131 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1131 | + | |
1132 | Sound(Barrel,238353911,M.RNG(7,13)/10,10,false,true,true) | |
1133 | - | EFFECT.CFrame = CFRAME |
1133 | + | Effect{ |
1134 | Effect='ResizeAndFade', | |
1135 | - | for LOOP = 1, TIME+1 do |
1135 | + | Frames=45, |
1136 | - | Swait() |
1136 | + | Size=V3.N(.1,.1,.1), |
1137 | - | MSH.Scale = MSH.Scale - GROWTH/TIME |
1137 | + | CFrame=Barrel.CFrame, |
1138 | - | if TYPE == "Wave" then |
1138 | + | Mesh ={MeshType=Enum.MeshType.Sphere}, |
1139 | - | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
1139 | + | Color=BrickColor.new'Really red', |
1140 | FXSettings={ | |
1141 | - | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
1141 | + | EndSize=V3.N(.05,.05,.05), |
1142 | - | if TYPE == "Block" then |
1142 | + | EndIsIncrement=true, |
1143 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1143 | + | } |
1144 | } | |
1145 | - | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
1145 | + | Effect{ |
1146 | Effect='ResizeAndFade', | |
1147 | - | if MOVEDIRECTION ~= nil then |
1147 | + | Frames=45, |
1148 | - | local ORI = EFFECT.Orientation |
1148 | + | Size=V3.N(.1,.1,.1), |
1149 | - | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
1149 | + | CFrame=Barrel.CFrame, |
1150 | - | EFFECT.Orientation = ORI |
1150 | + | Mesh ={MeshType=Enum.MeshType.Sphere}, |
1151 | Color=BrickColor.new'Really red', | |
1152 | FXSettings={ | |
1153 | - | if PLAYSSOUND == false then |
1153 | + | EndSize=V3.N(.1,.1,.1), |
1154 | - | EFFECT:remove() |
1154 | + | EndIsIncrement=true, |
1155 | } | |
1156 | - | SOUND.Stopped:Connect(function() |
1156 | + | } |
1157 | - | EFFECT:remove() |
1157 | + | for i = 1, 5 do |
1158 | local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)) | |
1159 | local cf = Barrel.CFrame | |
1160 | Effect{ | |
1161 | - | if PLAYSSOUND == false then |
1161 | + | Effect='ResizeAndFade', |
1162 | - | EFFECT:remove() |
1162 | + | Frames=65, |
1163 | Size=V3.N(.2,.2,1), | |
1164 | - | repeat Swait() until SOUND.Playing == false |
1164 | + | CFrame=CF.N(CF.N(cf.p)*angles*CF.N(0,0,-2).p,cf.p), |
1165 | - | EFFECT:remove() |
1165 | + | Mesh = {MeshType=Enum.MeshType.Sphere}, |
1166 | Material=Enum.Material.Neon, | |
1167 | Color=BrickColor.new'Really red', | |
1168 | MoveDirection=CF.N(CF.N(cf.p)*angles*CF.N(0,0,-25).p,cf.p).p, | |
1169 | FXSettings={ | |
1170 | EndSize=V3.N(.005,.005,.05), | |
1171 | - | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) |
1171 | + | EndIsIncrement=true, |
1172 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) |
1172 | + | } |
1173 | - | local mesh |
1173 | + | } |
1174 | - | if KIND == "Base" then |
1174 | + | |
1175 | - | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0)) |
1175 | + | Effect{ |
1176 | - | elseif KIND == "Thin" then |
1176 | + | Effect='Fade', |
1177 | - | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) |
1177 | + | Frames=35, |
1178 | - | elseif KIND == "Round" then |
1178 | + | Size=V3.N(.15,2048,.15), |
1179 | - | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) |
1179 | + | CFrame=CF.N(Barrel.CFrame.p)*CF.N(0,2048/2,0), |
1180 | Color=BrickColor.new'Really red', | |
1181 | - | wave.CFrame = CFRAME |
1181 | + | } |
1182 | - | coroutine.resume(coroutine.create(function(PART) |
1182 | + | for i = 0, .8, .1 do |
1183 | - | for i = 1, WAIT do |
1183 | + | swait() |
1184 | - | Swait() |
1184 | + | Turn(Mouse.Hit.p) |
1185 | - | mesh.Scale = mesh.Scale + GROW / 10 |
1185 | + | local Alpha = .15 |
1186 | - | wave.Transparency = wave.Transparency + 0.5 / WAIT |
1186 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.149688482, 0.00629410101, -0.0288102441, 0.908953488, -0.00262140064, -0.416884065, -7.05317973e-08, 0.99998033, -0.00628811028, 0.41689238, 0.00571563188, 0.908935547),Alpha) |
1187 | - | if wave.Transparency > 0.99 then |
1187 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.404874682, -0.991180301, -0.0352490693, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) |
1188 | - | wave:remove() |
1188 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.71690762, -0.991053104, 0.00471016858, 0.902334571, -7.05317973e-08, 0.4310323, -0.00271031447, 0.99998033, 0.00567401201, -0.431023717, -0.00628811028, 0.902316749),Alpha) |
1189 | LS.C0 = clerp(LS.C0,CFrame.new(-1.26718163, 0.394917995, 0.30748421, 0.758522511, -0.65150404, 0.013650775, 0.563350797, 0.666130126, 0.488780826, -0.327535838, -0.363061011, 0.87229985),Alpha) | |
1190 | RS.C0 = clerp(RS.C0,CFrame.new(1.46891451, 0.639140844, 0.117049158, 0.947687626, 0.107383646, 0.300595015, 0.195006967, -0.940317333, -0.278883517, 0.252707064, 0.322912514, -0.912067294),Alpha) | |
1191 | NK.C0 = clerp(NK.C0,CFrame.new(-0.232400328, 1.4423281, 0.0608692467, 0.612107515, -0.5404585, -0.577260137, 0.0609407648, 0.760062039, -0.646986902, 0.788422942, 0.360846847, 0.498175651),Alpha) | |
1192 | HW.C0 = clerp(HW.C0,CFrame.new(-0.110755987, -0.74960357, -0.415038228, -5.42402267e-06, -2.98023224e-07, 1.00000024, -0.500007331, 0.866021454, -2.48476863e-06, -0.866021395, -0.500007272, -4.7981739e-06),Alpha) | |
1193 | end | |
1194 | - | function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW) |
1194 | + | for _,v in next, S.Players:players() do |
1195 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) |
1195 | + | if(v.Character and v.Character:FindFirstChild'Head' and not v.Character.Parent)then |
1196 | - | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0)) |
1196 | + | pcall(function() |
1197 | - | wave.CFrame = CFRAME |
1197 | + | v.Character.Parent = workspace |
1198 | - | coroutine.resume(coroutine.create(function(PART) |
1198 | + | local tor = v.Character:FindFirstChild'Head' |
1199 | - | for i = 1, WAIT do |
1199 | + | Effect{ |
1200 | - | Swait() |
1200 | + | Effect='Fade', |
1201 | - | mesh.Scale = mesh.Scale + GROW |
1201 | + | Frames=15, |
1202 | - | if DOESROT == true then |
1202 | + | Size=V3.N(.15,2048,.15), |
1203 | - | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) |
1203 | + | CFrame=CF.N(tor.CFrame.p)*CF.N(0,2048/2,0), |
1204 | Color=BrickColor.new'Really red', | |
1205 | - | wave.Transparency = wave.Transparency + 0.5 / WAIT |
1205 | + | } |
1206 | - | if wave.Transparency > 0.99 then |
1206 | + | Effect{ |
1207 | - | wave:remove() |
1207 | + | Effect='ResizeAndFade', |
1208 | Frames=45, | |
1209 | Size=V3.N(.5,.5,.5), | |
1210 | CFrame=CF.N(tor.CFrame.p), | |
1211 | Mesh ={MeshType=Enum.MeshType.Sphere}, | |
1212 | - | function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW) |
1212 | + | Color=BrickColor.new'Really red', |
1213 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) |
1213 | + | FXSettings={ |
1214 | - | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0)) |
1214 | + | EndSize=V3.N(.05,.05,.05), |
1215 | - | wave.CFrame = CFRAME |
1215 | + | EndIsIncrement=true, |
1216 | - | coroutine.resume(coroutine.create(function(PART) |
1216 | + | } |
1217 | - | for i = 1, WAIT do |
1217 | + | } |
1218 | - | Swait() |
1218 | + | for i = 1, 5 do |
1219 | - | mesh.Scale = mesh.Scale + GROW |
1219 | + | Effect{ |
1220 | - | wave.Transparency = wave.Transparency + 1 / WAIT |
1220 | + | Effect='ResizeAndFade', |
1221 | - | if wave.Transparency > 0.99 then |
1221 | + | Frames=65, |
1222 | - | wave:remove() |
1222 | + | Size=V3.N(.2,.2,1), |
1223 | CFrame=CF.N(CF.N(tor.CFrame.p)*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))*CF.N(0,0,-2).p,tor.CFrame.p), | |
1224 | Mesh = {MeshType=Enum.MeshType.Sphere}, | |
1225 | Material=Enum.Material.Neon, | |
1226 | Color=BrickColor.new'Really red', | |
1227 | FXSettings={ | |
1228 | - | function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW) |
1228 | + | EndSize=V3.N(.005,.005,.05), |
1229 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) |
1229 | + | EndIsIncrement=true, |
1230 | - | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0)) |
1230 | + | } |
1231 | - | wave.CFrame = CFRAME |
1231 | + | } |
1232 | - | coroutine.resume(coroutine.create(function(PART) |
1232 | + | |
1233 | - | for i = 1, WAIT do |
1233 | + | local asd = v.Character; |
1234 | - | Swait() |
1234 | + | OnceWas(asd) |
1235 | - | mesh.Scale = mesh.Scale + GROW |
1235 | + | v.Character:destroy() |
1236 | - | wave.Transparency = wave.Transparency + 1 / WAIT |
1236 | + | BanishedEvents[v] = v.CharacterAdded:connect(function(c) |
1237 | - | if wave.Transparency > 0.99 then |
1237 | + | c:destroy() |
1238 | - | wave:remove() |
1238 | + | |
1239 | end) | |
1240 | end | |
1241 | end | |
1242 | Hum.AutoRotate = true | |
1243 | Attack = false | |
1244 | NeutralAnims = true | |
1245 | - | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) |
1245 | + | |
1246 | - | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) |
1246 | + | |
1247 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) |
1247 | + | function Teleport() |
1248 | - | MakeForm(Part,"Wedge") |
1248 | + | Attack = true |
1249 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) |
1249 | + | NeutralAnims = false |
1250 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) |
1250 | + | Hum.AutoRotate = false |
1251 | - | MakeForm(Part,"Wedge") |
1251 | + | |
1252 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) |
1252 | + | Turn(Mouse.Hit.p) |
1253 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) |
1253 | + | swait() |
1254 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1254 | + | local Alpha = .1 |
1255 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) |
1255 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.027945349, 0.0062955129, 0.00791542884, -4.65661287e-09, 0.00628571073, 0.99997133, -1.62185909e-08, 0.99998033, -0.00628576661, -0.999991417, -3.25962901e-09, -9.31322575e-10),Alpha) |
1256 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1256 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.513343155, -0.990872025, 0.0134561155, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1257 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) |
1257 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.504049361, -0.991316199, -0.037166521, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1258 | - | MakeForm(Part,"Cyl") |
1258 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.48807681, 0.583711386, -0.00375273079, 0.980986238, 0.193449557, 0.0156120034, -0.193565607, 0.981067359, 0.00628500059, -0.0141005944, -0.00918744504, 0.999858379),Alpha) |
1259 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1259 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.56039762, 0.53398639, -0.0236691795, 0.0156120034, -0.99157083, 0.128623411, 0.00628500059, -0.128539219, -0.991684735, 0.999858379, 0.0162905809, 0.00422526803),Alpha) |
1260 | - | for i = 1, 8 do |
1260 | + | NK.C0 = clerp(NK.C0,CFrame.new(0.0128910094, 1.4991622, 0.0185256526, -1.87195837e-07, 0.0574935488, -0.998337269, 0.0062853531, 0.998326361, 0.0574929118, 0.99997133, -0.00627500238, -0.00036155805),Alpha) |
1261 | - | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) |
1261 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110757828, -0.749616861, -0.415070713, 0, 0, 1, -0.500001788, 0.866024435, 0, -0.866024435, -0.500001788, 0),Alpha) |
1262 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) |
1262 | + | until not S.UserInputService:IsKeyDown(Enum.KeyCode.C) |
1263 | Sound(Barrel,238353911,M.RNG(7,13)/10,10,false,true,true) | |
1264 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) |
1264 | + | local pos,dist = Mouse.Hit.p,(Barrel.CFrame.p-Mouse.Hit.p).magnitude |
1265 | - | MakeForm(Part,"Cyl") |
1265 | + | Effect{ |
1266 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1266 | + | Effect='ResizeAndFade', |
1267 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) |
1267 | + | Frames=45, |
1268 | - | MakeForm(Part,"Ball") |
1268 | + | Size=V3.N(.1,.1,.1), |
1269 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1269 | + | CFrame=Barrel.CFrame, |
1270 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) |
1270 | + | Mesh ={MeshType=Enum.MeshType.Sphere}, |
1271 | - | MakeForm(Part,"Wedge") |
1271 | + | Color=BrickColor.new'Really red', |
1272 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) |
1272 | + | FXSettings={ |
1273 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) |
1273 | + | EndSize=V3.N(.05,.05,.05), |
1274 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1274 | + | EndIsIncrement=true, |
1275 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) |
1275 | + | } |
1276 | - | MakeForm(Part,"Cyl") |
1276 | + | } |
1277 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1277 | + | Effect{ |
1278 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) |
1278 | + | Effect='ResizeAndFade', |
1279 | - | MakeForm(Part,"Cyl") |
1279 | + | Frames=45, |
1280 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1280 | + | Size=V3.N(.1,.1,.1), |
1281 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) |
1281 | + | CFrame=Barrel.CFrame, |
1282 | - | MakeForm(Part,"Cyl") |
1282 | + | Mesh ={MeshType=Enum.MeshType.Sphere}, |
1283 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1283 | + | Color=BrickColor.new'Really red', |
1284 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) |
1284 | + | FXSettings={ |
1285 | - | MakeForm(Part,"Wedge") |
1285 | + | EndSize=V3.N(.1,.1,.1), |
1286 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) |
1286 | + | EndIsIncrement=true, |
1287 | - | local LASTPART = Handle |
1287 | + | } |
1288 | - | for i = 1, 10 do |
1288 | + | } |
1289 | - | if LASTPART == Handle then |
1289 | + | |
1290 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) |
1290 | + | Effect{ |
1291 | - | LASTPART = Part |
1291 | + | Effect='Fade', |
1292 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1292 | + | Frames=15, |
1293 | Size=V3.N(.15,.15,dist), | |
1294 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) |
1294 | + | CFrame=CF.N(Barrel.CFrame.p,pos)*CF.N(0,0,-dist/2), |
1295 | - | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) |
1295 | + | Color=BrickColor.new'Really red', |
1296 | - | LASTPART = Part |
1296 | + | } |
1297 | for i = 0, .3, .05 do | |
1298 | swait() | |
1299 | local Alpha = .3 | |
1300 | - | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) |
1300 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.027945349, 0.0062955129, 0.00791542884, -4.65661287e-09, 0.00628571073, 0.99997133, -1.62185909e-08, 0.99998033, -0.00628576661, -0.999991417, -3.25962901e-09, -9.31322575e-10),Alpha) |
1301 | - | MakeForm(Barrel,"Cyl") |
1301 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.513343155, -0.990872025, 0.0134561155, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1302 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1302 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.504049361, -0.991316199, -0.037166521, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1303 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) |
1303 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.48807681, 0.583711386, -0.00375273079, 0.980986238, 0.193449557, 0.0156120034, -0.193565607, 0.981067359, 0.00628500059, -0.0141005944, -0.00918744504, 0.999858379),Alpha) |
1304 | - | MakeForm(Part,"Cyl") |
1304 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.43598688, 0.64456445, -0.0224216785, 0.0156120034, -0.933606386, 0.357960403, 0.00628500059, -0.357905358, -0.933736861, 0.999858379, 0.0168272816, 0.000280098058),Alpha) |
1305 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) |
1305 | + | NK.C0 = clerp(NK.C0,CFrame.new(0.0128910094, 1.4991622, 0.0185256526, -1.87195837e-07, 0.0574935488, -0.998337269, 0.0062853531, 0.998326361, 0.0574929118, 0.99997133, -0.00627500238, -0.00036155805),Alpha) |
1306 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) |
1306 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110757828, -0.749611259, -0.415075362, 0, 0, 1, -0.500002265, 0.866024256, 0, -0.866024256, -0.500002265, 0),Alpha) |
1307 | - | MakeForm(Part,"Wedge") |
1307 | + | |
1308 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) |
1308 | + | OnceWas(Char,true) |
1309 | - | local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) |
1309 | + | Torso.CFrame = CF.N(pos)*CF.N(0,3,0) |
1310 | - | MakeForm(Hole2,"Cyl") |
1310 | + | for i = 1, 15 do |
1311 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0)) |
1311 | + | local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)) |
1312 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) |
1312 | + | local cf = Torso.CFrame |
1313 | - | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) |
1313 | + | Effect{ |
1314 | - | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) |
1314 | + | Effect='ResizeAndFade', |
1315 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) |
1315 | + | Frames=65, |
1316 | - | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) |
1316 | + | Size=V3.N(2,2,10), |
1317 | - | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) |
1317 | + | CFrame=CF.N(CF.N(cf.p)*angles*CF.N(0,0,-2).p,cf.p), |
1318 | - | coroutine.resume(coroutine.create(function() |
1318 | + | Mesh = {MeshType=Enum.MeshType.Sphere}, |
1319 | - | while wait() do |
1319 | + | Material=Enum.Material.Neon, |
1320 | - | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) |
1320 | + | Color=BrickColor.new'Really red', |
1321 | - | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) |
1321 | + | MoveDirection=CF.N(CF.N(cf.p)*angles*CF.N(0,0,-25).p,cf.p).p, |
1322 | FXSettings={ | |
1323 | - | end)) |
1323 | + | EndSize=V3.N(.005,.005,.05), |
1324 | EndIsIncrement=true, | |
1325 | - | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) |
1325 | + | } |
1326 | - | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) |
1326 | + | } |
1327 | end | |
1328 | - | for _, c in pairs(Weapon:GetDescendants()) do |
1328 | + | OnceWas(Char,true) |
1329 | - | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then |
1329 | + | for i = 0, .4, .05 do |
1330 | - | c.Material = "Glass" |
1330 | + | swait() |
1331 | - | c.Color = C3(0,0,0) |
1331 | + | local Alpha = .3 |
1332 | - | elseif c.ClassName == "Part" and c.Name == "Eye" then |
1332 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.027945349, 0.0062955129, 0.00791542884, -4.65661287e-09, 0.00628571073, 0.99997133, -1.62185909e-08, 0.99998033, -0.00628576661, -0.999991417, -3.25962901e-09, -9.31322575e-10),Alpha) |
1333 | - | c.Color = C3(1,0,0) |
1333 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.513343155, -0.990872025, 0.0134561155, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1334 | - | c.Material = "Neon" |
1334 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.504049361, -0.991316199, -0.037166521, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1335 | LS.C0 = clerp(LS.C0,CFrame.new(-1.48807681, 0.583711386, -0.00375273079, 0.980986238, 0.193449557, 0.0156120034, -0.193565607, 0.981067359, 0.00628500059, -0.0141005944, -0.00918744504, 0.999858379),Alpha) | |
1336 | RS.C0 = clerp(RS.C0,CFrame.new(1.56039762, 0.53398639, -0.0236691795, 0.0156120034, -0.99157083, 0.128623411, 0.00628500059, -0.128539219, -0.991684735, 0.999858379, 0.0162905809, 0.00422526803),Alpha) | |
1337 | NK.C0 = clerp(NK.C0,CFrame.new(0.0128910094, 1.4991622, 0.0185256526, -1.87195837e-07, 0.0574935488, -0.998337269, 0.0062853531, 0.998326361, 0.0574929118, 0.99997133, -0.00627500238, -0.00036155805),Alpha) | |
1338 | - | Weapon.Parent = Character |
1338 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110757828, -0.749616861, -0.415070713, 0, 0, 1, -0.500001788, 0.866024435, 0, -0.866024435, -0.500001788, 0),Alpha) |
1339 | - | for _, c in pairs(Weapon:GetChildren()) do |
1339 | + | |
1340 | - | if c.ClassName == "Part" then |
1340 | + | Attack = false |
1341 | - | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
1341 | + | NeutralAnims = true |
1342 | Hum.AutoRotate = true | |
1343 | end | |
1344 | ||
1345 | - | function ParticleEmitter(Table) |
1345 | + | function BGone() |
1346 | - | local PRTCL = Particle:Clone() |
1346 | + | Attack = true |
1347 | - | local Speed = Table.Speed or 5 |
1347 | + | NeutralAnims = false |
1348 | - | local Drag = Table.Drag or 0 |
1348 | + | Hum.AutoRotate = false |
1349 | - | local Size1 = Table.Size1 or 1 |
1349 | + | Chat "Be gone.." |
1350 | - | local Size2 = Table.Size2 or 5 |
1350 | + | --repeat |
1351 | - | local Lifetime1 = Table.Lifetime1 or 1 |
1351 | + | for i = 0, 9, .1 do |
1352 | - | local Lifetime2 = Table.Lifetime2 or 1.5 |
1352 | + | Turn(Mouse.Hit.p) |
1353 | - | local Parent = Table.Parent or Torso |
1353 | + | swait() |
1354 | - | local Emit = Table.Emit or 100 |
1354 | + | Hum.WalkSpeed = 0 |
1355 | - | local Offset = Table.Offset or 360 |
1355 | + | local Alpha = .1 |
1356 | - | local Acel = Table.Acel or VT(0,0,0) |
1356 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0296121463, -0.249109969, -0.153551444, -0.000328990631, -0.0094739655, -0.999952853, 0.204196915, 0.978885293, -0.0093415454, 0.978927732, -0.204190359, 0.0016125096),Alpha) |
1357 | - | local Enabled = Table.Enabled or false |
1357 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.475788742, -0.651965797, 0.0191618577, 0.978805363, 0.204197079, 0.0156120053, -0.204313993, 0.978885233, 0.00628500246, -0.0139989806, -0.0093415454, 0.999858379),Alpha) |
1358 | - | PRTCL.Parent = Parent |
1358 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.498535633, -0.912865818, 0.0149653442, 0.999878168, 5.14090061e-06, 0.0156120053, -0.000103279948, 0.999980271, 0.00628500246, -0.0156116625, -0.00628584996, 0.999858379),Alpha) |
1359 | - | PRTCL.Size = NumberSequence.new(Size1,Size2) |
1359 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.29815638, 0.566930115, -0.00661327224, -0.237626657, 0.971231222, 0.0156120053, -0.971307039, -0.237746239, 0.00628500246, 0.00981588662, -0.0136705656, 0.999858379),Alpha) |
1360 | - | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) |
1360 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.24513125, 0.449408412, -0.155189604, 0.502771139, -0.519900203, -0.690597773, 0.303394169, 0.854222655, -0.422203362, 0.809427798, 0.00274830475, 0.587213099),Alpha) |
1361 | - | PRTCL.Speed = NumberRange.new(Speed) |
1361 | + | NK.C0 = clerp(NK.C0,CFrame.new(-0.0153051838, 1.498806, -0.0364812165, 1.34855509e-06, 0.0477146953, 0.998861074, -0.00628432725, 0.998841345, -0.0477137454, -0.999980271, -0.00627710624, 0.000301202759),Alpha) |
1362 | - | PRTCL.VelocitySpread = Offset |
1362 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110760681, -0.749610901, -0.415069938, -1.63912773e-06, 9.19401646e-06, 1.00000024, -0.500005245, 0.866022348, -8.86109865e-06, -0.866022408, -0.500005245, 3.1888485e-06),Alpha) |
1363 | - | PRTCL.Drag = Drag |
1363 | + | |
1364 | - | PRTCL.Acceleration = Acel |
1364 | + | --until not S.UserInputService:IsKeyDown(Enum.KeyCode.V) |
1365 | - | if Enabled == false then |
1365 | + | |
1366 | - | PRTCL:Emit(Emit) |
1366 | + | for i = 0, .7, 0.1 do |
1367 | - | Debris:AddItem(PRTCL,Lifetime2) |
1367 | + | swait() |
1368 | Hum.WalkSpeed = 0 | |
1369 | - | PRTCL.Enabled = true |
1369 | + | local Alpha = .3 |
1370 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00766070001, -0.269241363, -0.0518192649, 0.00021806825, 0.00368537591, 0.99999094, -0.166544884, 0.9860273, -0.00359759619, -0.986031651, -0.166542619, 0.000828802586),Alpha) | |
1371 | - | return PRTCL |
1371 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.497863114, -0.984335184, 0.0215952508, 0.987798393, 0.154953942, 0.0156120034, -0.155066714, 0.987884164, 0.00628500665, -0.0144489631, -0.00862922147, 0.999858379),Alpha) |
1372 | RH.C0 = clerp(RH.C0,CFrame.new(0.462316692, -0.882526457, 0.015341443, 0.985910237, -0.166545048, 0.0156120034, 0.166465312, 0.9860273, 0.00628500665, -0.0164405983, -0.00359759573, 0.999858379),Alpha) | |
1373 | LS.C0 = clerp(LS.C0,CFrame.new(-1.34305215, 0.64557004, 0.206238627, 0.819938838, 0.417069167, 0.392114401, -0.412350535, 0.905431569, -0.100800663, -0.397073597, -0.0790382028, 0.914377153),Alpha) | |
1374 | - | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) |
1374 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.3656987, 0.557721138, -0.0314715505, 0.0156120034, -0.985910237, 0.166545048, 0.00628500665, -0.166465312, -0.9860273, 0.999858379, 0.0164405983, 0.00359759573),Alpha) |
1375 | - | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) |
1375 | + | NK.C0 = clerp(NK.C0,CFrame.new(0.0260951146, 1.49902618, -0.00289419782, -1.0067597e-06, 0.0574942529, -0.998345912, 0.00628517801, 0.998326182, 0.0574931316, 0.999980211, -0.00627472438, -0.000362364575),Alpha) |
1376 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) |
1376 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.11075601, -0.749610424, -0.415073156, 0, 0, 1, -0.500000238, 0.866025388, 0, -0.866025388, -0.500000238, 0),Alpha) |
1377 | - | MakeForm(Part,"Wedge") |
1377 | + | |
1378 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) |
1378 | + | |
1379 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) |
1379 | + | Sound(Barrel,238353911,M.RNG(7,13)/10,10,false,true,true) |
1380 | - | MakeForm(Part,"Wedge") |
1380 | + | Sound(Barrel,415700134,1.6,10,false,true,true) |
1381 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) |
1381 | + | Sound(Barrel,138677306,1.2,7,false,true,true) |
1382 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) |
1382 | + | coroutine.wrap(function() |
1383 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1383 | + | local cf = Root.CFrame * CF.N(0,0,-2) |
1384 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) |
1384 | + | for i = 1, 100 do |
1385 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1385 | + | Effect{ |
1386 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) |
1386 | + | Effect='ResizeAndFade', |
1387 | - | MakeForm(Part,"Cyl") |
1387 | + | CFrame = cf*CF.A(M.R(90),0,M.R(90)), |
1388 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1388 | + | Size=V3.N(2,5,5), |
1389 | - | for i = 1, 8 do |
1389 | + | Material=Enum.Material.Neon, |
1390 | - | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) |
1390 | + | Color=BrickColor.new'Crimson', |
1391 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) |
1391 | + | Shape='Cylinder', |
1392 | FXSettings={ | |
1393 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) |
1393 | + | EndSize=V3.N(0,.3,.3), |
1394 | - | MakeForm(Part,"Cyl") |
1394 | + | EndIsIncrement=true |
1395 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1395 | + | } |
1396 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) |
1396 | + | } |
1397 | - | MakeForm(Part,"Ball") |
1397 | + | for i = 1, 3 do |
1398 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1398 | + | local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)) |
1399 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) |
1399 | + | Effect{ |
1400 | - | MakeForm(Part,"Wedge") |
1400 | + | Effect='ResizeAndFade', |
1401 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) |
1401 | + | Frames=65, |
1402 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) |
1402 | + | Size=V3.N(1,1,1), |
1403 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1403 | + | CFrame=CF.N(CF.N(cf.p)*angles*CF.N(0,0,-10).p,cf.p), |
1404 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) |
1404 | + | Mesh = {MeshType=Enum.MeshType.Sphere}, |
1405 | - | MakeForm(Part,"Cyl") |
1405 | + | Material=Enum.Material.Neon, |
1406 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1406 | + | Color=BrickColor.new'Really red', |
1407 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) |
1407 | + | MoveDirection=CF.N(CF.N(cf.p)*angles*CF.N(0,0,-50).p,cf.p).p, |
1408 | - | MakeForm(Part,"Cyl") |
1408 | + | FXSettings={ |
1409 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1409 | + | EndSize=V3.N(0,0,.3), |
1410 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) |
1410 | + | EndIsIncrement=true, |
1411 | - | MakeForm(Part,"Cyl") |
1411 | + | } |
1412 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1412 | + | } |
1413 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) |
1413 | + | |
1414 | - | MakeForm(Part,"Wedge") |
1414 | + | AOEBanish(cf.p,8) |
1415 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) |
1415 | + | cf = cf*CF.N(0,0,-2) |
1416 | - | local LASTPART = Handle |
1416 | + | swait() |
1417 | - | for i = 1, 10 do |
1417 | + | |
1418 | - | if LASTPART == Handle then |
1418 | + | end)() |
1419 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) |
1419 | + | swait(30) |
1420 | - | LASTPART = Part |
1420 | + | Hum.WalkSpeed = 16 |
1421 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1421 | + | Attack = false |
1422 | NeutralAnims = true | |
1423 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) |
1423 | + | Hum.AutoRotate = true |
1424 | - | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) |
1424 | + | |
1425 | - | LASTPART = Part |
1425 | + | function Banisher_Bullet() |
1426 | Attack = true | |
1427 | NeutralAnims = false | |
1428 | Hum.AutoRotate = false | |
1429 | - | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) |
1429 | + | for i = 0, .4, .1/3 do |
1430 | - | MakeForm(Barrel,"Cyl") |
1430 | + | Turn(Mouse.Hit.p) |
1431 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1431 | + | swait() |
1432 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) |
1432 | + | local Alpha = .1 |
1433 | - | MakeForm(Part,"Cyl") |
1433 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.027945349, 0.0062955129, 0.00791542884, -4.65661287e-09, 0.00628571073, 0.99997133, -1.62185909e-08, 0.99998033, -0.00628576661, -0.999991417, -3.25962901e-09, -9.31322575e-10),Alpha) |
1434 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) |
1434 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.513343155, -0.990872025, 0.0134561155, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1435 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) |
1435 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.504049361, -0.991316199, -0.037166521, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1436 | - | MakeForm(Part,"Wedge") |
1436 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.48807681, 0.583711386, -0.00375273079, 0.980986238, 0.193449557, 0.0156120034, -0.193565607, 0.981067359, 0.00628500059, -0.0141005944, -0.00918744504, 0.999858379),Alpha) |
1437 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) |
1437 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.56039762, 0.53398639, -0.0236691795, 0.0156120034, -0.99157083, 0.128623411, 0.00628500059, -0.128539219, -0.991684735, 0.999858379, 0.0162905809, 0.00422526803),Alpha) |
1438 | - | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) |
1438 | + | NK.C0 = clerp(NK.C0,CFrame.new(0.0128910094, 1.4991622, 0.0185256526, -1.87195837e-07, 0.0574935488, -0.998337269, 0.0062853531, 0.998326361, 0.0574929118, 0.99997133, -0.00627500238, -0.00036155805),Alpha) |
1439 | - | MakeForm(Hole,"Cyl") |
1439 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110757828, -0.749616861, -0.415070713, 0, 0, 1, -0.500001788, 0.866024435, 0, -0.866024435, -0.500001788, 0),Alpha) |
1440 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) |
1440 | + | |
1441 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) |
1441 | + | |
1442 | - | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) |
1442 | + | for i = 0, .2, .1/3 do |
1443 | - | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) |
1443 | + | Turn(Mouse.Hit.p) |
1444 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) |
1444 | + | swait() |
1445 | - | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) |
1445 | + | local Alpha = .1 |
1446 | - | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) |
1446 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.027945349, 0.0062955129, 0.00791542884, -4.65661287e-09, 0.00628571073, 0.99997133, -1.62185909e-08, 0.99998033, -0.00628576661, -0.999991417, -3.25962901e-09, -9.31322575e-10),Alpha) |
1447 | - | coroutine.resume(coroutine.create(function() |
1447 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.513343155, -0.990872025, 0.0134561155, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1448 | - | while wait() do |
1448 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.504049361, -0.991316199, -0.037166521, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1449 | - | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) |
1449 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.48807681, 0.583711386, -0.00375273079, 0.980986238, 0.193449557, 0.0156120034, -0.193565607, 0.981067359, 0.00628500059, -0.0141005944, -0.00918744504, 0.999858379),Alpha) |
1450 | - | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) |
1450 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.43598688, 0.64456445, -0.0224216785, 0.0156120034, -0.933606386, 0.357960403, 0.00628500059, -0.357905358, -0.933736861, 0.999858379, 0.0168272816, 0.000280098058),Alpha) |
1451 | NK.C0 = clerp(NK.C0,CFrame.new(0.0128910094, 1.4991622, 0.0185256526, -1.87195837e-07, 0.0574935488, -0.998337269, 0.0062853531, 0.998326361, 0.0574929118, 0.99997133, -0.00627500238, -0.00036155805),Alpha) | |
1452 | - | end)) |
1452 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110757828, -0.749611259, -0.415075362, 0, 0, 1, -0.500002265, 0.866024256, 0, -0.866024256, -0.500002265, 0),Alpha) |
1453 | end | |
1454 | - | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) |
1454 | + | Sound(Barrel,238353911,M.RNG(7,13)/10,10,false,true,true) |
1455 | - | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) |
1455 | + | Shoot(Barrel.CFrame.p,Mouse.Hit.p) |
1456 | for i = 0, .3, .1/3 do | |
1457 | - | for _, c in pairs(Weapon:GetDescendants()) do |
1457 | + | swait() |
1458 | - | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then |
1458 | + | local Alpha = .1 |
1459 | - | c.Material = "Glass" |
1459 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.027945349, 0.0062955129, 0.00791542884, -4.65661287e-09, 0.00628571073, 0.99997133, -1.62185909e-08, 0.99998033, -0.00628576661, -0.999991417, -3.25962901e-09, -9.31322575e-10),Alpha) |
1460 | - | c.Color = C3(0,0,0) |
1460 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.513343155, -0.990872025, 0.0134561155, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1461 | - | elseif c.ClassName == "Part" and c.Name == "Eye" then |
1461 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.504049361, -0.991316199, -0.037166521, 0.999878228, 0, 0.0156120034, -9.81333942e-05, 0.99998033, 0.00628500059, -0.0156116933, -0.00628576661, 0.999858379),Alpha) |
1462 | - | c.Color = C3(1,0,0) |
1462 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.48807681, 0.583711386, -0.00375273079, 0.980986238, 0.193449557, 0.0156120034, -0.193565607, 0.981067359, 0.00628500059, -0.0141005944, -0.00918744504, 0.999858379),Alpha) |
1463 | - | c.Material = "Neon" |
1463 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.46904922, 0.532365739, -0.0222326554, 0.0156120034, -0.987360775, 0.157718793, 0.00628500059, -0.157637998, -0.987477064, 0.999858379, 0.0164077543, 0.00374451769),Alpha) |
1464 | NK.C0 = clerp(NK.C0,CFrame.new(0.0128910094, 1.4991622, 0.0185256526, -1.87195837e-07, 0.0574935488, -0.998337269, 0.0062853531, 0.998326361, 0.0574929118, 0.99997133, -0.00627500238, -0.00036155805),Alpha) | |
1465 | HW.C0 = clerp(HW.C0,CFrame.new(-0.110757828, -0.749605894, -0.415075004, 0, 0, 1, -0.50000155, 0.866024613, 0, -0.866024613, -0.50000149, 0),Alpha) | |
1466 | end | |
1467 | - | Weapon.Parent = Character |
1467 | + | until not S.UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) |
1468 | - | for _, c in pairs(Weapon:GetChildren()) do |
1468 | + | Hum.AutoRotate = true |
1469 | - | if c.ClassName == "Part" then |
1469 | + | Attack = false |
1470 | - | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
1470 | + | NeutralAnims = true |
1471 | end | |
1472 | ||
1473 | function Taunt() | |
1474 | - | local SKILLTEXTCOLOR = C3(1,0,0) |
1474 | + | Attack = true |
1475 | - | local SKILLFONT = "Antique" |
1475 | + | NeutralAnims = false |
1476 | - | local SKILLTEXTSIZE = 7 |
1476 | + | local taunt = 1 --M.RNG(1,3) |
1477 | if(taunt == 1)then | |
1478 | - | Humanoid.Died:connect(function() |
1478 | + | |
1479 | - | ATTACK = true |
1479 | + | local rad = 0 |
1480 | for i = 0, 6, 0.1 do | |
1481 | swait() | |
1482 | - | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") |
1482 | + | rad = rad + 35 |
1483 | - | --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") |
1483 | + | local Alpha = .3 |
1484 | - | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") |
1484 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(5.9524434e-13, 0.00629317388, 1.41309647e-06, 0.99999553, 9.4587449e-11, 0, -5.58664226e-12, 0.999980271, -0.00628617778, 9.31322575e-10, 0.00628615683, 0.99997592),Alpha) |
1485 | - | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") |
1485 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.500225782, -0.996483386, 0.0217089336, 0.994214952, 0.10624785, 0.0156119671, -0.106356524, 0.994308293, 0.00628523249, -0.014855314, -0.00790933147, 0.999856234),Alpha) |
1486 | - | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") |
1486 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.512264967, -0.996646643, 0.0152785685, 0.994214535, -0.106250875, 0.0156119233, 0.106164388, 0.994328737, 0.00628523249, -0.0161911994, -0.0045914636, 0.999856234),Alpha) |
1487 | - | ]] |
1487 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.44726694, 0.503729105, -0.00388534926, 0.993391156, 0.113691822, 0.0156119671, -0.113801189, 0.993483663, 0.00628523249, -0.0147956526, -0.00802037865, 0.999856234),Alpha) |
1488 | - | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") |
1488 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.41887283, 0.461011291, -0.0306870341, 0.0158389043, -0.994383454, -0.104623824, 0.00844715256, 0.104766518, -0.994461119, 0.999836862, 0.0148673952, 0.0100591201),Alpha) |
1489 | - | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") |
1489 | + | NK.C0 = clerp(NK.C0,CFrame.new(8.88854265e-06, 1.49895382, -0.0144050419, 0.566473544, 0.0473791771, -0.82271415, 0.00518015958, 0.99812144, 0.0610474497, 0.824061036, -0.0388435796, 0.56516397),Alpha) |
1490 | - | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") |
1490 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.11075747, -0.749606431, -0.415068656, -5.63569483e-06, -1.58343755e-06, 1.00000012, -0.500001132, 0.866024792, -1.44650403e-06, -0.866024852, -0.500001192, -5.67225288e-06)*CF.A(0,0,M.R(rad)),Alpha) |
1491 | - | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") |
1491 | + | |
1492 | - | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") |
1492 | + | Chat (TauntDialogues[M.RNG(1,#TauntDialogues)]) |
1493 | - | ]] |
1493 | + | for i = 0, 6, 0.1 do |
1494 | - | function printbye(Name) |
1494 | + | swait() |
1495 | - | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} |
1495 | + | local Alpha = .3 |
1496 | - | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") |
1496 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(5.9524434e-13, 0.00629317388, 1.41309647e-06, 0.99999553, 9.4587449e-11, 0, -5.58664226e-12, 0.999980271, -0.00628617778, 9.31322575e-10, 0.00628615683, 0.99997592),Alpha) |
1497 | LH.C0 = clerp(LH.C0,CFrame.new(-0.500225782, -0.996483386, 0.0217089336, 0.994214952, 0.10624785, 0.0156119671, -0.106356524, 0.994308293, 0.00628523249, -0.014855314, -0.00790933147, 0.999856234),Alpha) | |
1498 | RH.C0 = clerp(RH.C0,CFrame.new(0.512264967, -0.996646643, 0.0152785685, 0.994214535, -0.106250875, 0.0156119233, 0.106164388, 0.994328737, 0.00628523249, -0.0161911994, -0.0045914636, 0.999856234),Alpha) | |
1499 | - | workspace.ChildAdded:connect(function(instance) |
1499 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.44726694, 0.503729105, -0.00388534926, 0.993391156, 0.113691822, 0.0156119671, -0.113801189, 0.993483663, 0.00628523249, -0.0147956526, -0.00802037865, 0.999856234),Alpha) |
1500 | - | for BANISH = 1, #TOBANISH do |
1500 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.30098641, 0.458334863, -0.45630464, 0.97372508, 0.226236522, 0.0259280894, 0.00073058781, 0.110756524, -0.99384743, -0.227716282, 0.967752993, 0.10768114),Alpha) |
1501 | - | if TOBANISH[BANISH] ~= nil then |
1501 | + | NK.C0 = clerp(NK.C0,CFrame.new(8.21147114e-06, 1.49895406, -0.0144038275, 0.99988234, -0.000873879122, 0.0151748769, -9.55477299e-05, 0.997964978, 0.0637657493, -0.015199719, -0.0637597144, 0.997847497),Alpha) |
1502 | - | if instance.Name == TOBANISH[BANISH] then |
1502 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110763341, -0.749599576, -0.415068239, -6.5267086e-06, -2.71201134e-06, 1.00000012, -0.500001013, 0.866024971, -9.23871994e-07, -0.866024971, -0.500001013, -7.01099634e-06),Alpha) |
1503 | - | coroutine.resume(coroutine.create(function() |
1503 | + | |
1504 | - | printbye(instance.Name) |
1504 | + | |
1505 | - | instance:ClearAllChildren() |
1505 | + | Attack = false |
1506 | - | Debris:AddItem(instance,0.0005) |
1506 | + | NeutralAnims = true |
1507 | - | end)) |
1507 | + | |
1508 | ||
1509 | Mouse.KeyDown:connect(function(k) | |
1510 | if(Attack)then return end | |
1511 | if(k == 'x')then Show_Mercy() end | |
1512 | if(k == 'z')then Banishing_Storm() end | |
1513 | - | --//=================================\\ |
1513 | + | if(k == 'b')then Spectral_Banish() end |
1514 | - | --|| DAMAGING |
1514 | + | if(k == 'c')then Teleport() end |
1515 | - | --\\=================================// |
1515 | + | if(k == 'v')then BGone() end |
1516 | if(k == 't')then Taunt() end | |
1517 | - | function Banish(Foe) |
1517 | + | |
1518 | - | if Foe then |
1518 | + | |
1519 | - | coroutine.resume(coroutine.create(function() |
1519 | + | Mouse.Button1Down:connect(function() |
1520 | - | --if game.Players:FindFirstChild(Foe.Name) then |
1520 | + | if(Attack)then return end |
1521 | - | table.insert(TOBANISH,Foe.Name) |
1521 | + | Banisher_Bullet() |
1522 | - | printbye(Foe.Name) |
1522 | + | |
1523 | - | --end |
1523 | + | --// Wrap it all up \\-- |
1524 | - | Foe.Archivable = true |
1524 | + | |
1525 | - | local CLONE = Foe:Clone() |
1525 | + | Plr.Chatted:connect(function(m) |
1526 | - | Foe:Destroy() |
1526 | + | local succ,text = pcall(function() return game:service'Chat':FilterStringForBroadcast(m,Plr) end) |
1527 | - | CLONE.Parent = Effects |
1527 | + | if(not succ)then |
1528 | - | CLONE:BreakJoints() |
1528 | + | text = string.rep("_",#text) |
1529 | - | local MATERIALS = {"Glass","Neon"} |
1529 | + | |
1530 | - | for _, c in pairs(CLONE:GetDescendants()) do |
1530 | + | Chat(text) |
1531 | - | if c:IsA("BasePart") then |
1531 | + | |
1532 | - | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then |
1532 | + | |
1533 | - | CreateSound(340722848, c, 10, 1, false) |
1533 | + | swait() |
1534 | Sine = Sine + Change | |
1535 | - | c.Anchored = true |
1535 | + | --[[if(not Music or not Music.Parent)then |
1536 | - | c.Transparency = c.Transparency + 0.2 |
1536 | + | local a = Music.TimePosition |
1537 | - | c.Material = MATERIALS[MRANDOM(1,2)] |
1537 | + | Music = Sound(Char,MusicID,1,1,true,false,true) |
1538 | - | c.Color = C3(1,0,0) |
1538 | + | Music.Name = 'Music' |
1539 | - | if c.ClassName == "MeshPart" then |
1539 | + | Music.TimePosition = a |
1540 | - | c.TextureID = "" |
1540 | + | |
1541 | Music.Volume = 1 | |
1542 | - | if c:FindFirstChildOfClass("SpecialMesh") then |
1542 | + | Music.Pitch = 1 |
1543 | - | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
1543 | + | Music.Playing = true]] |
1544 | Sine = Sine + Change | |
1545 | - | if c:FindFirstChildOfClass("Decal") then |
1545 | + | local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * 4), Char) |
1546 | - | c:FindFirstChildOfClass("Decal"):remove() |
1546 | + | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) |
1547 | local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle") | |
1548 | - | c.Name = "Banished" |
1548 | + | if(State == 'Walk')then |
1549 | - | c.CanCollide = false |
1549 | + | local wsVal = 32 / (Hum.WalkSpeed/14) |
1550 | local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1) | |
1551 | - | c:remove() |
1551 | + | Change = 2 |
1552 | RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(25+45*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha) | |
1553 | LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(25-45*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha) | |
1554 | - | local A = false |
1554 | + | |
1555 | - | for i = 1, 35 do |
1555 | + | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1) |
1556 | - | if A == false then |
1556 | + | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1) |
1557 | - | A = true |
1557 | + | end |
1558 | - | elseif A == true then |
1558 | + | if(NeutralAnims)then |
1559 | - | A = false |
1559 | + | if(State == 'Idle')then |
1560 | Change = .5 | |
1561 | - | for _, c in pairs(CLONE:GetDescendants()) do |
1561 | + | local Alpha = .1 |
1562 | - | if c:IsA("BasePart") then |
1562 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(5.95311994e-13, 0.00629388914+.2*M.C(Sine/20), 1.41759301e-06, 0.99999553, 9.4587449e-11, 0, -5.58664226e-12, 0.999980271, -0.00628617778, 9.31322575e-10, 0.00628615683, 0.99997592),Alpha) |
1563 | - | c.Anchored = true |
1563 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.560905516, -0.984790266-.2*M.C(Sine/20), 0.0225828942, 0.997905374, 0.0627432317, 0.0156119671, -0.062847726, 0.998003423, 0.00628523249, -0.0151864393, -0.00725326827, 0.999856234),Alpha) |
1564 | - | c.Material = MATERIALS[MRANDOM(1,2)] |
1564 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.507978499, -0.98526901-.2*M.C(Sine/20), 0.0152739538, 0.995106399, -0.0975458771, 0.0156119671, 0.0974583924, 0.995219886, 0.00628523249, -0.016150441, -0.00473298226, 0.999856234),Alpha) |
1565 | - | c.Transparency = c.Transparency + 0.8/35 |
1565 | + | LS.C0 = clerp(LS.C0,CFrame.new(-0.997352481, 0.328557909+.1*M.C(Sine/20), 0.373372614, 0.726782799, -0.595508456, 0.342274755, 0.369578063, 0.759076476, 0.535924494, -0.578960299, -0.263003558, 0.771770597),Alpha) |
1566 | - | if A == false then |
1566 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.35597444, 0.402479589+.1*M.C(Sine/20), 0.0100756176, 0.788939416, -0.614269078, 0.0156119671, 0.614255786, 0.78908211, 0.00628523249, -0.0161799639, 0.00463105366, 0.999856234),Alpha) |
1567 | - | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
1567 | + | NK.C0 = clerp(NK.C0,CFrame.new(4.35163702e-06, 1.4989562, -0.0144046843, 0.99999553, 3.67523171e-07, -1.62050128e-07, -3.56434612e-07, 0.997964919, 0.0637686774, 1.8440187e-07, -0.0637684539, 0.997960329)*CF.A(M.R(-6*-M.C(Sine/20)),0,0),Alpha) |
1568 | - | elseif A == true then |
1568 | + | HW.C0 = clerp(HW.C0,CFrame.new(-0.110785089, -0.749598742, -0.415072441, 2.87592411e-06, 1.69873238e-06, 1.00000012, -0.500000358, 0.866025329, 0, -0.866025269, -0.500000358, 3.33799494e-06),Alpha) |
1569 | - | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
1569 | + | elseif(State == 'Walk')then |
1570 | local wsVal = 32 / (Hum.WalkSpeed/14) | |
1571 | local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1) | |
1572 | RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,0-.15*M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(0-15*M.S(Sine/wsVal)/2),0),Alpha) | |
1573 | - | Swait() |
1573 | + | NK.C0 = NK.C0:lerp(NKC0,Alpha) |
1574 | LH.C0 = LH.C0:lerp(LHC0,Alpha) | |
1575 | - | CLONE:remove() |
1575 | + | RH.C0 = RH.C0:lerp(RHC0,Alpha) |
1576 | - | end)) |
1576 | + | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha) |
1577 | RS.C0 = clerp(RS.C0,CFrame.new(1.35597444, 0.402479589, 0.0100756176, 0.788939416, -0.614269078, 0.0156119671, 0.614255786, 0.78908211, 0.00628523249, -0.0161799639, 0.00463105366, 0.999856234),Alpha) | |
1578 | elseif(State == 'Jump' or State == 'Fall')then | |
1579 | if(Walking)then | |
1580 | - | function ApplyAoE(POSITION,RANGE,ISBANISH) |
1580 | + | local Alpha = .1 |
1581 | - | local CHILDREN = workspace:GetDescendants() |
1581 | + | RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha) |
1582 | - | for index, CHILD in pairs(CHILDREN) do |
1582 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.497912645, -1.0987643, -0.0683324337, 0.999878228, 0.00860835519, 0.0130246133, -0.00010142161, 0.837816596, -0.545952022, -0.015611981, 0.545884132, 0.837715328),Alpha) |
1583 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1583 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.499978393, -1.16382337, 0.109293163, 0.999878228, -0.0120433727, 0.00993486121, -0.00010142161, 0.631323814, 0.775519371, -0.015611981, -0.775425911, 0.631245613),Alpha) |
1584 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1584 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha) |
1585 | - | if HUM then |
1585 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha) |
1586 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1586 | + | NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha) |
1587 | - | if TORSO then |
1587 | + | |
1588 | - | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1588 | + | local Alpha = .1 |
1589 | - | if ISBANISH == true then |
1589 | + | RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha) |
1590 | - | Banish(CHILD) |
1590 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.504374504, -0.291219354, -0.487436086, 0.999878228, -0.00438931212, 0.0149825988, -0.00010142161, 0.957819223, 0.287371844, -0.015611981, -0.287338346, 0.957701981),Alpha) |
1591 | RH.C0 = clerp(RH.C0,CFrame.new(0.453094482, -0.871358454, 0.0898642987, 0.985589385, -0.168456957, 0.0153662469, 0.162863791, 0.969548643, 0.182895929, -0.0457084104, -0.177757636, 0.983012319),Alpha) | |
1592 | - | if ISBANISH == "Gravity" then |
1592 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha) |
1593 | - | HUM.PlatformStand = true |
1593 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha) |
1594 | - | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then |
1594 | + | NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha) |
1595 | - | local grav = Instance.new("BodyPosition",TORSO) |
1595 | + | |
1596 | - | grav.D = 15 |
1596 | + | elseif(State == 'Paralyzed')then |
1597 | - | grav.P = 20000 |
1597 | + | -- paralyzed |
1598 | - | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
1598 | + | elseif(State == 'Sit')then |
1599 | - | grav.position = TORSO.Position |
1599 | + | -- sit |
1600 | - | grav.Name = "V3BanishForce"..Player.Name |
1600 | + | |
1601 | - | else |
1601 | + | |
1602 | - | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) |
1602 | + | end |