SHOW:
|
|
- or go back to the newest paste.
1 | - | warn'Nebby\'s Star Glitcher Loaded.' |
1 | + | --//====================================================\\-- |
2 | - | warn'All purpose switcher...' |
2 | + | --|| CREATED BY SHACKLUSTER |
3 | - | warn'Created by Noobygames12' |
3 | + | --\\====================================================//-- |
4 | - | warn'Edited by Nebula_Zorua' |
4 | + | |
5 | - | warn([[Icons: |
5 | + | |
6 | - | ! = New |
6 | + | |
7 | - | ? = Spoilers |
7 | + | local createstuff = function() |
8 | - | * = Exclusivity]]) |
8 | + | local stuff = Instance.new("Model") |
9 | - | print([[V 3.21 (ON PROGRESS) Update Log: |
9 | + | local collar = Instance.new("Part") |
10 | - | ! - Changed Judgement back to Justice |
10 | + | local mesh = Instance.new("FileMesh") |
11 | - | ! - Gave Divinity an attack named Judgement. Credit to XXUNORIB |
11 | + | local part = Instance.new("Part") |
12 | - | ! - Replaced Corruption with Glitchy |
12 | + | local mesh_2 = Instance.new("CylinderMesh") |
13 | - | ! - Fixed some bugs, too |
13 | + | local weld = Instance.new("ManualWeld") |
14 | - | ! - Changed Chaos's "B" (Chaos Begone) to a keystroke. (ddawas) |
14 | + | local eye = Instance.new("Part") |
15 | - | ]]) |
15 | + | local mesh_3 = Instance.new("SpecialMesh") |
16 | local decal = Instance.new("Decal") | |
17 | - | warn([[ |
17 | + | local hood = Instance.new("Part") |
18 | - | This ISN'T NebulaGlitcher. That is a seperate script, not an edit. |
18 | + | local mesh_4 = Instance.new("FileMesh") |
19 | - | ]]) |
19 | + | local pillar = Instance.new("Part") |
20 | local rock = Instance.new("Part") | |
21 | - | warn([[ |
21 | + | local core = Instance.new("Attachment") |
22 | - | CONTROLS - |
22 | + | local emit = Instance.new("ParticleEmitter") |
23 | - | >:C (MAYHEM) - Z (Like mayhem), M |
23 | + | local mesh_5 = Instance.new("FileMesh") |
24 | - | DANIEL (VIOLENCE) - Z (Like mayhem) |
24 | + | local rockspike = Instance.new("Part") |
25 | - | PURITY - Z |
25 | + | local mesh_6 = Instance.new("SpecialMesh") |
26 | - | GLITCHY (CORRUPTION) - Z |
26 | + | local core_2 = Instance.new("Attachment") |
27 | - | ??? - Z, M |
27 | + | local spinepart = Instance.new("Part") |
28 | - | INSANITY - Z |
28 | + | local mesh_7 = Instance.new("FileMesh") |
29 | - | DIVINITY - Z |
29 | + | local pants = Instance.new("Pants") |
30 | - | JUSTICE - Z, X |
30 | + | local shirt = Instance.new("Shirt") |
31 | - | LOKO - Z, U |
31 | + | local emit_2 = Instance.new("ParticleEmitter") |
32 | - | LOKASSO - Z, U (no difference except song) |
32 | + | local vortex = Instance.new("ParticleEmitter") |
33 | - | CALAMITY - Z (I borked it lol), X, M |
33 | + | local wave = Instance.new("ParticleEmitter") |
34 | - | CATASTROPHE - Z, M |
34 | + | |
35 | - | PIMBA - Z, M |
35 | + | stuff.Name = "Stuff" |
36 | stuff.Parent = workspace | |
37 | - | TO UNLOCK PIMBA'S M: Do the keystroke wwssadad |
37 | + | collar.Size = Vector3.new(2.06, 0.2, 2.06) |
38 | - | TO UNLOCK CALAMITY'S M: Do the keystroke wwaassdd |
38 | + | collar.Name = "Collar" |
39 | - | TO DO CHAOS'S KILL ALL: Do the keystroke DDAWAS |
39 | + | collar.Material = Enum.Material.Metal |
40 | - | ]]) |
40 | + | collar.TopSurface = Enum.SurfaceType.Smooth |
41 | collar.BottomSurface = Enum.SurfaceType.Smooth | |
42 | - | --- its obs smooth af do not touch |
42 | + | collar.Parent = stuff |
43 | - | ---- Sources and functions might be taken from others |
43 | + | collar.CFrame = CFrame.new(5.8, 46.2, -39.9) |
44 | - | plr = game:GetService("Players").LocalPlayer |
44 | + | mesh.MeshId = "rbxassetid://1861264141" |
45 | - | char = plr.Character |
45 | + | mesh.Parent = collar |
46 | - | hum = char:FindFirstChildOfClass'Humanoid' |
46 | + | part.Size = Vector3.new(1.3, 0.2, 1.3) |
47 | - | local cam = game.Workspace.CurrentCamera |
47 | + | part.BrickColor = BrickColor.new("White") |
48 | - | local Controller = plr.PlayerScripts:WaitForChild("ControlScript") |
48 | + | part.Color = Color3.new(0.109804, 0.0823529, 0.117647) |
49 | - | Camera = cam |
49 | + | part.Material = Enum.Material.Metal |
50 | - | local CamInterrupt = false |
50 | + | part.TopSurface = Enum.SurfaceType.Smooth |
51 | - | local TwoD = false |
51 | + | part.BottomSurface = Enum.SurfaceType.Smooth |
52 | - | local TargetInfo = {nil, nil} |
52 | + | part.Parent = collar |
53 | - | cam.CameraType = "Custom" |
53 | + | part.CFrame = CFrame.new(5.8, 46.2, -39.9) |
54 | - | t = char.Torso |
54 | + | mesh_2.Scale = Vector3.new(1.1, 1.1, 1.1) |
55 | - | h = char.Head |
55 | + | mesh_2.Parent = part |
56 | - | ra = char["Right Arm"] |
56 | + | weld.Part0 = collar |
57 | - | la = char["Left Arm"] |
57 | + | weld.Name = "Weld" |
58 | - | rl = char["Right Leg"] |
58 | + | weld.Part1 = part |
59 | - | ll = char["Left Leg"] |
59 | + | weld.Parent = collar |
60 | - | tors = char.Torso |
60 | + | eye.Anchored = true |
61 | - | lleg = char["Left Leg"] |
61 | + | eye.Size = Vector3.new(2, 2, 2) |
62 | - | root = char.HumanoidRootPart |
62 | + | eye.BottomSurface = Enum.SurfaceType.Smooth |
63 | - | hed = char.Head |
63 | + | eye.Material = Enum.Material.SmoothPlastic |
64 | - | rleg = char["Right Leg"] |
64 | + | eye.Color = Color3.new(0.972549, 0.972549, 0.972549) |
65 | - | rarm = char["Right Arm"] |
65 | + | eye.Name = "Eye" |
66 | - | larm = char["Left Arm"] |
66 | + | eye.TopSurface = Enum.SurfaceType.Smooth |
67 | - | radian = math.rad |
67 | + | eye.BrickColor = BrickColor.new("Institutional white") |
68 | - | random = math.random |
68 | + | eye.Parent = stuff |
69 | - | Vec3 = Vector3.new |
69 | + | eye.CFrame = CFrame.new(9.8, 45.845, -47.125) * CFrame.Angles(0, 0, 0) |
70 | - | Inst = Instance.new |
70 | + | mesh_3.MeshType = Enum.MeshType.Sphere |
71 | - | cFrame = CFrame.new |
71 | + | mesh_3.Parent = eye |
72 | - | Euler = CFrame.fromEulerAnglesXYZ |
72 | + | decal.Texture = "http://www.roblox.com/asset/?id=743271416" |
73 | - | vt = Vector3.new |
73 | + | decal.Parent = eye |
74 | - | bc = BrickColor.new |
74 | + | hood.Size = Vector3.new(2.919, 2.394, 2.891) |
75 | - | br = BrickColor.random |
75 | + | hood.BottomSurface = Enum.SurfaceType.Smooth |
76 | - | it = Instance.new |
76 | + | hood.Material = Enum.Material.SmoothPlastic |
77 | - | cf = CFrame.new |
77 | + | hood.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
78 | hood.BrickColor = BrickColor.new("White") | |
79 | - | local ODers = {} |
79 | + | hood.TopSurface = Enum.SurfaceType.Smooth |
80 | hood.Name = "Hood" | |
81 | - | local AllowRape = false; |
81 | + | hood.Parent = stuff |
82 | - | local AllowCata = false; |
82 | + | hood.CFrame = CFrame.new(9.8, 44.1, -48.7) |
83 | mesh_4.Scale = Vector3.new(1.55, 1.44, 1.4) | |
84 | - | local Booleans = { |
84 | + | mesh_4.MeshId = "rbxassetid://16952952" |
85 | - | CamFollow = true, |
85 | + | mesh_4.Parent = hood |
86 | - | GyroUse = true |
86 | + | pillar.Size = Vector3.new(30, 30, 30) |
87 | - | } |
87 | + | pillar.Name = "Pillar" |
88 | pillar.Material = Enum.Material.Metal | |
89 | - | function lerp(object, newCFrame, alpha) |
89 | + | pillar.TopSurface = Enum.SurfaceType.Smooth |
90 | - | return object:lerp(newCFrame, alpha) |
90 | + | pillar.BottomSurface = Enum.SurfaceType.Smooth |
91 | pillar.Parent = stuff | |
92 | pillar.CFrame = CFrame.new(-26.77, 0.5, -37.02) | |
93 | - | local Directer = Inst("BodyGyro", root) |
93 | + | rock.Size = Vector3.new(20.03, 10.978, 20.057) |
94 | - | Directer.MaxTorque = Vec3(0, 0, 0) |
94 | + | rock.BottomSurface = Enum.SurfaceType.Smooth |
95 | - | Directer.P = 600000 |
95 | + | rock.Name = "Rock" |
96 | - | local CPart = Inst("Part") |
96 | + | rock.TopSurface = Enum.SurfaceType.Smooth |
97 | - | CPart.Anchored = true |
97 | + | rock.Parent = stuff |
98 | - | CPart.CanCollide = false |
98 | + | rock.CFrame = CFrame.new(-0.43, 45.908, -52.56) |
99 | - | CPart.Locked = true |
99 | + | core.Name = "Core" |
100 | - | CPart.Transparency = 1 |
100 | + | core.Parent = rock |
101 | emit.Enabled = false | |
102 | - | local rainbowmode = false |
102 | + | emit.Lifetime = NumberRange.new(1, 4) |
103 | - | local chaosmode = false |
103 | + | emit.Name = "Emit" |
104 | - | local glitchymode = false |
104 | + | emit.Speed = NumberRange.new(0, 35) |
105 | - | kan = Instance.new("Sound",char) |
105 | + | emit.Rotation = NumberRange.new(0, 360) |
106 | - | kan.Volume = 1.25 |
106 | + | emit.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.037, 0.754), NumberSequenceKeypoint.new(0.067, 0), NumberSequenceKeypoint.new(1, 0)}) |
107 | - | kan.TimePosition = 0 |
107 | + | emit.VelocitySpread = 360 |
108 | - | kan.PlaybackSpeed = 1 |
108 | + | emit.Texture = "rbxassetid://281633012" |
109 | - | kan.Pitch = 1 |
109 | + | emit.Acceleration = Vector3.new(0, -15, 0) |
110 | - | kan.SoundId = "rbxassetid://1564523997" |
110 | + | emit.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118)) |
111 | - | kan.Name = "wrecked" |
111 | + | emit.RotSpeed = NumberRange.new(-25, 25) |
112 | - | kan.Looped = true |
112 | + | emit.SpreadAngle = Vector2.new(360, 360) |
113 | - | kan:Play() |
113 | + | emit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(0.255, 3.06), NumberSequenceKeypoint.new(0.649, 2.131), NumberSequenceKeypoint.new(1, 0)}) |
114 | emit.Parent = core | |
115 | - | local MID = "rbxassetid://1564523997"; |
115 | + | mesh_5.MeshId = "rbxassetid://1861108040" |
116 | - | local Pitch = 1; |
116 | + | mesh_5.Parent = rock |
117 | rockspike.Anchored = true | |
118 | - | function newTheme(ID,timepos,pitch,vol) |
118 | + | rockspike.Size = Vector3.new(30.364, 200, 30.364) |
119 | - | local kanz = kan |
119 | + | rockspike.BottomSurface = Enum.SurfaceType.Smooth |
120 | - | --kanz:Stop() |
120 | + | rockspike.Material = Enum.Material.Grass |
121 | - | --kanz.Volume = vol |
121 | + | rockspike.Color = Color3.new(0.423529, 0.345098, 0.294118) |
122 | - | --kanz.TimePosition = timepos |
122 | + | rockspike.Name = "RockSpike" |
123 | - | kanz.PlaybackSpeed = pitch |
123 | + | rockspike.TopSurface = Enum.SurfaceType.Smooth |
124 | - | kanz.Pitch = pitch |
124 | + | rockspike.BrickColor = BrickColor.new("Pine Cone") |
125 | - | kanz.SoundId = ID |
125 | + | rockspike.Parent = stuff |
126 | - | kanz.Name = "wrecked" |
126 | + | rockspike.CFrame = CFrame.new(-0.43, 46.208, -29.96) |
127 | - | kanz.Looped = true |
127 | + | mesh_6.TextureId = "rbxassetid://136560096" |
128 | - | Pitch = pitch |
128 | + | mesh_6.MeshType = Enum.MeshType.FileMesh |
129 | - | MID = ID |
129 | + | mesh_6.MeshId = "rbxassetid://1861231635" |
130 | - | --kanz:Play() |
130 | + | mesh_6.Parent = rockspike |
131 | - | --coroutine.resume(coroutine.create(function() |
131 | + | spinepart.CanCollide = false |
132 | - | --wait(0.05) |
132 | + | spinepart.Size = Vector3.new(0.3, 0.3, 0.6) |
133 | - | --end)) |
133 | + | spinepart.BrickColor = BrickColor.new("Institutional white") |
134 | spinepart.BottomSurface = Enum.SurfaceType.Smooth | |
135 | spinepart.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
136 | - | function newThemeCust(ID,timepos,pitch,vol) |
136 | + | spinepart.Name = "SpinePart" |
137 | - | local kanz = kan |
137 | + | spinepart.TopSurface = Enum.SurfaceType.Smooth |
138 | - | kanz:Stop() |
138 | + | spinepart.Parent = stuff |
139 | - | kanz.Volume = vol |
139 | + | spinepart.CFrame = CFrame.new(-24.33, 46.208, -52.56) |
140 | - | kanz.TimePosition = timepos |
140 | + | mesh_7.MeshId = "rbxassetid://1861166416" |
141 | - | kanz.PlaybackSpeed = pitch |
141 | + | mesh_7.Parent = spinepart |
142 | - | kanz.Pitch = pitch |
142 | + | pants.Name = "Pants" |
143 | - | MID = ID |
143 | + | pants.PantsTemplate = "http://www.roblox.com/asset/?id=" |
144 | - | kanz.SoundId = ID |
144 | + | pants.Parent = stuff |
145 | - | kanz.Name = "wrecked" |
145 | + | shirt.Name = "Shirt" |
146 | - | kanz.Looped = true |
146 | + | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=" |
147 | - | kanz:Play() |
147 | + | shirt.Parent = stuff |
148 | - | coroutine.resume(coroutine.create(function() |
148 | + | emit_2.Enabled = false |
149 | - | wait(0.05) |
149 | + | emit_2.Lifetime = NumberRange.new(1, 4) |
150 | - | end)) |
150 | + | emit_2.Name = "Emit" |
151 | emit_2.Speed = NumberRange.new(0, 35) | |
152 | emit_2.Rotation = NumberRange.new(0, 360) | |
153 | emit_2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.037, 0.754), NumberSequenceKeypoint.new(0.067, 0), NumberSequenceKeypoint.new(1, 0)}) | |
154 | emit_2.VelocitySpread = 360 | |
155 | - | function CameraShake(Times, Power, PlayerTarget) |
155 | + | emit_2.Texture = "rbxassetid://281633012" |
156 | - | coroutine.resume(coroutine.create(function() |
156 | + | emit_2.Acceleration = Vector3.new(0, -15, 0) |
157 | - | FV = Instance.new("BoolValue", PlayerTarget) |
157 | + | emit_2.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118)) |
158 | - | FV.Name = "CameraShake" |
158 | + | emit_2.RotSpeed = NumberRange.new(-25, 25) |
159 | - | for ShakeNum=1,Times do |
159 | + | emit_2.SpreadAngle = Vector2.new(360, 360) |
160 | - | swait() |
160 | + | emit_2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0.5), NumberSequenceKeypoint.new(1, 0)}) |
161 | - | local ef=Power |
161 | + | emit_2.Parent = stuff |
162 | - | if ef>=1 then |
162 | + | vortex.Enabled = false |
163 | - | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) |
163 | + | vortex.Name = "Vortex" |
164 | - | else |
164 | + | vortex.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.3, 0.5), NumberSequenceKeypoint.new(1, 0.5)}) |
165 | - | ef=Power*10 |
165 | + | vortex.Lifetime = NumberRange.new(1) |
166 | - | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) |
166 | + | vortex.Rate = 0 |
167 | - | end |
167 | + | vortex.Speed = NumberRange.new(0) |
168 | vortex.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118)) | |
169 | - | Humanoid.CameraOffset = Vector3.new(0,0,0) |
169 | + | vortex.Rotation = NumberRange.new(0, 360) |
170 | - | FV:Destroy() |
170 | + | vortex.ZOffset = -2 |
171 | - | end)) |
171 | + | vortex.RotSpeed = NumberRange.new(360) |
172 | vortex.LightEmission = 1 | |
173 | vortex.Texture = "rbxassetid://1084969997" | |
174 | - | function CameraEnshaking(Length,Intensity) |
174 | + | vortex.LockedToPart = true |
175 | - | coroutine.resume(coroutine.create(function() |
175 | + | vortex.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0)}) |
176 | - | local intensity = 1*Intensity |
176 | + | vortex.Parent = stuff |
177 | - | local rotM = 0.01*Intensity |
177 | + | wave.Enabled = false |
178 | - | for i = 0, Length, 0.1 do |
178 | + | wave.Lifetime = NumberRange.new(0.3) |
179 | - | swait() |
179 | + | wave.Name = "Wave" |
180 | - | intensity = intensity - 0.05*Intensity/Length |
180 | + | wave.Speed = NumberRange.new(0) |
181 | - | rotM = rotM - 0.0005*Intensity/Length |
181 | + | wave.LightEmission = 1 |
182 | - | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) |
182 | + | wave.Rate = 1 |
183 | - | cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM) |
183 | + | wave.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.17, 0.393), NumberSequenceKeypoint.new(0.334, 0.661), NumberSequenceKeypoint.new(0.535, 0.836), NumberSequenceKeypoint.new(1, 1)}) |
184 | wave.Texture = "rbxassetid://1084991215" | |
185 | - | Humanoid.CameraOffset = Vec3(0, 0, 0) |
185 | + | wave.Rotation = NumberRange.new(-180, 180) |
186 | - | end)) |
186 | + | wave.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0)}) |
187 | wave.ZOffset = 1 | |
188 | - | CamShake=function(Part,Distan,Power,Times) |
188 | + | wave.Parent = stuff |
189 | - | local de=Part.Position |
189 | + | for i,v in pairs(stuff:GetChildren()) do |
190 | - | for i,v in pairs(workspace:children()) do |
190 | + | v.Parent = script |
191 | - | if v:IsA("Model") and v:findFirstChild("Humanoid") then |
191 | + | |
192 | - | for _,c in pairs(v:children()) do |
192 | + | |
193 | - | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then |
193 | + | |
194 | - | local Noob=vFindFirstChildOfClass'Humanoid' |
194 | + | createstuff() |
195 | - | if Noob~=nil then |
195 | + | |
196 | - | coroutine.resume(coroutine.create(function() |
196 | + | |
197 | - | FV = Instance.new("BoolValue", Noob) |
197 | + | |
198 | - | FV.Name = "CameraShake" |
198 | + | |
199 | - | for ShakeNum=1,Times do |
199 | + | |
200 | - | swait() |
200 | + | wait(0.2) |
201 | - | local ef=Power |
201 | + | |
202 | - | if ef>=1 then |
202 | + | Player = game:GetService("Players").LocalPlayer |
203 | - | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) |
203 | + | PlayerGui = Player.PlayerGui |
204 | - | else |
204 | + | Cam = workspace.CurrentCamera |
205 | - | ef=Power*10 |
205 | + | Backpack = Player.Backpack |
206 | - | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) |
206 | + | Character = Player.Character |
207 | - | end |
207 | + | Humanoid = Character.Humanoid |
208 | Mouse = Player:GetMouse() | |
209 | - | Humanoid.CameraOffset = Vector3.new(0,0,0) |
209 | + | RootPart = Character["HumanoidRootPart"] |
210 | - | FV:Destroy() |
210 | + | Torso = Character["Torso"] |
211 | - | end)) |
211 | + | Head = Character["Head"] |
212 | - | CameraShake(Times, Power, Noob) |
212 | + | RightArm = Character["Right Arm"] |
213 | LeftArm = Character["Left Arm"] | |
214 | RightLeg = Character["Right Leg"] | |
215 | LeftLeg = Character["Left Leg"] | |
216 | RootJoint = RootPart["RootJoint"] | |
217 | Neck = Torso["Neck"] | |
218 | RightShoulder = Torso["Right Shoulder"] | |
219 | LeftShoulder = Torso["Left Shoulder"] | |
220 | - | function chatfunc(text,color) |
220 | + | RightHip = Torso["Right Hip"] |
221 | - | local chat = coroutine.wrap(function() |
221 | + | LeftHip = Torso["Left Hip"] |
222 | - | if Character:FindFirstChild("TalkingBillBoard")~= nil then |
222 | + | |
223 | - | Character:FindFirstChild("TalkingBillBoard"):destroy() |
223 | + | IT = Instance.new |
224 | CF = CFrame.new | |
225 | - | local naeeym2 = Instance.new("BillboardGui",Character) |
225 | + | VT = Vector3.new |
226 | - | naeeym2.Size = UDim2.new(0,100,0,40) |
226 | + | RAD = math.rad |
227 | - | naeeym2.StudsOffset = Vector3.new(0,3,0) |
227 | + | C3 = Color3.new |
228 | - | naeeym2.Adornee = Character.Head |
228 | + | UD2 = UDim2.new |
229 | - | naeeym2.Name = "TalkingBillBoard" |
229 | + | BRICKC = BrickColor.new |
230 | - | local tecks2 = Instance.new("TextLabel",naeeym2) |
230 | + | ANGLES = CFrame.Angles |
231 | - | tecks2.BackgroundTransparency = 1 |
231 | + | EULER = CFrame.fromEulerAnglesXYZ |
232 | - | tecks2.BorderSizePixel = 0 |
232 | + | COS = math.cos |
233 | - | tecks2.Text = "" |
233 | + | ACOS = math.acos |
234 | - | tecks2.Font = "SciFi" |
234 | + | SIN = math.sin |
235 | - | tecks2.TextSize = 30 |
235 | + | ASIN = math.asin |
236 | - | tecks2.TextStrokeTransparency = 0 |
236 | + | ABS = math.abs |
237 | - | tecks2.TextColor3 = color |
237 | + | MRANDOM = math.random |
238 | - | tecks2.TextStrokeColor3 = Color3.new(0,0,0) |
238 | + | FLOOR = math.floor |
239 | - | tecks2.Size = UDim2.new(1,0,0.5,0) |
239 | + | |
240 | - | local tecks3 = Instance.new("TextLabel",naeeym2) |
240 | + | --//=================================\\ |
241 | - | tecks3.BackgroundTransparency = 1 |
241 | + | --|| USEFUL VALUES |
242 | - | tecks3.BorderSizePixel = 0 |
242 | + | --\\=================================// |
243 | - | tecks3.Text = "" |
243 | + | |
244 | - | tecks3.Font = "SciFi" |
244 | + | Animation_Speed = 3 |
245 | - | tecks3.TextSize = 30 |
245 | + | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) |
246 | - | tecks3.TextStrokeTransparency = 0 |
246 | + | local Speed = 35 |
247 | - | tecks3.TextColor3 = Color3.new(0,0,0) |
247 | + | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
248 | - | tecks3.TextStrokeColor3 = color |
248 | + | local NECKC0 = CF(0, 1.75, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
249 | - | tecks3.Size = UDim2.new(1,0,0.5,0) |
249 | + | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
250 | - | coroutine.resume(coroutine.create(function() |
250 | + | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) |
251 | local DAMAGEMULTIPLIER = 1 | |
252 | - | swait(1) |
252 | + | local ANIM = "Idle" |
253 | - | if chaosmode == true then |
253 | + | local ATTACK = false |
254 | - | tecks2.TextColor3 = BrickColor.random().Color |
254 | + | local EQUIPPED = false |
255 | - | tecks3.TextStrokeColor3 = BrickColor.random().Color |
255 | + | local HOLD = false |
256 | local COMBO = 1 | |
257 | - | if(glitchymode)then |
257 | + | local Rooted = false |
258 | - | local val = math.random(1,255) |
258 | + | local SINE = 0 |
259 | - | local color = Color3.fromRGB(val,val,val) |
259 | + | local KEYHOLD = false |
260 | - | tecks2.TextColor3 = color |
260 | + | local CHANGE = 2 / Animation_Speed |
261 | - | tecks3.TextStrokeColor3 = color |
261 | + | local WALKINGANIM = false |
262 | local VALUE1 = false | |
263 | - | tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) |
263 | + | local VALUE2 = false |
264 | - | tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) |
264 | + | local ROBLOXIDLEANIMATION = IT("Animation") |
265 | - | tecks2.Rotation = math.random(-5,5) |
265 | + | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" |
266 | - | tecks3.Rotation = math.random(-5,5) |
266 | + | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=" |
267 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
268 | - | end)) |
268 | + | local WEAPONGUI = IT("ScreenGui", PlayerGui) |
269 | - | for i = 1,string.len(text),1 do |
269 | + | WEAPONGUI.Name = "Weapon GUI" |
270 | - | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115) |
270 | + | local Effects = IT("Folder", Character) |
271 | - | tecks2.Text = string.sub(text,1,i) |
271 | + | Effects.Name = "Effects" |
272 | - | tecks3.Text = string.sub(text,1,i) |
272 | + | local ANIMATOR = Humanoid.Animator |
273 | - | swait(1) |
273 | + | local ANIMATE = Character.Animate |
274 | local UNANCHOR = true | |
275 | - | wait(1) |
275 | + | local PLAYSONG = true |
276 | - | local randomrot = math.random(1,2) |
276 | + | local EXTRATRANS = 0 |
277 | - | if randomrot == 1 then |
277 | + | |
278 | - | for i = 1, 50 do |
278 | + | --//=================================\\ |
279 | - | swait() |
279 | + | --\\=================================// |
280 | - | tecks2.Rotation = tecks2.Rotation - .75 |
280 | + | |
281 | - | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 |
281 | + | |
282 | - | tecks2.TextTransparency = tecks2.TextTransparency + .04 |
282 | + | --//=================================\\ |
283 | - | tecks3.Rotation = tecks2.Rotation + .75 |
283 | + | --|| SAZERENOS' ARTIFICIAL HEARTBEAT |
284 | - | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 |
284 | + | --\\=================================// |
285 | - | tecks3.TextTransparency = tecks2.TextTransparency + .04 |
285 | + | |
286 | ArtificialHB = Instance.new("BindableEvent", script) | |
287 | - | elseif randomrot == 2 then |
287 | + | ArtificialHB.Name = "ArtificialHB" |
288 | ||
289 | - | swait() |
289 | + | script:WaitForChild("ArtificialHB") |
290 | - | tecks2.Rotation = tecks2.Rotation + .75 |
290 | + | |
291 | - | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 |
291 | + | frame = Frame_Speed |
292 | - | tecks2.TextTransparency = tecks2.TextTransparency + .04 |
292 | + | tf = 0 |
293 | - | tecks3.Rotation = tecks2.Rotation - .75 |
293 | + | allowframeloss = false |
294 | - | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 |
294 | + | tossremainder = false |
295 | - | tecks3.TextTransparency = tecks2.TextTransparency + .04 |
295 | + | lastframe = tick() |
296 | script.ArtificialHB:Fire() | |
297 | ||
298 | - | naeeym2:Destroy() |
298 | + | |
299 | tf = tf + s | |
300 | - | chat() |
300 | + | |
301 | if allowframeloss then | |
302 | script.ArtificialHB:Fire() | |
303 | lastframe = tick() | |
304 | - | local Create = LoadLibrary("RbxUtility").Create |
304 | + | |
305 | for i = 1, math.floor(tf / frame) do | |
306 | - | CFuncs = { |
306 | + | script.ArtificialHB:Fire() |
307 | - | ["Part"] = { |
307 | + | |
308 | - | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) |
308 | + | lastframe = tick() |
309 | - | local Part = Create("Part"){ |
309 | + | |
310 | - | Parent = Parent, |
310 | + | |
311 | - | Reflectance = Reflectance, |
311 | + | |
312 | - | Transparency = Transparency, |
312 | + | |
313 | - | CanCollide = false, |
313 | + | |
314 | - | Locked = true, |
314 | + | |
315 | - | BrickColor = BrickColor.new(tostring(BColor)), |
315 | + | |
316 | - | Name = Name, |
316 | + | |
317 | - | Size = Size, |
317 | + | |
318 | - | Material = Material, |
318 | + | --//=================================\\ |
319 | - | } |
319 | + | --\\=================================// |
320 | - | RemoveOutlines(Part) |
320 | + | |
321 | - | return Part |
321 | + | --//=================================\\ |
322 | - | end; |
322 | + | --|| SOME FUNCTIONS |
323 | - | }; |
323 | + | --\\=================================// |
324 | ||
325 | - | ["Mesh"] = { |
325 | + | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) |
326 | - | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
326 | + | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
327 | - | local Msh = Create(Mesh){ |
327 | + | |
328 | - | Parent = Part, |
328 | + | |
329 | - | Offset = OffSet, |
329 | + | function PositiveAngle(NUMBER) |
330 | - | Scale = Scale, |
330 | + | if NUMBER >= 0 then |
331 | - | } |
331 | + | NUMBER = 0 |
332 | - | if Mesh == "SpecialMesh" then |
332 | + | |
333 | - | Msh.MeshType = MeshType |
333 | + | return NUMBER |
334 | - | Msh.MeshId = MeshId |
334 | + | |
335 | ||
336 | - | return Msh |
336 | + | function NegativeAngle(NUMBER) |
337 | - | end; |
337 | + | if NUMBER <= 0 then |
338 | - | }; |
338 | + | NUMBER = 0 |
339 | end | |
340 | - | ["Mesh"] = { |
340 | + | return NUMBER |
341 | - | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
341 | + | |
342 | - | local Msh = Create(Mesh){ |
342 | + | |
343 | - | Parent = Part, |
343 | + | function Swait(NUMBER) |
344 | - | Offset = OffSet, |
344 | + | if NUMBER == 0 or NUMBER == nil then |
345 | - | Scale = Scale, |
345 | + | |
346 | - | } |
346 | + | |
347 | - | if Mesh == "SpecialMesh" then |
347 | + | for i = 1, NUMBER do |
348 | - | Msh.MeshType = MeshType |
348 | + | |
349 | - | Msh.MeshId = MeshId |
349 | + | |
350 | end | |
351 | - | return Msh |
351 | + | |
352 | - | end; |
352 | + | |
353 | - | }; |
353 | + | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) |
354 | local NEWMESH = IT(MESH) | |
355 | - | ["Weld"] = { |
355 | + | if MESH == "SpecialMesh" then |
356 | - | Create = function(Parent, Part0, Part1, C0, C1) |
356 | + | NEWMESH.MeshType = MESHTYPE |
357 | - | local Weld = Create("Weld"){ |
357 | + | if MESHID ~= "nil" and MESHID ~= "" then |
358 | - | Parent = Parent, |
358 | + | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
359 | - | Part0 = Part0, |
359 | + | |
360 | - | Part1 = Part1, |
360 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
361 | - | C0 = C0, |
361 | + | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
362 | - | C1 = C1, |
362 | + | |
363 | - | } |
363 | + | |
364 | - | return Weld |
364 | + | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
365 | - | end; |
365 | + | NEWMESH.Scale = SCALE |
366 | - | }; |
366 | + | NEWMESH.Parent = PARENT |
367 | return NEWMESH | |
368 | - | ["Sound"] = { |
368 | + | |
369 | - | Create = function(id, par, vol, pit) |
369 | + | |
370 | - | return coroutine.wrap(function() |
370 | + | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) |
371 | - | local S = Create("Sound"){ |
371 | + | local NEWPART = IT("Part") |
372 | - | Volume = vol, |
372 | + | NEWPART.formFactor = FORMFACTOR |
373 | - | Name = "EffectSoundo", |
373 | + | NEWPART.Reflectance = REFLECTANCE |
374 | - | Pitch = pit or 1, |
374 | + | NEWPART.Transparency = TRANSPARENCY |
375 | - | SoundId = id, |
375 | + | NEWPART.CanCollide = false |
376 | - | Parent = par or workspace, |
376 | + | NEWPART.Locked = true |
377 | - | } |
377 | + | NEWPART.Anchored = true |
378 | - | S:Play() |
378 | + | if ANCHOR == false then |
379 | - | S.Ended:connect(function() |
379 | + | NEWPART.Anchored = false |
380 | - | S:Destroy() |
380 | + | |
381 | - | end) |
381 | + | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
382 | - | return S; |
382 | + | NEWPART.Name = NAME |
383 | - | end)() |
383 | + | NEWPART.Size = SIZE |
384 | - | end; |
384 | + | NEWPART.Position = Torso.Position |
385 | - | }; |
385 | + | NEWPART.Material = MATERIAL |
386 | NEWPART:BreakJoints() | |
387 | - | ["LongSound"] = { |
387 | + | NEWPART.Parent = PARENT |
388 | - | Create = function(id, par, vol, pit) |
388 | + | return NEWPART |
389 | end | |
390 | - | local S = Create("Sound"){ |
390 | + | |
391 | - | Volume = vol, |
391 | + | local function weldBetween(a, b) |
392 | - | Pitch = pit or 1, |
392 | + | local weldd = Instance.new("ManualWeld") |
393 | - | SoundId = id, |
393 | + | weldd.Part0 = a |
394 | - | Parent = par or workspace, |
394 | + | weldd.Part1 = b |
395 | - | } |
395 | + | weldd.C0 = CFrame.new() |
396 | - | wait() |
396 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
397 | - | S:play() |
397 | + | weldd.Parent = a |
398 | - | game:GetService("Debris"):AddItem(S, 30) |
398 | + | return weldd |
399 | end | |
400 | - | end; |
400 | + | |
401 | - | }; |
401 | + | |
402 | function QuaternionFromCFrame(cf) | |
403 | - | ["ParticleEmitter"] = { |
403 | + | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
404 | - | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) |
404 | + | local trace = m00 + m11 + m22 |
405 | - | local fp = Create("ParticleEmitter"){ |
405 | + | if trace > 0 then |
406 | - | Parent = Parent, |
406 | + | local s = math.sqrt(1 + trace) |
407 | - | Color = ColorSequence.new(Color1, Color2), |
407 | + | local recip = 0.5 / s |
408 | - | LightEmission = LightEmission, |
408 | + | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
409 | - | Size = Size, |
409 | + | |
410 | - | Texture = Texture, |
410 | + | local i = 0 |
411 | - | Transparency = Transparency, |
411 | + | if m11 > m00 then |
412 | - | ZOffset = ZOffset, |
412 | + | i = 1 |
413 | - | Acceleration = Accel, |
413 | + | |
414 | - | Drag = Drag, |
414 | + | if m22 > (i == 0 and m00 or m11) then |
415 | - | LockedToPart = LockedToPart, |
415 | + | i = 2 |
416 | - | VelocityInheritance = VelocityInheritance, |
416 | + | |
417 | - | EmissionDirection = EmissionDirection, |
417 | + | if i == 0 then |
418 | - | Enabled = Enabled, |
418 | + | local s = math.sqrt(m00 - m11 - m22 + 1) |
419 | - | Lifetime = LifeTime, |
419 | + | local recip = 0.5 / s |
420 | - | Rate = Rate, |
420 | + | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
421 | - | Rotation = Rotation, |
421 | + | elseif i == 1 then |
422 | - | RotSpeed = RotSpeed, |
422 | + | local s = math.sqrt(m11 - m22 - m00 + 1) |
423 | - | Speed = Speed, |
423 | + | local recip = 0.5 / s |
424 | - | VelocitySpread = VelocitySpread, |
424 | + | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
425 | - | } |
425 | + | elseif i == 2 then |
426 | - | return fp |
426 | + | local s = math.sqrt(m22 - m00 - m11 + 1) |
427 | - | end; |
427 | + | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
428 | - | }; |
428 | + | |
429 | end | |
430 | - | CreateTemplate = { |
430 | + | |
431 | ||
432 | - | }; |
432 | + | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
433 | - | } |
433 | + | local xs, ys, zs = x + x, y + y, z + z |
434 | local wx, wy, wz = w * xs, w * ys, w * zs | |
435 | local xx = x * xs | |
436 | local xy = x * ys | |
437 | - | New = function(Object, Parent, Name, Data) |
437 | + | local xz = x * zs |
438 | - | local Object = Instance.new(Object) |
438 | + | local yy = y * ys |
439 | - | for Index, Value in pairs(Data or {}) do |
439 | + | local yz = y * zs |
440 | - | Object[Index] = Value |
440 | + | local zz = z * zs |
441 | 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)) | |
442 | - | Object.Parent = Parent |
442 | + | |
443 | - | Object.Name = Name |
443 | + | |
444 | - | return Object |
444 | + | function QuaternionSlerp(a, b, t) |
445 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
446 | - | local halocolor = BrickColor.new("Pastel light blue") |
446 | + | local startInterp, finishInterp; |
447 | - | local halocolor2 = BrickColor.new("Cool yellow") |
447 | + | if cosTheta >= 0.0001 then |
448 | - | local starcolor = BrickColor.new("Bright yellow") |
448 | + | if (1 - cosTheta) > 0.0001 then |
449 | - | local lunacolor = BrickColor.new("Navy blue") |
449 | + | local theta = ACOS(cosTheta) |
450 | - | local lunacolor2 = BrickColor.new("Bright blue") |
450 | + | local invSinTheta = 1 / SIN(theta) |
451 | - | local wepcolor = BrickColor.new("Really black") |
451 | + | startInterp = SIN((1 - t) * theta) * invSinTheta |
452 | - | local maincolor = BrickColor.new("Really black") |
452 | + | finishInterp = SIN(t * theta) * invSinTheta |
453 | - | local m = Instance.new("Model",char) |
453 | + | |
454 | - | local m2 = Instance.new("Model",char) |
454 | + | startInterp = 1 - t |
455 | - | local m3 = Instance.new("Model",char) |
455 | + | finishInterp = t |
456 | - | local mw1 = Instance.new("Model",char) |
456 | + | |
457 | - | local mw2 = Instance.new("Model",char) |
457 | + | |
458 | if (1 + cosTheta) > 0.0001 then | |
459 | - | local extrawingmod1 = Instance.new("Model",char) |
459 | + | local theta = ACOS(-cosTheta) |
460 | - | local extrawingmod2 = Instance.new("Model",char) |
460 | + | local invSinTheta = 1 / SIN(theta) |
461 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
462 | - | function CreateParta(parent,transparency,reflectance,material,brickcolor) |
462 | + | finishInterp = SIN(t * theta) * invSinTheta |
463 | - | local p = Instance.new("Part") |
463 | + | |
464 | - | p.TopSurface = 0 |
464 | + | startInterp = t - 1 |
465 | - | p.BottomSurface = 0 |
465 | + | finishInterp = t |
466 | - | p.Parent = parent |
466 | + | |
467 | - | p.Size = Vector3.new(0.1,0.1,0.1) |
467 | + | |
468 | - | p.Transparency = transparency |
468 | + | 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 |
469 | - | p.Reflectance = reflectance |
469 | + | |
470 | - | p.CanCollide = false |
470 | + | |
471 | - | p.Locked = true |
471 | + | function Clerp(a, b, t) |
472 | - | p.BrickColor = brickcolor |
472 | + | local qa = {QuaternionFromCFrame(a)} |
473 | - | p.Material = material |
473 | + | local qb = {QuaternionFromCFrame(b)} |
474 | - | return p |
474 | + | local ax, ay, az = a.x, a.y, a.z |
475 | local bx, by, bz = b.x, b.y, b.z | |
476 | local _t = 1 - t | |
477 | - | function CreateMesh(parent,meshtype,x1,y1,z1) |
477 | + | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
478 | - | local mesh = Instance.new("SpecialMesh",parent) |
478 | + | |
479 | - | mesh.MeshType = meshtype |
479 | + | |
480 | - | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) |
480 | + | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) |
481 | - | return mesh |
481 | + | local frame = IT("Frame") |
482 | frame.BackgroundTransparency = TRANSPARENCY | |
483 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
484 | - | function CreateSpecialMesh(parent,meshid,x1,y1,z1) |
484 | + | frame.Position = POSITION |
485 | - | local mesh = Instance.new("SpecialMesh",parent) |
485 | + | frame.Size = SIZE |
486 | - | mesh.MeshType = "FileMesh" |
486 | + | frame.BackgroundColor3 = COLOR |
487 | - | mesh.MeshId = meshid |
487 | + | frame.BorderColor3 = BORDERCOLOR |
488 | - | mesh.Scale = Vector3.new(x1,y1,z1) |
488 | + | frame.Name = NAME |
489 | - | return mesh |
489 | + | frame.Parent = PARENT |
490 | return frame | |
491 | end | |
492 | ||
493 | - | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) |
493 | + | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) |
494 | - | local mesh = Instance.new("SpecialMesh",parent) |
494 | + | local label = IT("TextLabel") |
495 | - | mesh.MeshType = "FileMesh" |
495 | + | label.BackgroundTransparency = 1 |
496 | - | mesh.MeshId = meshid |
496 | + | label.Size = UD2(1, 0, 1, 0) |
497 | - | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" |
497 | + | label.Position = UD2(0, 0, 0, 0) |
498 | - | mesh.Scale = Vector3.new(x1,y1,z1) |
498 | + | label.TextColor3 = TEXTCOLOR |
499 | - | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) |
499 | + | label.TextStrokeTransparency = STROKETRANSPARENCY |
500 | - | return mesh |
500 | + | label.TextTransparency = TRANSPARENCY |
501 | label.FontSize = TEXTFONTSIZE | |
502 | label.Font = TEXTFONT | |
503 | - | --CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
503 | + | label.BorderSizePixel = BORDERSIZEPIXEL |
504 | label.TextScaled = false | |
505 | label.Text = TEXT | |
506 | - | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) |
506 | + | label.Name = NAME |
507 | - | local weld = Instance.new("Weld") |
507 | + | label.Parent = PARENT |
508 | - | weld.Parent = parent |
508 | + | return label |
509 | - | weld.Part0 = part0 |
509 | + | |
510 | - | weld.Part1 = part1 |
510 | + | |
511 | - | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) |
511 | + | function NoOutlines(PART) |
512 | - | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) |
512 | + | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
513 | - | return weld |
513 | + | |
514 | ||
515 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
516 | - | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) |
516 | + | local NEWWELD = IT(TYPE) |
517 | - | CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
517 | + | NEWWELD.Part0 = PART0 |
518 | - | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) |
518 | + | NEWWELD.Part1 = PART1 |
519 | - | CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
519 | + | NEWWELD.C0 = C0 |
520 | NEWWELD.C1 = C1 | |
521 | - | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) |
521 | + | NEWWELD.Parent = PARENT |
522 | - | CreateMesh(handle,"Brick",0,0,0) |
522 | + | return NEWWELD |
523 | - | local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
523 | + | |
524 | - | local valuaring = 10 |
524 | + | |
525 | - | for i = 0, 49 do |
525 | + | local S = IT("Sound") |
526 | - | valuaring = valuaring + 10 |
526 | + | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) |
527 | - | rn = CreateParta(mw2,0,0,"Neon",halocolor) |
527 | + | local NEWSOUND = nil |
528 | - | CreateMesh(rn,"Brick",0.25,0.1,0.1) |
528 | + | coroutine.resume(coroutine.create(function() |
529 | - | CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
529 | + | NEWSOUND = S:Clone() |
530 | NEWSOUND.Parent = PARENT | |
531 | NEWSOUND.Volume = VOLUME | |
532 | - | handlex = CreateParta(mw2,1,1,"Neon",maincolor) |
532 | + | NEWSOUND.Pitch = PITCH |
533 | - | CreateMesh(handle,"Brick",0,0,0) |
533 | + | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
534 | - | CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
534 | + | NEWSOUND:play() |
535 | - | local valuaring = 10 |
535 | + | if DOESLOOP == true then |
536 | - | for i = 0, 49 do |
536 | + | NEWSOUND.Looped = true |
537 | - | valuaring = valuaring + 10 |
537 | + | |
538 | - | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
538 | + | repeat wait(1) until NEWSOUND.Playing == false |
539 | - | CreateMesh(rn,"Brick",0.5,0.2,0.2) |
539 | + | NEWSOUND:remove() |
540 | - | CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
540 | + | |
541 | end)) | |
542 | return NEWSOUND | |
543 | end | |
544 | - | local handle = CreateParta(m,1,1,"Neon",maincolor) |
544 | + | |
545 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
545 | + | function CFrameFromTopBack(at, top, back) |
546 | - | local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
546 | + | local right = top:Cross(back) |
547 | 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) | |
548 | - | --- Left wing. |
548 | + | |
549 | ||
550 | - | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) |
550 | + | --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}) |
551 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
551 | + | function WACKYEFFECT(Table) |
552 | - | local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
552 | + | local TYPE = (Table.EffectType or "Sphere") |
553 | local SIZE = (Table.Size or VT(1,1,1)) | |
554 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
554 | + | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
555 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
555 | + | local TRANSPARENCY = (Table.Transparency or 0) |
556 | - | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
556 | + | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
557 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
557 | + | local CFRAME = (Table.CFrame or Torso.CFrame) |
558 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
558 | + | local MOVEDIRECTION = (Table.MoveToPos or nil) |
559 | - | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
559 | + | local ROTATION1 = (Table.RotationX or 0) |
560 | - | A0 = Instance.new('Attachment',wed) |
560 | + | local ROTATION2 = (Table.RotationY or 0) |
561 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
561 | + | local ROTATION3 = (Table.RotationZ or 0) |
562 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
562 | + | local MATERIAL = (Table.Material or "Neon") |
563 | - | CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
563 | + | local COLOR = (Table.Color or C3(1,1,1)) |
564 | - | A1 = Instance.new('Attachment',wed) |
564 | + | local TIME = (Table.Time or 45) |
565 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
565 | + | local SOUNDID = (Table.SoundID or nil) |
566 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
566 | + | local SOUNDPITCH = (Table.SoundPitch or nil) |
567 | - | CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
567 | + | local SOUNDVOLUME = (Table.SoundVolume or nil) |
568 | coroutine.resume(coroutine.create(function() | |
569 | - | tl1 = Instance.new('Trail',wed) |
569 | + | local PLAYSSOUND = false |
570 | - | tl1.Attachment0 = A0 |
570 | + | local SOUND = nil |
571 | - | tl1.Attachment1 = A1 |
571 | + | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) |
572 | - | --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" |
572 | + | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
573 | - | tl1.LightEmission = 1 |
573 | + | PLAYSSOUND = true |
574 | - | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
574 | + | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
575 | - | tl1.Color = ColorSequence.new(BrickColor.new('Black').Color) |
575 | + | |
576 | - | tl1.Lifetime = 0.6 |
576 | + | EFFECT.Color = COLOR |
577 | local MSH = nil | |
578 | if TYPE == "Sphere" then | |
579 | - | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) |
579 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
580 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
580 | + | elseif TYPE == "Block" then |
581 | - | local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
581 | + | MSH = IT("BlockMesh",EFFECT) |
582 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
583 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
583 | + | elseif TYPE == "Wave" then |
584 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
584 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) |
585 | - | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
585 | + | elseif TYPE == "Ring" then |
586 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
586 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
587 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
587 | + | elseif TYPE == "Slash" then |
588 | - | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
588 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
589 | - | A0 = Instance.new('Attachment',wed) |
589 | + | elseif TYPE == "Round Slash" then |
590 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
590 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
591 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
591 | + | elseif TYPE == "Swirl" then |
592 | - | CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
592 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
593 | - | A1 = Instance.new('Attachment',wed) |
593 | + | elseif TYPE == "Skull" then |
594 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
594 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
595 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
595 | + | elseif TYPE == "Crystal" then |
596 | - | CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
596 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
597 | end | |
598 | - | tl2 = Instance.new('Trail',wed) |
598 | + | if MSH ~= nil then |
599 | - | tl2.Attachment0 = A0 |
599 | + | local MOVESPEED = nil |
600 | - | tl2.Attachment1 = A1 |
600 | + | if MOVEDIRECTION ~= nil then |
601 | - | --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073" |
601 | + | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
602 | - | tl2.LightEmission = 1 |
602 | + | |
603 | - | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
603 | + | local GROWTH = SIZE - ENDSIZE |
604 | - | tl2.Color = ColorSequence.new(BrickColor.new('Black').Color) |
604 | + | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
605 | - | tl2.Lifetime = 0.6 |
605 | + | if TYPE == "Block" then |
606 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
607 | - | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) |
607 | + | else |
608 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
608 | + | EFFECT.CFrame = CFRAME |
609 | - | local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
609 | + | |
610 | for LOOP = 1, TIME+1 do | |
611 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
611 | + | Swait() |
612 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
612 | + | MSH.Scale = MSH.Scale - GROWTH/TIME |
613 | - | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
613 | + | if TYPE == "Wave" then |
614 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
614 | + | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
615 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
615 | + | |
616 | - | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
616 | + | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
617 | - | A0 = Instance.new('Attachment',wed) |
617 | + | if TYPE == "Block" then |
618 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
618 | + | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
619 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
619 | + | else |
620 | - | CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
620 | + | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
621 | - | A1 = Instance.new('Attachment',wed) |
621 | + | |
622 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
622 | + | if MOVEDIRECTION ~= nil then |
623 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
623 | + | local ORI = EFFECT.Orientation |
624 | - | CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
624 | + | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
625 | EFFECT.Orientation = ORI | |
626 | - | tl3 = Instance.new('Trail',wed) |
626 | + | |
627 | - | tl3.Attachment0 = A0 |
627 | + | |
628 | - | tl3.Attachment1 = A1 |
628 | + | if PLAYSSOUND == false then |
629 | - | --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073" |
629 | + | EFFECT:remove() |
630 | - | tl3.LightEmission = 1 |
630 | + | else |
631 | - | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
631 | + | repeat Swait() until EFFECT:FindFirstChild("Sound") == nil |
632 | - | tl3.Color = ColorSequence.new(BrickColor.new('Black').Color) |
632 | + | EFFECT:remove() |
633 | - | tl3.Lifetime = 0.6 |
633 | + | |
634 | else | |
635 | - | tl1.Enabled = false |
635 | + | if PLAYSSOUND == false then |
636 | - | tl2.Enabled = false |
636 | + | EFFECT:remove() |
637 | - | tl3.Enabled = false |
637 | + | else |
638 | - | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) |
638 | + | repeat Swait() until EFFECT:FindFirstChild("Sound") == nil |
639 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
639 | + | EFFECT:remove() |
640 | - | local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
640 | + | |
641 | end | |
642 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
642 | + | end)) |
643 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
643 | + | |
644 | - | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
644 | + | |
645 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
645 | + | function MakeForm(PART,TYPE) |
646 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
646 | + | if TYPE == "Cyl" then |
647 | - | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
647 | + | local MSH = IT("CylinderMesh",PART) |
648 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
648 | + | elseif TYPE == "Ball" then |
649 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
649 | + | local MSH = IT("SpecialMesh",PART) |
650 | - | CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
650 | + | MSH.MeshType = "Sphere" |
651 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
651 | + | elseif TYPE == "Wedge" then |
652 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
652 | + | local MSH = IT("SpecialMesh",PART) |
653 | - | CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
653 | + | MSH.MeshType = "Wedge" |
654 | end | |
655 | - | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) |
655 | + | |
656 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
656 | + | |
657 | - | local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
657 | + | Debris = game:GetService("Debris") |
658 | ||
659 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
659 | + | function CastProperRay(StartPos, EndPos, Distance, Ignore) |
660 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
660 | + | local DIRECTION = CF(StartPos,EndPos).lookVector |
661 | - | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
661 | + | return Raycast(StartPos, DIRECTION, Distance, Ignore) |
662 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
662 | + | |
663 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
663 | + | |
664 | - | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
664 | + | local ROCK = script.Rock |
665 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
665 | + | ROCK.Parent = nil |
666 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
666 | + | function GetRock(FLOOROBJECT) |
667 | - | CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
667 | + | local Rock = ROCK:Clone() |
668 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
668 | + | Rock.Parent = Effects |
669 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
669 | + | if FLOOROBJECT ~= nil then |
670 | - | CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
670 | + | if FLOOROBJECT.Material ~= Enum.Material.Grass and FLOOROBJECT.Material ~= Enum.Material.Fabric then |
671 | Rock.Material = FLOOROBJECT.Material | |
672 | - | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) |
672 | + | Rock.Color = FLOOROBJECT.Color |
673 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
673 | + | |
674 | - | local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
674 | + | Rock.Material = "Slate" |
675 | Rock.Color = BRICKC"Dirt brown".Color | |
676 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
676 | + | |
677 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
677 | + | |
678 | - | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
678 | + | Rock.Material = "Slate" |
679 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
679 | + | Rock.Color = BRICKC"Dirt brown".Color |
680 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
680 | + | |
681 | - | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
681 | + | Rock.Core.Emit.Color = ColorSequence.new(Rock.Color) |
682 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
682 | + | return Rock |
683 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
683 | + | |
684 | - | CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
684 | + | |
685 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
685 | + | local SPIKE = script.RockSpike |
686 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
686 | + | SPIKE.Parent = nil |
687 | - | CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
687 | + | function GetSpike(FLOOROBJECT) |
688 | local Rock = SPIKE:Clone() | |
689 | - | -- Right wing. |
689 | + | Rock.Parent = Effects |
690 | if FLOOROBJECT ~= nil then | |
691 | - | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) |
691 | + | if FLOOROBJECT.Material ~= Enum.Material.Grass and FLOOROBJECT.Material ~= Enum.Material.Fabric then |
692 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
692 | + | Rock.Material = FLOOROBJECT.Material |
693 | - | local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
693 | + | Rock.Color = FLOOROBJECT.Color |
694 | else | |
695 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
695 | + | Rock.Material = "Slate" |
696 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
696 | + | Rock.Color = BRICKC"Dirt brown".Color |
697 | - | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
697 | + | |
698 | - | A0 = Instance.new('Attachment',wed) |
698 | + | |
699 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
699 | + | Rock.Material = "Slate" |
700 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
700 | + | Rock.Color = BRICKC"Dirt brown".Color |
701 | - | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
701 | + | |
702 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
702 | + | return Rock |
703 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
703 | + | |
704 | - | CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
704 | + | |
705 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
705 | + | --//=================================\\ |
706 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
706 | + | --|| WEAPON CREATION |
707 | - | CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
707 | + | --\\=================================// |
708 | - | A1 = Instance.new('Attachment',wed) |
708 | + | |
709 | local sick = Instance.new("Sound",Character) | |
710 | - | tr1 = Instance.new('Trail',wed) |
710 | + | |
711 | - | tr1.Attachment0 = A0 |
711 | + | local PILLAR = script.Pillar |
712 | - | tr1.Attachment1 = A1 |
712 | + | PILLAR.Parent = nil |
713 | - | --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073" |
713 | + | local HOOD = script.Hood |
714 | - | tr1.LightEmission = 1 |
714 | + | HOOD.Parent = Character |
715 | - | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
715 | + | HOOD.CFrame = Torso.CFrame*CFrame.new(0,2.2,0) |
716 | - | tr1.Color = ColorSequence.new(BrickColor.new('Black').Color) |
716 | + | weldBetween(Torso,HOOD) |
717 | - | tr1.Lifetime = 0.6 |
717 | + | Head:ClearAllChildren() |
718 | Head.Transparency = 1 | |
719 | - | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) |
719 | + | local EYE = script.Eye |
720 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
720 | + | EYE.Parent = Character |
721 | - | local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
721 | + | EYE.CFrame = Head.CFrame*CF(0,0,0) |
722 | EYE.Anchored = false | |
723 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
723 | + | weldBetween(EYE,Head) |
724 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
724 | + | local COLLAR = script.Collar |
725 | - | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
725 | + | COLLAR.Parent = Character |
726 | - | A0 = Instance.new('Attachment',wed) |
726 | + | COLLAR.CFrame = Torso.CFrame*CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) |
727 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
727 | + | weldBetween(Torso,COLLAR) |
728 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
728 | + | local BONE = script.SpinePart |
729 | - | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
729 | + | BONE.Parent = nil |
730 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
730 | + | local TAIL = {} |
731 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
731 | + | local LASTPART = Torso |
732 | - | CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
732 | + | local SIZE = BONE.Size |
733 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
733 | + | for i = 1, 23 do |
734 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
734 | + | local PART = BONE:Clone() |
735 | - | CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
735 | + | PART.Anchored = false |
736 | - | A1 = Instance.new('Attachment',wed) |
736 | + | PART.Parent = Character |
737 | PART.Size = SIZE*((25-i)/10)/1.6 | |
738 | - | tr2 = Instance.new('Trail',wed) |
738 | + | if LASTPART == Torso then |
739 | - | tr2.Attachment0 = A0 |
739 | + | local WELD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, PART, CF(0,-0.8,0.6)* ANGLES(RAD(-55), RAD(0), RAD(0)), CF(0, 0, 0)) |
740 | - | tr2.Attachment1 = A1 |
740 | + | LASTPART = PART |
741 | - | --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073" |
741 | + | table.insert(TAIL,WELD) |
742 | - | tr2.LightEmission = 1 |
742 | + | |
743 | - | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
743 | + | local WELD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, PART, CF(0,-PART.Size.Y/1.2,-0.01), CF(0, 0, 0)) |
744 | - | tr2.Color = ColorSequence.new(BrickColor.new('Black').Color) |
744 | + | LASTPART = PART |
745 | - | tr2.Lifetime = 0.6 |
745 | + | table.insert(TAIL,WELD) |
746 | end | |
747 | - | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) |
747 | + | |
748 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
748 | + | for _, c in pairs(Character:GetChildren()) do |
749 | - | local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
749 | + | if c:IsA("BasePart") then |
750 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
751 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
751 | + | c:FindFirstChildOfClass("ParticleEmitter"):remove() |
752 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
752 | + | |
753 | - | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
753 | + | if c == Head then |
754 | - | A0 = Instance.new('Attachment',wed) |
754 | + | if c:FindFirstChild("face") then |
755 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
755 | + | c.face:remove() |
756 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
756 | + | |
757 | - | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
757 | + | |
758 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
758 | + | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then |
759 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
759 | + | c:remove() |
760 | - | CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
760 | + | |
761 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
761 | + | |
762 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
762 | + | local BODY = {} |
763 | - | CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
763 | + | for _, c in pairs(Character:GetDescendants()) do |
764 | - | A1 = Instance.new('Attachment',wed) |
764 | + | if c:IsA("BasePart") and c.Name ~= "Handle" then |
765 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
766 | - | tr3 = Instance.new('Trail',wed) |
766 | + | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
767 | - | tr3.Attachment0 = A0 |
767 | + | |
768 | - | tr3.Attachment1 = A1 |
768 | + | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) |
769 | - | --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073" |
769 | + | elseif c:IsA("JointInstance") then |
770 | - | tr3.LightEmission = 1 |
770 | + | table.insert(BODY,{c,c.Parent,nil,nil,nil}) |
771 | - | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
771 | + | |
772 | - | tr3.Color = ColorSequence.new(BrickColor.new('Black').Color) |
772 | + | |
773 | - | tr3.Lifetime = 0.6 |
773 | + | for e = 1, #BODY do |
774 | if BODY[e] ~= nil then | |
775 | local STUFF = BODY[e] | |
776 | - | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) |
776 | + | local PART = STUFF[1] |
777 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
777 | + | local PARENT = STUFF[2] |
778 | - | local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
778 | + | local MATERIAL = STUFF[3] |
779 | local COLOR = STUFF[4] | |
780 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
780 | + | local TRANSPARENCY = STUFF[5] |
781 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
781 | + | if PART.ClassName == "Part" and PART ~= RootPart then |
782 | - | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
782 | + | PART.Material = MATERIAL |
783 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
783 | + | PART.Color = COLOR |
784 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
784 | + | PART.Transparency = TRANSPARENCY |
785 | - | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
785 | + | |
786 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
786 | + | PART.AncestryChanged:Connect(function() |
787 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
787 | + | PART.Parent = PARENT |
788 | - | CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
788 | + | |
789 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
789 | + | |
790 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
790 | + | |
791 | - | CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
791 | + | function refit() |
792 | Character.Parent = workspace | |
793 | - | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) |
793 | + | for e = 1, #BODY do |
794 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
794 | + | if BODY[e] ~= nil then |
795 | - | local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
795 | + | local STUFF = BODY[e] |
796 | local PART = STUFF[1] | |
797 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
797 | + | local PARENT = STUFF[2] |
798 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
798 | + | local MATERIAL = STUFF[3] |
799 | - | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
799 | + | local COLOR = STUFF[4] |
800 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
800 | + | local TRANSPARENCY = STUFF[5] |
801 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
801 | + | if PART:IsA("BasePart") and PART ~= RootPart then |
802 | - | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
802 | + | PART.Material = MATERIAL |
803 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
803 | + | PART.Color = COLOR |
804 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
804 | + | PART.Transparency = TRANSPARENCY+EXTRATRANS |
805 | - | CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
805 | + | |
806 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
806 | + | if PART.Parent ~= PARENT then |
807 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
807 | + | Humanoid:remove() |
808 | - | CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
808 | + | PART.Parent = PARENT |
809 | Humanoid = IT("Humanoid",Character) | |
810 | - | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) |
810 | + | |
811 | - | CreateMesh(handle,"Brick",0.5,0.5,0.5) |
811 | + | |
812 | - | local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
812 | + | |
813 | end | |
814 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
814 | + | |
815 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
815 | + | Humanoid.Died:connect(function() |
816 | - | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
816 | + | refit() |
817 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
817 | + | |
818 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
818 | + | |
819 | - | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
819 | + | --//=================================\\ |
820 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
820 | + | --|| DAMAGING |
821 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
821 | + | --\\=================================// |
822 | - | CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
822 | + | |
823 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
823 | + | function ApplyDamage(Humanoid,Damage,TorsoPart) |
824 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
824 | + | Damage = Damage * DAMAGEMULTIPLIER |
825 | - | CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
825 | + | if Humanoid.Health ~= 0 then |
826 | Humanoid.Health = Humanoid.Health - Damage | |
827 | - | ---- HERES THE RING |
827 | + | |
828 | end | |
829 | ||
830 | - | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) |
830 | + | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL,ROCK) |
831 | - | CreateMesh(ran,"Wedge",1.02,1.02,1.02) |
831 | + | local CHILDREN = workspace:GetDescendants() |
832 | - | CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
832 | + | for index, CHILD in pairs(CHILDREN) do |
833 | - | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
833 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
834 | - | CreateMesh(ran,"Wedge",0.9,0.9,1.025) |
834 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
835 | - | CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
835 | + | if HUM then |
836 | - | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
836 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
837 | - | CreateMesh(ran,"Wedge",1.025,0.9,0.9) |
837 | + | if TORSO then |
838 | - | CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
838 | + | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
839 | if INSTAKILL == true or HUM.MaxHealth > 5000 then | |
840 | CHILD:BreakJoints() | |
841 | - | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
841 | + | else |
842 | - | CreateMesh(gan,"Brick",1.075,0.1,1.075) |
842 | + | local DMG = MRANDOM(MINDMG,MAXDMG) |
843 | - | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
843 | + | ApplyDamage(HUM,DMG,TORSO) |
844 | end | |
845 | - | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
845 | + | if FLING > 0 then |
846 | - | CreateMesh(gan,"Brick",1.075,0.1,1.075) |
846 | + | for _, c in pairs(CHILD:GetChildren()) do |
847 | - | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
847 | + | if c:IsA("BasePart") then |
848 | local bv = Instance.new("BodyVelocity",c) | |
849 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
850 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
851 | - | gan = CreateParta(m2,0,0,"Neon",halocolor2) |
851 | + | Debris:AddItem(bv,0.05) |
852 | - | CreateMesh(gan,"Brick",1.095,0.035,1.095) |
852 | + | end |
853 | - | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
853 | + | end |
854 | end | |
855 | - | gan = CreateParta(m2,0,0,"Neon",halocolor2) |
855 | + | |
856 | - | CreateMesh(gan,"Brick",1.095,0.035,1.095) |
856 | + | |
857 | - | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
857 | + | |
858 | elseif CHILD:IsA("BasePart") and ROCK ~= nil then | |
859 | - | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) |
859 | + | if (CHILD.Position - POSITION).Magnitude <= RANGE then |
860 | - | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) |
860 | + | RespondToImpact(CHILD,ROCK) |
861 | - | CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
861 | + | |
862 | end | |
863 | - | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
863 | + | |
864 | - | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) |
864 | + | |
865 | - | CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
865 | + | |
866 | - | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) |
866 | + | --//=================================\\ |
867 | - | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) |
867 | + | --|| ATTACK FUNCTIONS AND STUFF |
868 | - | CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
868 | + | --\\=================================// |
869 | ||
870 | - | -- S section A |
870 | + | function RockExplosion(Rock,Multiplier,Survive) |
871 | local EXPLOSION = Rock.Core:FindFirstChildOfClass("ParticleEmitter") | |
872 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
872 | + | EXPLOSION.Color = ColorSequence.new(Rock.Color) |
873 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
873 | + | local SIZE = (Rock.Size.Y*4)*Multiplier |
874 | - | CreateWeld(dotsec,larm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
874 | + | EXPLOSION.Enabled = false |
875 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
875 | + | EXPLOSION.Speed = NumberRange.new(0,SIZE*5) |
876 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
876 | + | EXPLOSION.Size = NumberSequence.new(SIZE/15,0) |
877 | - | CreateWeld(dotseca,larm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
877 | + | EXPLOSION:Emit(200,300) |
878 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
878 | + | WaveParticles(Rock.Position,SIZE*2,Rock.Color) |
879 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
879 | + | coroutine.resume(coroutine.create(function() |
880 | - | CreateWeld(dotsecb,larm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
880 | + | Rock:BreakJoints() |
881 | if Survive == nil then | |
882 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
882 | + | Rock.Transparency = 1 |
883 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
883 | + | Rock.CanCollide = false |
884 | - | CreateWeld(dotsec,larm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
884 | + | Rock.Anchored = true |
885 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
885 | + | Debris:AddItem(Rock,5) |
886 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
886 | + | |
887 | - | CreateWeld(dotseca,larm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
887 | + | CreateSound(165970126, Rock, 2, MRANDOM(8,12)/10, false) |
888 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
888 | + | ApplyAoE(Rock.Position,SIZE,25,30,35,false,Rock) |
889 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
889 | + | local HITFLOOR,HITPOS = Raycast(Rock.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, Rock.Size.Y/2, Character) |
890 | - | CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
890 | + | Swait() |
891 | if HITFLOOR then | |
892 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
892 | + | WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SIZE*7,3,SIZE*7), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = HITFLOOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
893 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
893 | + | |
894 | - | CreateWeld(dotsec,larm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
894 | + | for i = 1, 5 do |
895 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
895 | + | WACKYEFFECT({Time = MRANDOM(15,55), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SIZE*5,0.2,SIZE*5), Transparency = 0.95, Transparency2 = 1, CFrame = CF(Rock.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Rock.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
896 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
896 | + | |
897 | - | CreateWeld(dotseca,larm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
897 | + | end)) |
898 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
898 | + | |
899 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
899 | + | |
900 | - | CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
900 | + | function Bullet() |
901 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
902 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
902 | + | ATTACK = true |
903 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
903 | + | Rooted = true |
904 | - | CreateWeld(dotsec,larm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
904 | + | local GYRO = IT("BodyGyro",RootPart) |
905 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
905 | + | GYRO.D = 2 |
906 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
906 | + | GYRO.P = 2000 |
907 | - | CreateWeld(dotseca,larm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
907 | + | GYRO.MaxTorque = VT(0,4000000,0) |
908 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
908 | + | coroutine.resume(coroutine.create(function() |
909 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
909 | + | repeat |
910 | - | CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
910 | + | Swait() |
911 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
912 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
912 | + | until ATTACK == false |
913 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
913 | + | GYRO:Remove() |
914 | - | CreateWeld(dotsec,larm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
914 | + | end)) |
915 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
915 | + | local FLOOR = false |
916 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
916 | + | if HITFLOOR then |
917 | - | CreateWeld(dotseca,larm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
917 | + | if HITFLOOR.Material ~= Enum.Material.Foil and HITFLOOR.Material ~= Enum.Material.Glass then |
918 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
918 | + | FLOOR = true |
919 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
919 | + | |
920 | - | CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
920 | + | |
921 | if FLOOR == true then | |
922 | - | -- S section B |
922 | + | for i=0, 0.5, 0.1 / Animation_Speed do |
923 | Swait() | |
924 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
924 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed) |
925 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
925 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) |
926 | - | CreateWeld(dotsec,larm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
926 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
927 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
927 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
928 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
928 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(-30), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
929 | - | CreateWeld(dotseca,larm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
929 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
930 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
930 | + | |
931 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
931 | + | for i=0, 0.25, 0.1 / Animation_Speed do |
932 | - | CreateWeld(dotsecb,larm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
932 | + | Swait() |
933 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
934 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
934 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) |
935 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
935 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
936 | - | CreateWeld(dotsec,larm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
936 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
937 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
937 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
938 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
938 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
939 | - | CreateWeld(dotseca,larm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
939 | + | |
940 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
940 | + | local ROCKPLACED = false |
941 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
941 | + | local Rock = nil |
942 | - | CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
942 | + | if HITFLOOR.Anchored == true then |
943 | Rock = GetRock(HITFLOOR) | |
944 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
944 | + | Rock.Core.Emit.Enabled = true |
945 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
945 | + | Rock.Size = VT(16,16,16) |
946 | - | CreateWeld(dotsec,larm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
946 | + | Rock.CFrame = CF(RootPart.CFrame*CF(0,-9,-6).p,Mouse.Hit.p) |
947 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
947 | + | CreateSound(130972023, Rock, 2, MRANDOM(5,8)/10, false) |
948 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
948 | + | |
949 | - | CreateWeld(dotseca,larm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
949 | + | for i = 1, 30 do |
950 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
950 | + | Swait() |
951 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
951 | + | Rock.CFrame = Clerp(Rock.CFrame, CF(RootPart.CFrame*CF(0,1,-6).p,Mouse.Hit.p), 0.8 / Animation_Speed) |
952 | - | CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
952 | + | |
953 | ROCKPLACED = true | |
954 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
954 | + | Rock.Core.Emit.Enabled = false |
955 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
955 | + | |
956 | - | CreateWeld(dotsec,larm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
956 | + | |
957 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
957 | + | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then |
958 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
958 | + | local TORSO = HITFLOOR.Parent:FindFirstChild("Torso") or HITFLOOR.Parent:FindFirstChild("UpperTorso") |
959 | - | CreateWeld(dotseca,larm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
959 | + | if TORSO then |
960 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
960 | + | Rock = TORSO |
961 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
961 | + | ROCK.Core:Clone().Parent = Rock |
962 | - | CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
962 | + | else |
963 | Rock = HITFLOOR | |
964 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
964 | + | ROCK.Core:Clone().Parent = Rock |
965 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
965 | + | |
966 | - | CreateWeld(dotsec,larm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
966 | + | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then |
967 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
967 | + | local TORSO = HITFLOOR.Parent.Parent:FindFirstChild("Torso") or HITFLOOR.Parent.Parent:FindFirstChild("UpperTorso") |
968 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
968 | + | if TORSO then |
969 | - | CreateWeld(dotseca,larm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
969 | + | Rock = TORSO |
970 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
970 | + | ROCK.Core:Clone().Parent = Rock |
971 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
971 | + | else |
972 | - | CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
972 | + | Rock = HITFLOOR |
973 | ROCK.Core:Clone().Parent = Rock | |
974 | - | --- second ring |
974 | + | |
975 | else | |
976 | - | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) |
976 | + | Rock = HITFLOOR |
977 | - | CreateMesh(ran,"Wedge",1.02,1.02,1.02) |
977 | + | ROCK.Core:Clone().Parent = Rock |
978 | - | CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
978 | + | |
979 | - | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
979 | + | Rock.Anchored = true |
980 | - | CreateMesh(ran,"Wedge",0.9,0.9,1.025) |
980 | + | |
981 | - | CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
981 | + | for i = 1, 30 do |
982 | - | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
982 | + | Swait() |
983 | - | CreateMesh(ran,"Wedge",1.025,0.9,0.9) |
983 | + | Rock.CFrame = Clerp(Rock.CFrame, CF(RootPart.CFrame*CF(0,1,-6).p,Mouse.Hit.p), 0.8 / Animation_Speed) |
984 | - | CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
984 | + | |
985 | ROCKPLACED = true | |
986 | - | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
986 | + | |
987 | - | CreateMesh(gan,"Brick",1.075,0.1,1.075) |
987 | + | |
988 | - | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
988 | + | for i=0, 0.1, 0.1 / Animation_Speed do |
989 | Swait() | |
990 | - | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
990 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) |
991 | - | CreateMesh(gan,"Brick",1.075,0.1,1.075) |
991 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) |
992 | - | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
992 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
993 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
994 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
995 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
996 | - | gan = CreateParta(m2,0,0,"Neon",halocolor2) |
996 | + | |
997 | - | CreateMesh(gan,"Brick",1.095,0.035,1.095) |
997 | + | repeat |
998 | - | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
998 | + | Swait() |
999 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1000 | - | gan = CreateParta(m2,0,0,"Neon",halocolor2) |
1000 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) |
1001 | - | CreateMesh(gan,"Brick",1.095,0.035,1.095) |
1001 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1002 | - | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1002 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1003 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed) | |
1004 | - | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) |
1004 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1005 | - | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) |
1005 | + | until ROCKPLACED == true |
1006 | - | CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1006 | + | for i=0, 0.1, 0.1 / Animation_Speed do |
1007 | Swait() | |
1008 | - | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1008 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) |
1009 | - | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) |
1009 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) |
1010 | - | CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1010 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1011 | - | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) |
1011 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1012 | - | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) |
1012 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) |
1013 | - | CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1013 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1014 | end | |
1015 | - | -- S section A |
1015 | + | WaveParticles(Rock.Position,12,C3(1,1,1)) |
1016 | CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false) | |
1017 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
1017 | + | coroutine.resume(coroutine.create(function() |
1018 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
1018 | + | if Rock.Parent:FindFirstChildOfClass("Humanoid") == nil then |
1019 | - | CreateWeld(dotsec,rarm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1019 | + | for i = 1, 200 do |
1020 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1020 | + | Swait() |
1021 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
1021 | + | Rock.CFrame = Rock.CFrame * CF(0,0,-1.2) |
1022 | - | CreateWeld(dotseca,rarm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1022 | + | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) |
1023 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
1023 | + | if HIT then |
1024 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
1024 | + | RespondToImpact(HIT,Rock) |
1025 | - | CreateWeld(dotsecb,rarm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1025 | + | |
1026 | end | |
1027 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
1027 | + | |
1028 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
1028 | + | RockExplosion(Rock,1) |
1029 | - | CreateWeld(dotsec,rarm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1029 | + | else |
1030 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1030 | + | for i = 1, 60 do |
1031 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
1031 | + | Swait() |
1032 | - | CreateWeld(dotseca,rarm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1032 | + | Rock.CFrame = Rock.CFrame * CF(0,0,-2) |
1033 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
1033 | + | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, 3, Character) |
1034 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
1034 | + | if HIT then |
1035 | - | CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1035 | + | RespondToImpact(HIT,Rock) |
1036 | break | |
1037 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
1037 | + | |
1038 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
1038 | + | |
1039 | - | CreateWeld(dotsec,rarm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1039 | + | RockExplosion(Rock,2) |
1040 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1040 | + | |
1041 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
1041 | + | end)) |
1042 | - | CreateWeld(dotseca,rarm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1042 | + | for i=0, 0.4, 0.1 / Animation_Speed do |
1043 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
1043 | + | Swait() |
1044 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
1044 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) |
1045 | - | CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1045 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) |
1046 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1047 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
1047 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1048 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
1048 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) |
1049 | - | CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1049 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1050 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1050 | + | |
1051 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
1051 | + | |
1052 | - | CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1052 | + | local GRAV = IT("BodyPosition",RootPart) |
1053 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
1053 | + | GRAV.D = 250 |
1054 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
1054 | + | GRAV.P = 20000 |
1055 | - | CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1055 | + | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) |
1056 | GRAV.Position = RootPart.Position | |
1057 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
1057 | + | local Rock = GetRock() |
1058 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
1058 | + | Rock.Size = VT(10,10,10) |
1059 | - | CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1059 | + | Rock.CFrame = CF(RightLeg.CFrame*CF(0,-1,0).p,Mouse.Hit.p) |
1060 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1060 | + | CreateSound(201858045, Rock, 1, MRANDOM(10,12)/10, false) |
1061 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
1061 | + | local DONEROCK = false |
1062 | - | CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1062 | + | coroutine.resume(coroutine.create(function() |
1063 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
1063 | + | for i = 1, 15 do |
1064 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
1064 | + | Swait() |
1065 | - | CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1065 | + | Rock.Size = Rock.Size + VT(10.1,10.1,10.1) |
1066 | Rock.Size = Rock.Size * 1.1 | |
1067 | - | -- S section B |
1067 | + | Rock.CFrame = CF(RightLeg.CFrame*CF(0,-1-Rock.Size.Y/2,0).p,Mouse.Hit.p) |
1068 | end | |
1069 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
1069 | + | DONEROCK = true |
1070 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
1070 | + | end)) |
1071 | - | CreateWeld(dotsec,rarm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1071 | + | repeat |
1072 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1072 | + | Swait() |
1073 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
1073 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-65), RAD(0), RAD(0)), 1 / Animation_Speed) |
1074 | - | CreateWeld(dotseca,rarm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1074 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1075 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
1075 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1076 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
1076 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1077 | - | CreateWeld(dotsecb,rarm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1077 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(90), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1078 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1079 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
1079 | + | until DONEROCK == true |
1080 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
1080 | + | local LOOP = 0 |
1081 | - | CreateWeld(dotsec,rarm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1081 | + | for i=0, 0.2, 0.1 / Animation_Speed do |
1082 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1082 | + | Swait() |
1083 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
1083 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-70), RAD(0), RAD(0)), 1 / Animation_Speed) |
1084 | - | CreateWeld(dotseca,rarm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1084 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1085 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
1085 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1086 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
1086 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1087 | - | CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1087 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(130), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1088 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1089 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
1089 | + | |
1090 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
1090 | + | WaveParticles(Rock.Position,5,C3(1,1,1)) |
1091 | - | CreateWeld(dotsec,rarm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1091 | + | CreateSound(621557962, RightLeg, 1, MRANDOM(10,12)/10, false) |
1092 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1092 | + | coroutine.resume(coroutine.create(function() |
1093 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
1093 | + | for i = 1, 300 do |
1094 | - | CreateWeld(dotseca,rarm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1094 | + | Swait() |
1095 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
1095 | + | Rock.CFrame = Rock.CFrame * CF(0,0,-1.6) |
1096 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
1096 | + | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) |
1097 | - | CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1097 | + | if HIT then |
1098 | RespondToImpact(HIT,Rock) | |
1099 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
1099 | + | break |
1100 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
1100 | + | |
1101 | - | CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1101 | + | |
1102 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1102 | + | RockExplosion(Rock,1) |
1103 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
1103 | + | end)) |
1104 | - | CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1104 | + | for i=0, 0.3, 0.1 / Animation_Speed do |
1105 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
1105 | + | Swait() |
1106 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
1106 | + | LOOP = LOOP + 15*3 |
1107 | - | CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1107 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-65+(LOOP)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1108 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1109 | - | dotsec = CreateParta(m3,0,0,"Neon",halocolor) |
1109 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1110 | - | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) |
1110 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1111 | - | CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1111 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1112 | - | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1112 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1113 | - | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) |
1113 | + | |
1114 | - | CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1114 | + | GRAV:remove() |
1115 | - | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) |
1115 | + | |
1116 | - | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) |
1116 | + | ATTACK = false |
1117 | - | CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]-- |
1117 | + | Rooted = false |
1118 | end | |
1119 | ||
1120 | - | for i, v in pairs(m:GetChildren()) do |
1120 | + | function Melee() |
1121 | - | if v:IsA("Part") then |
1121 | + | ATTACK = true |
1122 | - | v.BrickColor = BrickColor.new("Bright Green") |
1122 | + | Rooted = false |
1123 | - | v.Material = "Glass" |
1123 | + | Speed = 12 |
1124 | repeat | |
1125 | Swait() | |
1126 | - | for i, v in pairs(m2:GetChildren()) do |
1126 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-35)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
1127 | - | if v:IsA("Part") then |
1127 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(15)), 1 / Animation_Speed) |
1128 | - | v.BrickColor = BrickColor.new("Bright Green") |
1128 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1129 | - | v.Material = "Granite" |
1129 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1130 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1131 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1132 | - | for i, v in pairs(m3:GetChildren()) do |
1132 | + | until KEYHOLD == false |
1133 | - | if v:IsA("Part") then |
1133 | + | Speed = 0 |
1134 | - | v.BrickColor = BrickColor.new("Bright Green") |
1134 | + | local ROOT = nil |
1135 | - | v.Material = "Neon" |
1135 | + | local TORS = nil |
1136 | local HUMAN = nil | |
1137 | local DIST = 4 | |
1138 | - | for i, v in pairs(mw2:GetChildren()) do |
1138 | + | for i=0, 0.2, 0.1 / Animation_Speed do |
1139 | - | if v:IsA("Part") then |
1139 | + | Swait() |
1140 | - | v.BrickColor = BrickColor.new("Bright Green") |
1140 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) |
1141 | - | v.Material = "Neon" |
1141 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed) |
1142 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1143 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1144 | - | for i, v in pairs(mw1:GetChildren()) do |
1144 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1145 | - | if v:IsA("Part") then |
1145 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1146 | - | v.Transparency = 1 |
1146 | + | |
1147 | - | v.BrickColor = BrickColor.new("Bright Green") |
1147 | + | for i=0, 1, 0.1 / Animation_Speed do |
1148 | - | v.Material = "Neon" |
1148 | + | Swait() |
1149 | local CHILDREN = workspace:GetDescendants() | |
1150 | for index, CHILD in pairs(CHILDREN) do | |
1151 | - | for i, v in pairs(extrawingmod1:GetChildren()) do |
1151 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1152 | - | if v:IsA("Part") then |
1152 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1153 | - | v.Transparency = 1 |
1153 | + | if HUM then |
1154 | - | v.BrickColor = BrickColor.new("Bright Green") |
1154 | + | local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1155 | - | v.Material = "Neon" |
1155 | + | if TORSO and HUM.Health > 0 then |
1156 | if (TORSO.Position - RightArm.Position).Magnitude <= DIST then | |
1157 | DIST = (TORSO.Position - RightArm.Position).Magnitude | |
1158 | - | for i, v in pairs(extrawingmod2:GetChildren()) do |
1158 | + | ROOT = TORSO |
1159 | - | if v:IsA("Part") then |
1159 | + | HUMAN = HUM |
1160 | - | v.Transparency = 1 |
1160 | + | TORS = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1161 | - | v.BrickColor = BrickColor.new("Bright Green") |
1161 | + | |
1162 | - | v.Material = "Neon" |
1162 | + | |
1163 | end | |
1164 | end | |
1165 | - | local MAINRUINCOLOR = BrickColor.new("Bright Green") |
1165 | + | |
1166 | - | ------ |
1166 | + | if ROOT then |
1167 | break | |
1168 | end | |
1169 | - | function RemoveOutlines(part) |
1169 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) |
1170 | - | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 |
1170 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed) |
1171 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1172 | - | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) |
1172 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1173 | - | local Part = Create("Part")({ |
1173 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1174 | - | Parent = Parent, |
1174 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1175 | - | Reflectance = Reflectance, |
1175 | + | |
1176 | - | Transparency = Transparency, |
1176 | + | if ROOT then |
1177 | - | CanCollide = false, |
1177 | + | local POSITIONED = false |
1178 | - | Locked = true, |
1178 | + | coroutine.resume(coroutine.create(function() |
1179 | - | BrickColor = BrickColor.new(tostring(BColor)), |
1179 | + | ROOT.Anchored = true |
1180 | - | Name = Name, |
1180 | + | local POS = RootPart.CFrame*CF(0,-3,-1) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(90), RAD(0), RAD(0)) |
1181 | - | Size = Size, |
1181 | + | |
1182 | - | Material = Material |
1182 | + | ROOT.Anchored = true |
1183 | - | }) |
1183 | + | Swait() |
1184 | - | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) |
1184 | + | ROOT.CFrame = Clerp(ROOT.CFrame, POS, 0.8 / Animation_Speed) |
1185 | - | RemoveOutlines(Part) |
1185 | + | |
1186 | - | return Part |
1186 | + | POSITIONED = true |
1187 | repeat Swait() ROOT.Anchored = true until ATTACK == false | |
1188 | - | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
1188 | + | ROOT.Anchored = false |
1189 | - | local Msh = Create(Mesh)({ |
1189 | + | end)) |
1190 | - | Parent = Part, |
1190 | + | repeat |
1191 | - | Offset = OffSet, |
1191 | + | Swait() |
1192 | - | Scale = Scale |
1192 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1193 | - | }) |
1193 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1194 | - | if Mesh == "SpecialMesh" then |
1194 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1195 | - | Msh.MeshType = MeshType |
1195 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1196 | - | Msh.MeshId = MeshId |
1196 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1197 | - | end |
1197 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1198 | - | return Msh |
1198 | + | until POSITIONED == true |
1199 | for i = 1, 3 do | |
1200 | - | function CreateWeld(Parent, Part0, Part1, C0, C1) |
1200 | + | for i=0, 0.5, 0.1 / Animation_Speed do |
1201 | - | local Weld = Create("Weld")({ |
1201 | + | Swait() |
1202 | - | Parent = Parent, |
1202 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed) |
1203 | - | Part0 = Part0, |
1203 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) |
1204 | - | Part1 = Part1, |
1204 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
1205 | - | C0 = C0, |
1205 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
1206 | - | C1 = C1 |
1206 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(50), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
1207 | - | }) |
1207 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
1208 | - | return Weld |
1208 | + | |
1209 | for i=0, 0.15, 0.1 / Animation_Speed do | |
1210 | Swait() | |
1211 | - | Player=game:GetService("Players").LocalPlayer |
1211 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1212 | - | Character=Player.Character |
1212 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) |
1213 | - | PlayerGui=Player.PlayerGui |
1213 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1214 | - | Backpack=Player.Backpack |
1214 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1215 | - | Torso=Character.Torso |
1215 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1216 | - | Head=Character.Head |
1216 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1217 | - | Humanoid=Character:FindFirstChildOfClass'Humanoid' |
1217 | + | |
1218 | - | m=Instance.new('Model',Character) |
1218 | + | local EMIT = script.Emit:Clone() |
1219 | - | LeftArm=Character["Left Arm"] |
1219 | + | EMIT.Parent = TORS |
1220 | - | LeftLeg=Character["Left Leg"] |
1220 | + | EMIT.Size = NumberSequence.new(1,0) |
1221 | - | RightArm=Character["Right Arm"] |
1221 | + | EMIT:Emit(120) |
1222 | - | RightLeg=Character["Right Leg"] |
1222 | + | Debris:AddItem(EMIT,5) |
1223 | - | LS=Torso["Left Shoulder"] |
1223 | + | CreateSound(138186576, RightLeg, 1, MRANDOM(13,15)/10, false) |
1224 | - | LH=Torso["Left Hip"] |
1224 | + | WaveParticles(TORS.Position,12,C3(1,1,1)) |
1225 | - | RS=Torso["Right Shoulder"] |
1225 | + | ApplyAoE(RightLeg.Position,8,25,35,0,false) |
1226 | - | RH=Torso["Right Hip"] |
1226 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(35,3,35), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORS.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1227 | - | Face = Head.face |
1227 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(25,4,25), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORS.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1228 | - | Neck=Torso.Neck |
1228 | + | for i=0, 0.25, 0.1 / Animation_Speed do |
1229 | - | it=Instance.new |
1229 | + | Swait() |
1230 | - | attacktype=1 |
1230 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1231 | - | vt=Vector3.new |
1231 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) |
1232 | - | cf=CFrame.new |
1232 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1233 | - | euler=CFrame.fromEulerAnglesXYZ |
1233 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1234 | - | angles=CFrame.Angles |
1234 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1235 | - | cloaked=false |
1235 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1236 | - | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
1236 | + | |
1237 | - | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
1237 | + | if HUMAN.Health == 0 then |
1238 | - | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) |
1238 | + | break |
1239 | - | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) |
1239 | + | |
1240 | - | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) |
1240 | + | for i=0, 0.2, 0.1 / Animation_Speed do |
1241 | - | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) |
1241 | + | Swait() |
1242 | - | RootPart=Character.HumanoidRootPart |
1242 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1243 | - | RootJoint=RootPart.RootJoint |
1243 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
1244 | - | RootCF=euler(-1.57,0,3.14) |
1244 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1245 | - | attack = false |
1245 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1246 | - | attackdebounce = false |
1246 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1247 | - | deb=false |
1247 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1248 | - | equipped=true |
1248 | + | |
1249 | - | hand=false |
1249 | + | |
1250 | - | MMouse=nil |
1250 | + | |
1251 | - | combo=0 |
1251 | + | Speed = 25 |
1252 | - | mana=0 |
1252 | + | ATTACK = false |
1253 | - | trispeed=.2 |
1253 | + | Rooted = false |
1254 | - | attackmode='none' |
1254 | + | |
1255 | - | local idle=0 |
1255 | + | |
1256 | - | local Anim="Idle" |
1256 | + | function Launch() |
1257 | - | local Effects={} |
1257 | + | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) |
1258 | - | local gun=false |
1258 | + | if HITFLOOR then |
1259 | - | local shoot=false |
1259 | + | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(15,3,15), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 138186576, SoundPitch = 1, SoundVolume = 2}) |
1260 | - | local sine = 0 |
1260 | + | local P = PILLAR:Clone() |
1261 | - | local change = 1 |
1261 | + | P.Color = HITFLOOR.Color |
1262 | - | player=nil |
1262 | + | P.Material = HITFLOOR.Material |
1263 | - | pcall(function()char.LeftWing:destroy()end) |
1263 | + | P.Parent = Effects |
1264 | - | pcall(function()char.Halo:destroy()end) |
1264 | + | P.CFrame = CF(HITPOS-VT(0,4.5,0)) |
1265 | - | local toggleTag = true |
1265 | + | coroutine.resume(coroutine.create(function() |
1266 | - | local txt = Instance.new("BillboardGui", Head) |
1266 | + | for i = 1, 6 do |
1267 | - | txt.Adornee = nil |
1267 | + | Swait() |
1268 | - | txt.Name = "NameDetect" |
1268 | + | P.CFrame = P.CFrame * CF(0,0.9,0) |
1269 | - | txt.Size = UDim2.new(4, 0, 1.2, 0) |
1269 | + | |
1270 | - | txt.StudsOffset = Vector3.new(-8, 8/1.5, 0) |
1270 | + | wait(1) |
1271 | - | local text = Instance.new("TextLabel", txt) |
1271 | + | for i = 1, 45 do |
1272 | - | text.Size = UDim2.new(10/2, 0, 7/2, 0) |
1272 | + | Swait() |
1273 | - | text.FontSize = "Size8" |
1273 | + | P.Transparency =P.Transparency + 1/45 |
1274 | - | text.TextScaled = true |
1274 | + | |
1275 | - | text.TextTransparency = 0 |
1275 | + | P:remove() |
1276 | - | text.BackgroundTransparency = 1 |
1276 | + | end)) |
1277 | - | text.TextTransparency = 0 |
1277 | + | RootPart.CFrame = RootPart.CFrame*CF(0,1,0) |
1278 | - | text.TextStrokeTransparency = 0 |
1278 | + | RootPart.Velocity = VT(0,0,0) |
1279 | - | text.Font = "Fantasy" |
1279 | + | local bv = Instance.new("BodyVelocity",RootPart) |
1280 | - | text.TextStrokeColor3 = Color3.new(1,1,1) |
1280 | + | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) |
1281 | - | text.TextColor3 = Color3.new(0,0,0) |
1281 | + | bv.velocity = CF(RootPart.Position,RootPart.Position+VT(0,100,0)).lookVector*350 |
1282 | - | text.Text = ">:C" |
1282 | + | Debris:AddItem(bv,0.1) |
1283 | end | |
1284 | - | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Really red' end) |
1284 | + | |
1285 | - | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Really red' end) |
1285 | + | |
1286 | function Ravage() | |
1287 | - | function RecolorTextAndRename(name,col1,col2) |
1287 | + | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) |
1288 | - | text.TextStrokeColor3 = col2 |
1288 | + | if HITFLOOR then |
1289 | - | text.TextColor3 = col1 |
1289 | + | ATTACK = true |
1290 | - | text.Text = name |
1290 | + | Rooted = false |
1291 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1292 | - | mouse=Player:GetMouse() |
1292 | + | Swait() |
1293 | - | --save shoulders |
1293 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) |
1294 | - | RSH, LSH=nil, nil |
1294 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed) |
1295 | - | --welds |
1295 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1296 | - | RW, LW=Instance.new("Weld"), Instance.new("Weld") |
1296 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1297 | - | RW.Name="Right Shoulder" LW.Name="Left Shoulder" |
1297 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1298 | - | LH=Torso["Left Hip"] |
1298 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1299 | - | RH=Torso["Right Hip"] |
1299 | + | |
1300 | - | TorsoColor=Torso.BrickColor |
1300 | + | WaveParticles(RightArm.CFrame*CF(0,-1,0).p,4,C3(1,1,1)) |
1301 | - | function NoOutline(Part) |
1301 | + | Rooted = true |
1302 | - | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 |
1302 | + | CreateSound(217767125, RightArm, 5, 1, false) |
1303 | for i=0, 0.15, 0.1 / Animation_Speed do | |
1304 | - | player=Player |
1304 | + | Swait() |
1305 | - | ch=Character |
1305 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) |
1306 | - | RSH=ch.Torso["Right Shoulder"] |
1306 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed) |
1307 | - | LSH=ch.Torso["Left Shoulder"] |
1307 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1308 | - | -- |
1308 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1309 | - | RSH.Parent=nil |
1309 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1310 | - | LSH.Parent=nil |
1310 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1311 | - | -- |
1311 | + | |
1312 | - | RW.Name="Right Shoulder" |
1312 | + | local HOLD = true |
1313 | - | RW.Part0=ch.Torso |
1313 | + | coroutine.resume(coroutine.create(function() |
1314 | - | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) |
1314 | + | repeat |
1315 | - | RW.C1=cf(0, 0.5, 0) |
1315 | + | Swait() |
1316 | - | RW.Part1=ch["Right Arm"] |
1316 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) |
1317 | - | RW.Parent=ch.Torso |
1317 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed) |
1318 | - | -- |
1318 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.2) * ANGLES(RAD(145), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1319 | - | LW.Name="Left Shoulder" |
1319 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1320 | - | LW.Part0=ch.Torso |
1320 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1321 | - | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) |
1321 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1322 | - | LW.C1=cf(0, 0.5, 0) |
1322 | + | until HOLD == false |
1323 | - | LW.Part1=ch["Left Arm"] |
1323 | + | end)) |
1324 | - | LW.Parent=ch.Torso |
1324 | + | repeat |
1325 | wait(0.3) | |
1326 | - | local Stats=Instance.new("BoolValue") |
1326 | + | |
1327 | - | Stats.Name="Stats" |
1327 | + | local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) |
1328 | - | Stats.Parent=Character |
1328 | + | if HITFLOOR then |
1329 | - | local Atk=Instance.new("NumberValue") |
1329 | + | if HITFLOOR.Anchored == true then |
1330 | - | Atk.Name="Damage" |
1330 | + | local ROCK = GetRock(HITFLOOR) |
1331 | - | Atk.Parent=Stats |
1331 | + | CreateSound(130972023, ROCK, 2, MRANDOM(8,12)/10, false) |
1332 | - | Atk.Value=1 |
1332 | + | ROCK.Size = VT(10,10,10)*(MRANDOM(8,12)/10) |
1333 | - | local Def=Instance.new("NumberValue") |
1333 | + | ROCK.Core.Emit.Enabled = true |
1334 | - | Def.Name="Defense" |
1334 | + | ROCK.CFrame = CF(HITPOS+VT(0,-6,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) |
1335 | - | Def.Parent=Stats |
1335 | + | local POS = ROCK.CFrame*CF(0,12,0) |
1336 | - | Def.Value=1 |
1336 | + | for i = 1, 25 do |
1337 | - | local Speed=Instance.new("NumberValue") |
1337 | + | ROCK.Anchored = true |
1338 | - | Speed.Name="Speed" |
1338 | + | Swait() |
1339 | - | Speed.Parent=Stats |
1339 | + | ROCK.CFrame = Clerp(ROCK.CFrame, POS, 0.8 / Animation_Speed) |
1340 | - | Speed.Value=1 |
1340 | + | |
1341 | - | local Mvmt=Instance.new("NumberValue") |
1341 | + | ROCK.Core.Emit.Enabled = false |
1342 | - | Mvmt.Name="Movement" |
1342 | + | wait(0.3) |
1343 | - | Mvmt.Parent=Stats |
1343 | + | RockExplosion(ROCK,1) |
1344 | - | Mvmt.Value=1 |
1344 | + | |
1345 | end | |
1346 | - | local donum=0 |
1346 | + | |
1347 | until KEYHOLD == false | |
1348 | wait(0.5) | |
1349 | - | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) |
1349 | + | HOLD = false |
1350 | - | local fp=it("Part") |
1350 | + | ATTACK = false |
1351 | - | fp.formFactor=formfactor |
1351 | + | Rooted = false |
1352 | - | fp.Parent=parent |
1352 | + | |
1353 | - | fp.Reflectance=reflectance |
1353 | + | |
1354 | - | fp.Transparency=transparency |
1354 | + | |
1355 | - | fp.CanCollide=false |
1355 | + | ATTACK = true |
1356 | - | fp.Locked=true |
1356 | + | Rooted = false |
1357 | - | fp.BrickColor=brickcolor |
1357 | + | local GYRO = IT("BodyGyro",RootPart) |
1358 | - | fp.Name=name |
1358 | + | GYRO.D = 2 |
1359 | - | fp.Size=size |
1359 | + | GYRO.P = 2000 |
1360 | - | fp.Position=Torso.Position |
1360 | + | GYRO.MaxTorque = VT(40000000000,4000000,40000000000) |
1361 | - | NoOutline(fp) |
1361 | + | local GRAV = IT("BodyPosition",RootPart) |
1362 | - | fp.Material="SmoothPlastic" |
1362 | + | GRAV.D = 250 |
1363 | - | fp:BreakJoints() |
1363 | + | GRAV.P = 20000 |
1364 | - | return fp |
1364 | + | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) |
1365 | - | end |
1365 | + | GRAV.Position = RootPart.Position |
1366 | coroutine.resume(coroutine.create(function() | |
1367 | - | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
1367 | + | repeat |
1368 | - | local mesh=it(Mesh) |
1368 | + | Swait() |
1369 | - | mesh.Parent=part |
1369 | + | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) |
1370 | - | if Mesh=="SpecialMesh" then |
1370 | + | until ATTACK == false |
1371 | - | mesh.MeshType=meshtype |
1371 | + | GYRO:Remove() |
1372 | - | if meshid~="nil" then |
1372 | + | GRAV:Remove() |
1373 | - | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid |
1373 | + | end)) |
1374 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1375 | Swait() | |
1376 | - | mesh.Offset=offset |
1376 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80)), 1 / Animation_Speed) |
1377 | - | mesh.Scale=scale |
1377 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 1 / Animation_Speed) |
1378 | - | return mesh |
1378 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1379 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1380 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1381 | - | function weld(parent,part0,part1,c0) |
1381 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1382 | - | local weld=it("Weld") |
1382 | + | |
1383 | - | weld.Parent=parent |
1383 | + | function TwinMeteor() |
1384 | - | weld.Part0=part0 |
1384 | + | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character) |
1385 | - | weld.Part1=part1 |
1385 | + | if HITFLOOR == nil then |
1386 | - | weld.C0=c0 |
1386 | + | ATTACK = true |
1387 | - | return weld |
1387 | + | Rooted = false |
1388 | local GYRO = IT("BodyGyro",RootPart) | |
1389 | GYRO.D = 2 | |
1390 | - | local Color1=Torso.BrickColor |
1390 | + | GYRO.P = 2000 |
1391 | GYRO.MaxTorque = VT(40000000000,4000000,40000000000) | |
1392 | - | local bodvel=Instance.new("BodyVelocity") |
1392 | + | local GRAV = IT("BodyPosition",RootPart) |
1393 | - | local bg=Instance.new("BodyGyro") |
1393 | + | GRAV.D = 250 |
1394 | GRAV.P = 20000 | |
1395 | - | --// Artificial HB \\-- |
1395 | + | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) |
1396 | GRAV.Position = RootPart.Position | |
1397 | - | local ArtificialHB = Instance.new("BindableEvent", script) |
1397 | + | coroutine.resume(coroutine.create(function() |
1398 | - | ArtificialHB.Name = "Heartbeat" |
1398 | + | repeat |
1399 | Swait() | |
1400 | - | script:WaitForChild("Heartbeat") |
1400 | + | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) |
1401 | until ATTACK == false | |
1402 | - | local tf = 0 |
1402 | + | GYRO:Remove() |
1403 | - | local allowframeloss = false |
1403 | + | GRAV:Remove() |
1404 | - | local tossremainder = false |
1404 | + | end)) |
1405 | - | local lastframe = tick() |
1405 | + | local CHARGED = false |
1406 | - | local frame = 1/60 |
1406 | + | coroutine.resume(coroutine.create(function() |
1407 | - | ArtificialHB:Fire() |
1407 | + | repeat |
1408 | Swait() | |
1409 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1410 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1411 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1412 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1413 | - | script.Heartbeat:Fire() |
1413 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1414 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1415 | until CHARGED == true | |
1416 | end)) | |
1417 | - | ArtificialHB:Fire() |
1417 | + | local ROCK1 = GetRock() |
1418 | local ROCK2 = GetRock() | |
1419 | local VORTEX1 = script.Vortex:Clone() | |
1420 | local VORTEX2 = script.Vortex:Clone() | |
1421 | VORTEX1.Parent = ROCK1.Core | |
1422 | VORTEX2.Parent = ROCK2.Core | |
1423 | ROCK1.Core.Emit.Enabled = true | |
1424 | ROCK2.Core.Emit.Enabled = true | |
1425 | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) | |
1426 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
1427 | CreateSound(1664710821, ROCK1, 10, MRANDOM(8,12)/10, false) | |
1428 | CreateSound(1664710821, ROCK2, 10, MRANDOM(8,12)/10, false) | |
1429 | - | function swait(num) |
1429 | + | for i = 1, 70 do |
1430 | - | if num == 0 or num == nil then |
1430 | + | Swait() |
1431 | ROCK1.Size = ROCK1.Size + VT(10.3,10.3,10.3) | |
1432 | ROCK2.Size = ROCK2.Size + VT(10.3,10.3,10.3) | |
1433 | - | for i = 0, num do |
1433 | + | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) |
1434 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
1435 | VORTEX1.Size = NumberSequence.new(ROCK1.Size.Y*2,0) | |
1436 | VORTEX2.Size = NumberSequence.new(ROCK1.Size.Y*2,0) | |
1437 | VORTEX1:Emit(1) | |
1438 | VORTEX2:Emit(1) | |
1439 | - | -------- RAINBOW LEAVE IT TO ME |
1439 | + | |
1440 | - | local r = 255 |
1440 | + | CHARGED = true |
1441 | - | local g = 0 |
1441 | + | for i=0, 1, 0.1 / Animation_Speed do |
1442 | - | local b = 0 |
1442 | + | Swait() |
1443 | - | coroutine.resume(coroutine.create(function() |
1443 | + | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) |
1444 | - | while wait() do |
1444 | + | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) |
1445 | - | for i = 0, 254/5 do |
1445 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1446 | - | swait() |
1446 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1447 | - | g = g + 5 |
1447 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1448 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1449 | - | for i = 0, 254/5 do |
1449 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1450 | - | swait() |
1450 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1451 | - | r = r - 5 |
1451 | + | |
1452 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1453 | - | for i = 0, 254/5 do |
1453 | + | Swait() |
1454 | - | swait() |
1454 | + | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) |
1455 | - | b = b + 5 |
1455 | + | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) |
1456 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1457 | - | for i = 0, 254/5 do |
1457 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) |
1458 | - | swait() |
1458 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1459 | - | g = g - 5 |
1459 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1460 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1461 | - | for i = 0, 254/5 do |
1461 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1462 | - | swait() |
1462 | + | |
1463 | - | r = r + 5 |
1463 | + | coroutine.resume(coroutine.create(function() |
1464 | local Rock = ROCK1 | |
1465 | - | for i = 0, 254/5 do |
1465 | + | WaveParticles(Rock.Position,30,C3(1,1,1)) |
1466 | - | swait() |
1466 | + | CreateSound(134012322, Rock, 2, MRANDOM(10,12)/10, false) |
1467 | - | b = b - 5 |
1467 | + | for i = 1, 200 do |
1468 | Swait() | |
1469 | Rock.CFrame = Rock.CFrame * CF(0,0,-3.2) | |
1470 | - | end)) |
1470 | + | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) |
1471 | if HIT then | |
1472 | RespondToImpact(HIT,Rock) | |
1473 | - | so = function(id,par,vol,pit) |
1473 | + | break |
1474 | - | coroutine.resume(coroutine.create(function() |
1474 | + | |
1475 | - | local sou = Instance.new("Sound",par or workspace) |
1475 | + | |
1476 | - | sou.Volume=vol |
1476 | + | ApplyAoE(Rock.Position,ROCK.Size.Y,50,55,55,false) |
1477 | - | sou.Pitch=pit or 1 |
1477 | + | for i = 1, 6 do |
1478 | - | sou.SoundId=id |
1478 | + | RockExplosion(Rock,1.5,true) |
1479 | - | swait() |
1479 | + | wait(1) |
1480 | - | sou:play() |
1480 | + | |
1481 | - | game:GetService("Debris"):AddItem(sou,6) |
1481 | + | RockExplosion(Rock,1.5) |
1482 | - | end)) |
1482 | + | end)) |
1483 | for i=0, 1, 0.1 / Animation_Speed do | |
1484 | Swait() | |
1485 | - | function clerp(a,b,t) |
1485 | + | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) |
1486 | - | return a:lerp(b,t) |
1486 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) |
1487 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 1 / Animation_Speed) | |
1488 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1489 | - | local function CFrameFromTopBack(at, top, back) |
1489 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1490 | - | local right = top:Cross(back) |
1490 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1491 | - | return CFrame.new(at.x, at.y, at.z, |
1491 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1492 | - | right.x, top.x, back.x, |
1492 | + | |
1493 | - | right.y, top.y, back.y, |
1493 | + | for i=0, 0.5, 0.1 / Animation_Speed do |
1494 | - | right.z, top.z, back.z) |
1494 | + | Swait() |
1495 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
1496 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1497 | - | function Triangle(a, b, c) |
1497 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) |
1498 | - | local edg1 = (c-a):Dot((b-a).unit) |
1498 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1499 | - | local edg2 = (a-b):Dot((c-b).unit) |
1499 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1500 | - | local edg3 = (b-c):Dot((a-c).unit) |
1500 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1501 | - | if edg1 <= (b-a).magnitude and edg1 >= 0 then |
1501 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1502 | - | a, b, c = a, b, c |
1502 | + | |
1503 | - | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then |
1503 | + | coroutine.resume(coroutine.create(function() |
1504 | - | a, b, c = b, c, a |
1504 | + | local Rock = ROCK2 |
1505 | - | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then |
1505 | + | WaveParticles(Rock.Position,30,C3(1,1,1)) |
1506 | - | a, b, c = c, a, b |
1506 | + | CreateSound(134012322, Rock, 2, MRANDOM(10,12)/10, false) |
1507 | - | else |
1507 | + | for i = 1, 200 do |
1508 | - | assert(false, "unreachable") |
1508 | + | Swait() |
1509 | Rock.CFrame = Rock.CFrame * CF(0,0,-3.2) | |
1510 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) | |
1511 | - | local len1 = (c-a):Dot((b-a).unit) |
1511 | + | if HIT then |
1512 | - | local len2 = (b-a).magnitude - len1 |
1512 | + | RespondToImpact(HIT,Rock) |
1513 | - | local width = (a + (b-a).unit*len1 - c).magnitude |
1513 | + | break |
1514 | end | |
1515 | - | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) |
1515 | + | |
1516 | ApplyAoE(Rock.Position,ROCK.Size.Y,50,55,55,false) | |
1517 | - | local list = {} |
1517 | + | for i = 1, 6 do |
1518 | RockExplosion(Rock,1.5,true) | |
1519 | - | if len1 > 0.01 then |
1519 | + | wait(1) |
1520 | - | local w1 = Instance.new('WedgePart', m) |
1520 | + | |
1521 | - | game:GetService("Debris"):AddItem(w1,5) |
1521 | + | RockExplosion(Rock,1.5) |
1522 | - | w1.Material = "SmoothPlastic" |
1522 | + | end)) |
1523 | - | w1.FormFactor = 'Custom' |
1523 | + | for i=0, 1, 0.1 / Animation_Speed do |
1524 | - | w1.BrickColor = BrickColor.new("Really black") |
1524 | + | Swait() |
1525 | - | w1.Transparency = 0 |
1525 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed) |
1526 | - | w1.Reflectance = 0 |
1526 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) |
1527 | - | w1.Material = "SmoothPlastic" |
1527 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1528 | - | w1.CanCollide = false |
1528 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(55), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1529 | - | local l1 = Instance.new("PointLight",w1) |
1529 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1530 | - | l1.Color = Color3.new(170,0,0) |
1530 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1531 | - | NoOutline(w1) |
1531 | + | |
1532 | - | local sz = Vector3.new(0.2, width, len1) |
1532 | + | ATTACK = false |
1533 | - | w1.Size = sz |
1533 | + | Rooted = false |
1534 | - | local sp = Instance.new("SpecialMesh",w1) |
1534 | + | |
1535 | - | sp.MeshType = "Wedge" |
1535 | + | |
1536 | - | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size |
1536 | + | |
1537 | - | w1:BreakJoints() |
1537 | + | function Spikes() |
1538 | - | w1.Anchored = true |
1538 | + | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 12, Character) |
1539 | - | w1.Parent = workspace |
1539 | + | if HITFLOOR then |
1540 | - | w1.Transparency = 0.7 |
1540 | + | ATTACK = true |
1541 | - | table.insert(Effects,{w1,"Disappear",.01}) |
1541 | + | Rooted = true |
1542 | - | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) |
1542 | + | local GYRO = IT("BodyGyro",RootPart) |
1543 | - | table.insert(list,w1) |
1543 | + | GYRO.D = 2 |
1544 | GYRO.P = 2000 | |
1545 | GYRO.MaxTorque = VT(0,4000000,0) | |
1546 | - | if len2 > 0.01 then |
1546 | + | coroutine.resume(coroutine.create(function() |
1547 | - | local w2 = Instance.new('WedgePart', m) |
1547 | + | repeat |
1548 | - | game:GetService("Debris"):AddItem(w2,5) |
1548 | + | Swait() |
1549 | - | w2.Material = "SmoothPlastic" |
1549 | + | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) |
1550 | - | w2.FormFactor = 'Custom' |
1550 | + | until ATTACK == false |
1551 | - | w2.BrickColor = BrickColor.new("Really black") |
1551 | + | GYRO:Remove() |
1552 | - | w2.Transparency = 0 |
1552 | + | end)) |
1553 | - | w2.Reflectance = 0 |
1553 | + | for i=0, 1, 0.1 / Animation_Speed do |
1554 | - | w2.Material = "SmoothPlastic" |
1554 | + | Swait() |
1555 | - | w2.CanCollide = false |
1555 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed) |
1556 | - | local l2 = Instance.new("PointLight",w2) |
1556 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) |
1557 | - | l2.Color = Color3.new(170,0,0) |
1557 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
1558 | - | NoOutline(w2) |
1558 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
1559 | - | local sz = Vector3.new(0.2, width, len2) |
1559 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(30), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
1560 | - | w2.Size = sz |
1560 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
1561 | - | local sp = Instance.new("SpecialMesh",w2) |
1561 | + | |
1562 | - | sp.MeshType = "Wedge" |
1562 | + | for i=0, 0.25, 0.1 / Animation_Speed do |
1563 | - | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size |
1563 | + | Swait() |
1564 | - | w2:BreakJoints() |
1564 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1565 | - | w2.Anchored = true |
1565 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) |
1566 | - | w2.Parent = workspace |
1566 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1567 | - | w2.Transparency = 0.7 |
1567 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1568 | - | table.insert(Effects,{w2,"Disappear",.01}) |
1568 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1569 | - | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) |
1569 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1570 | - | table.insert(list,w2) |
1570 | + | |
1571 | CreateSound(165970126, RightLeg, 1, MRANDOM(13,15)/10, false) | |
1572 | - | return unpack(list) |
1572 | + | WaveParticles(RightLeg.CFrame*CF(0,-1,0).p,15,C3(1,1,1)) |
1573 | coroutine.resume(coroutine.create(function() | |
1574 | local CFRAME = RootPart.CFrame*CF(0,-3,0) | |
1575 | for i = 1, 60 do | |
1576 | - | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) |
1576 | + | Swait() |
1577 | - | if hit.Parent == nil then |
1577 | + | local SPIKE = GetSpike(HITFLOOR) |
1578 | - | return |
1578 | + | SPIKE.CFrame = CFRAME*CF(0,-11,-i*2) |
1579 | - | end |
1579 | + | ApplyAoE(CFRAME*CF(0,0,-i*2).p,4,10,35,15,false) |
1580 | - | local h = hit.Parent:FindFirstChildOfClass("Humanoid") |
1580 | + | coroutine.resume(coroutine.create(function() |
1581 | - | for _, v in pairs(hit.Parent:children()) do |
1581 | + | local POS = SPIKE.CFrame*CF(0,11,0) |
1582 | - | if v:IsA("Humanoid") then |
1582 | + | for i = 1, 25 do |
1583 | - | h = v |
1583 | + | Swait() |
1584 | - | end |
1584 | + | SPIKE.CFrame = Clerp(SPIKE.CFrame, POS, 0.8 / Animation_Speed) |
1585 | - | end |
1585 | + | |
1586 | - | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then |
1586 | + | wait(0.2) |
1587 | - | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then |
1587 | + | for i = 1, 45 do |
1588 | - | return |
1588 | + | Swait() |
1589 | - | end |
1589 | + | SPIKE.Transparency = SPIKE.Transparency + 1/45 |
1590 | - | local c = Create("ObjectValue")({ |
1590 | + | SPIKE.CFrame = SPIKE.CFrame * CF(0,-2/15,0) |
1591 | - | Name = "creator", |
1591 | + | |
1592 | - | Value = game:service("Players").LocalPlayer, |
1592 | + | SPIKE:remove() |
1593 | - | Parent = h |
1593 | + | end)) |
1594 | - | }) |
1594 | + | |
1595 | - | game:GetService("Debris"):AddItem(c, 0.5) |
1595 | + | end)) |
1596 | - | if HitSound ~= nil and HitPitch ~= nil then |
1596 | + | wait(0.3) |
1597 | - | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) |
1597 | + | ATTACK = false |
1598 | - | end |
1598 | + | Rooted = false |
1599 | - | local Damage = math.random(minim, maxim) |
1599 | + | |
1600 | - | local blocked = false |
1600 | + | |
1601 | - | local block = hit.Parent:findFirstChild("Block") |
1601 | + | |
1602 | - | if block ~= nil and block.className == "IntValue" and block.Value > 0 then |
1602 | + | function TakeOnMe() |
1603 | - | blocked = true |
1603 | + | Speed = 5 |
1604 | - | block.Value = block.Value - 1 |
1604 | + | local MEME = CreateSound(288703954, Effects, 2, 1, false) |
1605 | - | print(block.Value) |
1605 | + | ATTACK = true |
1606 | - | end |
1606 | + | Rooted = false |
1607 | - | if blocked == false then |
1607 | + | local DANCE = true |
1608 | - | HitHealth = h.Health |
1608 | + | local KEY = Mouse.KeyDown:connect(function(NEWKEY) |
1609 | - | h.Health = h.Health - Damage |
1609 | + | if NEWKEY == "p" then |
1610 | - | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then |
1610 | + | DANCE = false |
1611 | - | print("gained kill") |
1611 | + | |
1612 | - | end |
1612 | + | |
1613 | - | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) |
1613 | + | PLAYSONG = false |
1614 | - | else |
1614 | + | while true do |
1615 | - | h.Health = h.Health - Damage / 2 |
1615 | + | for i = 1, 15 do |
1616 | - | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) |
1616 | + | Swait() |
1617 | - | end |
1617 | + | MEME.Parent = Effects |
1618 | - | if Type == "Knockdown" then |
1618 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1619 | - | local hum = hit.Parent:FindFirstChildOfClass'Humanoid' |
1619 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1620 | - | hum.PlatformStand = true |
1620 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1621 | - | coroutine.resume(coroutine.create(function(HHumanoid) |
1621 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1622 | - | swait(1) |
1622 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1623 | - | HHumanoid.PlatformStand = false |
1623 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1624 | - | end), hum) |
1624 | + | |
1625 | - | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit |
1625 | + | if DANCE == false then |
1626 | - | local bodvol = Create("BodyVelocity")({ |
1626 | + | break |
1627 | - | velocity = angle * knockback, |
1627 | + | |
1628 | - | P = 5000, |
1628 | + | for i = 1, 15 do |
1629 | - | maxForce = Vector3.new(8000, 8000, 8000), |
1629 | + | Swait() |
1630 | - | Parent = hit |
1630 | + | MEME.Parent = Effects |
1631 | - | }) |
1631 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1632 | - | local rl = Create("BodyAngularVelocity")({ |
1632 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1633 | - | P = 3000, |
1633 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1634 | - | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, |
1634 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1635 | - | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), |
1635 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1636 | - | Parent = hit |
1636 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1637 | - | }) |
1637 | + | |
1638 | - | game:GetService("Debris"):AddItem(bodvol, 0.5) |
1638 | + | |
1639 | - | game:GetService("Debris"):AddItem(rl, 0.5) |
1639 | + | PLAYSONG = true |
1640 | - | elseif Type == "Normal" then |
1640 | + | KEY:Disconnect() |
1641 | - | local vp = Create("BodyVelocity")({ |
1641 | + | MEME:remove() |
1642 | - | P = 500, |
1642 | + | Speed = 25 |
1643 | - | maxForce = Vector3.new(math.huge, 0, math.huge), |
1643 | + | ATTACK = false |
1644 | - | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 |
1644 | + | Rooted = false |
1645 | - | }) |
1645 | + | |
1646 | - | if knockback > 0 then |
1646 | + | |
1647 | - | vp.Parent = hit.Parent.Head |
1647 | + | function Noclip() |
1648 | - | end |
1648 | + | ATTACK = true |
1649 | - | game:GetService("Debris"):AddItem(vp, 0.5) |
1649 | + | Rooted = true |
1650 | - | elseif Type == "Up" then |
1650 | + | UNANCHOR = false |
1651 | - | local bodyVelocity = Create("BodyVelocity")({ |
1651 | + | RootPart.Anchored = true |
1652 | - | velocity = Vector3.new(0, 20, 0), |
1652 | + | local CLIPPING = true |
1653 | - | P = 5000, |
1653 | + | local MOVEMENT = nil |
1654 | - | maxForce = Vector3.new(8000, 8000, 8000), |
1654 | + | CreateSound(96098241, Torso, 3, MRANDOM(9,12)/10, false) |
1655 | - | Parent = hit |
1655 | + | |
1656 | - | }) |
1656 | + | Swait() |
1657 | - | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) |
1657 | + | EXTRATRANS = EXTRATRANS + 0.5/50 |
1658 | - | local bodyVelocity = Create("BodyVelocity")({ |
1658 | + | RootPart.CFrame = RootPart.CFrame * CF(0,(1-(i/50))/4.3,0) |
1659 | - | velocity = Vector3.new(0, 20, 0), |
1659 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1660 | - | P = 5000, |
1660 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1661 | - | maxForce = Vector3.new(8000, 8000, 8000), |
1661 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1662 | - | Parent = hit |
1662 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1663 | - | }) |
1663 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) |
1664 | - | game:GetService("Debris"):AddItem(bodyVelocity, 1) |
1664 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) |
1665 | - | elseif Type == "Leech" then |
1665 | + | |
1666 | - | local hum = hit.Parent:FindFirstChildOfClass'Humanoid' |
1666 | + | local AURA = CreateSound(1393698948, Torso, 3, 1, true) |
1667 | - | if hum ~= nil then |
1667 | + | local KEY = Mouse.KeyDown:connect(function(NEWKEY) |
1668 | - | for i = 0, 2 do |
1668 | + | if NEWKEY == "w" then |
1669 | - | Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) |
1669 | + | MOVEMENT = "Forward" |
1670 | - | end |
1670 | + | repeat |
1671 | - | Humanoid.Health = Humanoid.Health + 10 |
1671 | + | Swait() |
1672 | - | end |
1672 | + | RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.2) |
1673 | - | elseif Type == "UpKnock" then |
1673 | + | until KEYHOLD == false |
1674 | - | local hum = hit.Parent:FindFirstChildOfClass'Humanoid' |
1674 | + | elseif NEWKEY == "s" then |
1675 | - | hum.PlatformStand = true |
1675 | + | MOVEMENT = "Backwards" |
1676 | - | if hum ~= nil then |
1676 | + | repeat |
1677 | - | hitr = true |
1677 | + | Swait() |
1678 | - | end |
1678 | + | RootPart.CFrame = RootPart.CFrame * CF(0,0,0.2) |
1679 | - | coroutine.resume(coroutine.create(function(HHumanoid) |
1679 | + | until KEYHOLD == false |
1680 | - | swait(5) |
1680 | + | elseif NEWKEY == "a" then |
1681 | - | HHumanoid.PlatformStand = false |
1681 | + | MOVEMENT = "Strafe" |
1682 | - | hitr = false |
1682 | + | repeat |
1683 | - | end), hum) |
1683 | + | Swait() |
1684 | - | local bodyVelocity = Create("BodyVelocity")({ |
1684 | + | RootPart.CFrame = RootPart.CFrame * CF(0.2,0,0) |
1685 | - | velocity = Vector3.new(0, 20, 0), |
1685 | + | until KEYHOLD == false |
1686 | - | P = 5000, |
1686 | + | elseif NEWKEY == "d" then |
1687 | - | maxForce = Vector3.new(8000, 8000, 8000), |
1687 | + | MOVEMENT = "Strafe" |
1688 | - | Parent = hit |
1688 | + | repeat |
1689 | - | }) |
1689 | + | Swait() |
1690 | - | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) |
1690 | + | RootPart.CFrame = RootPart.CFrame * CF(-0.2,0,0) |
1691 | - | local bodyVelocity = Create("BodyVelocity")({ |
1691 | + | until KEYHOLD == false |
1692 | - | velocity = Vector3.new(0, 20, 0), |
1692 | + | elseif NEWKEY == "y" then |
1693 | - | P = 5000, |
1693 | + | CLIPPING = false |
1694 | - | maxForce = Vector3.new(8000, 8000, 8000), |
1694 | + | |
1695 | - | Parent = hit |
1695 | + | MOVEMENT = nil |
1696 | - | }) |
1696 | + | |
1697 | - | game:GetService("Debris"):AddItem(bodyVelocity, 1) |
1697 | + | local LOOP = 0 |
1698 | - | elseif Type == "Snare" then |
1698 | + | repeat |
1699 | - | local bp = Create("BodyPosition")({ |
1699 | + | Swait() |
1700 | - | P = 2000, |
1700 | + | AURA.Parent = Torso |
1701 | - | D = 100, |
1701 | + | LOOP = LOOP + 1 |
1702 | - | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
1702 | + | if LOOP >= 15 then |
1703 | - | position = hit.Parent.Torso.Position, |
1703 | + | LOOP = 0 |
1704 | - | Parent = hit.Parent.Torso |
1704 | + | WaveParticles(Torso.Position,15,C3(1,1,1)) |
1705 | - | }) |
1705 | + | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-3.5,0).p), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1706 | - | game:GetService("Debris"):AddItem(bp, 1) |
1706 | + | |
1707 | - | elseif Type == "Slashnare" then |
1707 | + | if MOVEMENT == nil then |
1708 | - | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07) |
1708 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1709 | - | for i = 1, math.random(4, 5) do |
1709 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1710 | - | Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) |
1710 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1711 | - | end |
1711 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1712 | - | local bp = Create("BodyPosition")({ |
1712 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
1713 | - | P = 2000, |
1713 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
1714 | - | D = 100, |
1714 | + | elseif MOVEMENT == "Forward" then |
1715 | - | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
1715 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
1716 | - | position = hit.Parent.Torso.Position, |
1716 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1717 | - | Parent = hit.Parent.Torso |
1717 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1718 | - | }) |
1718 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1719 | - | game:GetService("Debris"):AddItem(bp, 1) |
1719 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
1720 | - | elseif Type == "Spike" then |
1720 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
1721 | - | CreateBigIceSword(hit.Parent.Torso.CFrame) |
1721 | + | elseif MOVEMENT == "Backwards" then |
1722 | - | local bp = Create("BodyPosition")({ |
1722 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) |
1723 | - | P = 2000, |
1723 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1724 | - | D = 100, |
1724 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1725 | - | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
1725 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1726 | - | position = hit.Parent.Torso.Position, |
1726 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
1727 | - | Parent = hit.Parent.Torso |
1727 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
1728 | - | }) |
1728 | + | elseif MOVEMENT == "Strafe" then |
1729 | - | game:GetService("Debris"):AddItem(bp, 1) |
1729 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed) |
1730 | - | elseif Type == "Freeze" then |
1730 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1731 | - | local BodPos = Create("BodyPosition")({ |
1731 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1732 | - | P = 50000, |
1732 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1733 | - | D = 1000, |
1733 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
1734 | - | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
1734 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
1735 | - | position = hit.Parent.Torso.Position, |
1735 | + | |
1736 | - | Parent = hit.Parent.Torso |
1736 | + | until CLIPPING == false |
1737 | - | }) |
1737 | + | KEY:Disconnect() |
1738 | - | local BodGy = Create("BodyGyro")({ |
1738 | + | coroutine.resume(coroutine.create(function() |
1739 | - | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, |
1739 | + | for i = 1, 20 do |
1740 | - | P = 20000, |
1740 | + | Swait() |
1741 | - | Parent = hit.Parent.Torso, |
1741 | + | AURA.Volume = AURA.Volume - 3/20 |
1742 | - | cframe = hit.Parent.Torso.CFrame |
1742 | + | |
1743 | - | }) |
1743 | + | AURA:remove() |
1744 | - | hit.Parent.Torso.Anchored = true |
1744 | + | end)) |
1745 | - | coroutine.resume(coroutine.create(function(Part) |
1745 | + | CreateSound(814168787, Torso, 1, MRANDOM(9,12)/10, false) |
1746 | - | swait(1.5) |
1746 | + | |
1747 | - | Part.Anchored = false |
1747 | + | Swait() |
1748 | - | end), hit.Parent.Torso) |
1748 | + | EXTRATRANS = EXTRATRANS - 0.5/50 |
1749 | - | game:GetService("Debris"):AddItem(BodPos, 3) |
1749 | + | RootPart.CFrame = RootPart.CFrame * CF(0,-(1-(i/50))/4.3,0) |
1750 | - | game:GetService("Debris"):AddItem(BodGy, 3) |
1750 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1751 | - | end |
1751 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1752 | - | local debounce = Create("BoolValue")({ |
1752 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1753 | - | Name = "DebounceHit", |
1753 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1754 | - | Parent = hit.Parent, |
1754 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) |
1755 | - | Value = true |
1755 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) |
1756 | - | }) |
1756 | + | |
1757 | - | game:GetService("Debris"):AddItem(debounce, Delay) |
1757 | + | EXTRATRANS = 0 |
1758 | - | c = Instance.new("ObjectValue") |
1758 | + | UNANCHOR = true |
1759 | - | c.Name = "creator" |
1759 | + | ATTACK = false |
1760 | - | c.Value = Player |
1760 | + | Rooted = false |
1761 | - | c.Parent = h |
1761 | + | |
1762 | - | game:GetService("Debris"):AddItem(c, 0.5) |
1762 | + | |
1763 | - | end |
1763 | + | function Taunt() |
1764 | ATTACK = true | |
1765 | - | function ShowDamage(Pos, Text, Time, Color) |
1765 | + | Rooted = true |
1766 | - | local Rate = 0.03333333333333333 |
1766 | + | local TAUNT = CreateSound(159882635, Torso, 7, 1, false) |
1767 | - | local Pos = Pos or Vector3.new(0, 0, 0) |
1767 | + | repeat |
1768 | - | local Text = Text or "" |
1768 | + | Swait() |
1769 | - | local Time = Time or 2 |
1769 | + | TAUNT.Parent = Torso |
1770 | - | local Color = Color or Color3.new(1, 0, 1) |
1770 | + | TAUNT.Playing = true |
1771 | - | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) |
1771 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1772 | - | EffectPart.Anchored = true |
1772 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) |
1773 | - | local BillboardGui = Create("BillboardGui")({ |
1773 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1774 | - | Size = UDim2.new(3, 0, 3, 0), |
1774 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1775 | - | Adornee = EffectPart, |
1775 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1776 | - | Parent = EffectPart |
1776 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1777 | - | }) |
1777 | + | until TAUNT.TimePosition >= 1.25 |
1778 | - | local TextLabel = Create("TextLabel")({ |
1778 | + | for i=0, 1.6, 0.1 / Animation_Speed do |
1779 | - | BackgroundTransparency = 1, |
1779 | + | Swait() |
1780 | - | Size = UDim2.new(1, 0, 1, 0), |
1780 | + | TAUNT.Parent = Torso |
1781 | - | Text = Text, |
1781 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) |
1782 | - | TextColor3 = Color, |
1782 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) |
1783 | - | TextScaled = true, |
1783 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1784 | - | Font = Enum.Font.ArialBold, |
1784 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1785 | - | Parent = BillboardGui |
1785 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1786 | - | }) |
1786 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1787 | - | game.Debris:AddItem(EffectPart, Time + 0.1) |
1787 | + | |
1788 | - | EffectPart.Parent = game:GetService("Workspace") |
1788 | + | ATTACK = false |
1789 | - | delay(0, function() |
1789 | + | Rooted = false |
1790 | - | local Frames = Time / Rate |
1790 | + | |
1791 | - | for Frame = 1, Frames do |
1791 | + | |
1792 | - | wait(Rate) |
1792 | + | --//=================================\\ |
1793 | - | local Percent = Frame / Frames |
1793 | + | --|| ASSIGN THINGS TO KEYS |
1794 | - | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) |
1794 | + | --\\=================================// |
1795 | - | TextLabel.TextTransparency = Percent |
1795 | + | |
1796 | - | end |
1796 | + | function MouseDown(Mouse) |
1797 | - | if EffectPart and EffectPart.Parent then |
1797 | + | if ATTACK == false then |
1798 | - | EffectPart:Destroy() |
1798 | + | |
1799 | - | end |
1799 | + | |
1800 | - | end) |
1800 | + | |
1801 | function MouseUp(Mouse) | |
1802 | - | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) |
1802 | + | HOLD = false |
1803 | - | for _, c in pairs(workspace:children()) do |
1803 | + | |
1804 | - | local hum = c:findFirstChildOfClass("Humanoid") |
1804 | + | |
1805 | - | if hum ~= nil then |
1805 | + | function KeyDown(Key) |
1806 | - | local head = c:findFirstChild("Head") |
1806 | + | KEYHOLD = true |
1807 | - | if head ~= nil then |
1807 | + | if Key == "z" and ATTACK == false then |
1808 | - | local targ = head.Position - Part.Position |
1808 | + | Bullet() |
1809 | - | local mag = targ.magnitude |
1809 | + | |
1810 | - | if magni >= mag and c.Name ~= Player.Name then |
1810 | + | |
1811 | - | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) |
1811 | + | if Key == "b" and ATTACK == false then |
1812 | - | end |
1812 | + | Melee() |
1813 | - | end |
1813 | + | |
1814 | - | end |
1814 | + | |
1815 | - | end |
1815 | + | if Key == "c" and ATTACK == false then |
1816 | Launch() | |
1817 | end | |
1818 | - | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) |
1818 | + | |
1819 | - | for _, c in pairs(workspace:children()) do |
1819 | + | if Key == "v" and ATTACK == false then |
1820 | - | local hum = c:findFirstChild("Humanoid") |
1820 | + | Ravage() |
1821 | - | if hum ~= nil then |
1821 | + | |
1822 | - | local head = c:findFirstChild("Torso") |
1822 | + | |
1823 | - | if head ~= nil then |
1823 | + | if Key == "q" and ATTACK == false then |
1824 | - | local targ = head.Position - Part.Position |
1824 | + | Spikes() |
1825 | - | local mag = targ.magnitude |
1825 | + | |
1826 | - | if magni >= mag and c.Name ~= Player.Name then |
1826 | + | |
1827 | - | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) |
1827 | + | if Key == "x" and ATTACK == false then |
1828 | - | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) |
1828 | + | TwinMeteor() |
1829 | - | end |
1829 | + | |
1830 | - | end |
1830 | + | |
1831 | - | end |
1831 | + | if Key == "y" and ATTACK == false then |
1832 | - | end |
1832 | + | Noclip() |
1833 | end | |
1834 | ||
1835 | - | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants |
1835 | + | if Key == "p" and ATTACK == false then |
1836 | - | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) |
1836 | + | TakeOnMe() |
1837 | - | end |
1837 | + | |
1838 | ||
1839 | - | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) |
1839 | + | if Key == "t" and ATTACK == false then |
1840 | - | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
1840 | + | Taunt() |
1841 | - | prt.Anchored=true |
1841 | + | |
1842 | - | prt.CFrame=cframe |
1842 | + | |
1843 | - | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) |
1843 | + | if Key == "]" and ATTACK == false then |
1844 | - | --http://www.roblox.com/asset/?id=4770560 |
1844 | + | if PLAYSONG == true then |
1845 | - | game:GetService("Debris"):AddItem(prt,2) |
1845 | + | PLAYSONG = false |
1846 | - | CF=prt.CFrame |
1846 | + | |
1847 | - | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) |
1847 | + | PLAYSONG = true |
1848 | - | for i=0,1,0.2 do |
1848 | + | |
1849 | - | wait() |
1849 | + | |
1850 | - | Part.CFrame=CF*cf(0,0,-0.4) |
1850 | + | |
1851 | ||
1852 | - | for i=0,1,delay do |
1852 | + | function KeyUp(Key) |
1853 | - | wait() |
1853 | + | KEYHOLD = false |
1854 | - | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) |
1854 | + | |
1855 | - | Mesh.Scale=Mesh.Scale |
1855 | + | |
1856 | Mouse.Button1Down:connect(function(NEWKEY) | |
1857 | - | for i=0,1,0.1 do |
1857 | + | MouseDown(NEWKEY) |
1858 | - | wait() |
1858 | + | |
1859 | - | Part.Transparency=i |
1859 | + | Mouse.Button1Up:connect(function(NEWKEY) |
1860 | MouseUp(NEWKEY) | |
1861 | - | Part.Parent=nil |
1861 | + | |
1862 | - | end),prt,msh,CF) |
1862 | + | Mouse.KeyDown:connect(function(NEWKEY) |
1863 | KeyDown(NEWKEY) | |
1864 | end) | |
1865 | - | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) |
1865 | + | Mouse.KeyUp:connect(function(NEWKEY) |
1866 | - | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
1866 | + | KeyUp(NEWKEY) |
1867 | - | prt.Anchored=true |
1867 | + | |
1868 | - | prt.Material = "Neon" |
1868 | + | |
1869 | - | prt.CFrame=cframe |
1869 | + | --//=================================\\ |
1870 | - | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
1870 | + | --\\=================================// |
1871 | - | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) |
1871 | + | |
1872 | - | game:GetService("Debris"):AddItem(prt,5) |
1872 | + | function AntiTimeStop() |
1873 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
1873 | + | for _, c in pairs(Character:GetChildren()) do |
1874 | - | for i=0,1,delay do |
1874 | + | if c:IsA("BasePart") and c ~= RootPart then |
1875 | - | swait() |
1875 | + | c.Anchored = false |
1876 | - | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
1876 | + | |
1877 | - | Part.Transparency=i |
1877 | + | |
1878 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
1878 | + | if UNANCHOR == true then |
1879 | RootPart.Anchored = false | |
1880 | - | Part.Parent=nil |
1880 | + | |
1881 | - | end),prt,msh) |
1881 | + | |
1882 | end | |
1883 | end | |
1884 | - | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) |
1884 | + | |
1885 | - | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
1885 | + | --//=================================\\ |
1886 | - | prt.Anchored=true |
1886 | + | --|| WRAP THE WHOLE SCRIPT UP |
1887 | - | prt.Material = "Neon" |
1887 | + | --\\=================================// |
1888 | - | prt.CFrame=cframe |
1888 | + | |
1889 | - | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) |
1889 | + | Humanoid.Changed:connect(function(Jump) |
1890 | - | game:GetService("Debris"):AddItem(prt,5) |
1890 | + | if Jump == "Jump" and (Disable_Jump == true) then |
1891 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
1891 | + | Humanoid.Jump = false |
1892 | - | local rtype = rottype |
1892 | + | |
1893 | - | for i=0,1,delay do |
1893 | + | |
1894 | - | swait() |
1894 | + | |
1895 | - | if rtype == 1 then |
1895 | + | |
1896 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) |
1896 | + | Swait() |
1897 | - | elseif rtype == 2 then |
1897 | + | Head:ClearAllChildren() |
1898 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) |
1898 | + | script.Parent = WEAPONGUI |
1899 | ANIMATE.Parent = nil | |
1900 | - | Part.Transparency=i |
1900 | + | for _,v in next, Humanoid:GetPlayingAnimationTracks() do |
1901 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
1901 | + | v:Stop(); |
1902 | end | |
1903 | - | Part.Parent=nil |
1903 | + | if Character:FindFirstChildOfClass("Humanoid") == nil then |
1904 | - | end),prt,msh) |
1904 | + | Humanoid = IT("Humanoid",Character) |
1905 | end | |
1906 | SINE = SINE + CHANGE | |
1907 | - | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) |
1907 | + | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude |
1908 | - | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
1908 | + | local TORSOVERTICALVELOCITY = RootPart.Velocity.y |
1909 | - | prt.Anchored=true |
1909 | + | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) |
1910 | - | prt.CFrame=cframe |
1910 | + | local WALKSPEEDVALUE = 4 |
1911 | - | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
1911 | + | Neck.C1 = Clerp(Neck.C1, CF(0, 0, 0.03) * ANGLES(RAD(90), RAD(180), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(180)) , 1 / Animation_Speed) |
1912 | - | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) |
1912 | + | if ANIM == "Walk" and TORSOVELOCITY > 1 and PLAYSONG == true then |
1913 | - | game:GetService("Debris"):AddItem(prt,5) |
1913 | + | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1914 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
1914 | + | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1915 | - | for i=0,1,delay do |
1915 | + | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1916 | - | wait() |
1916 | + | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1917 | - | Part.Transparency=i |
1917 | + | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or PLAYSONG == false then |
1918 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
1918 | + | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1919 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1920 | - | Part.Parent=nil |
1920 | + | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1921 | - | end),prt,msh) |
1921 | + | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1922 | end | |
1923 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1924 | - | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) |
1924 | + | ANIM = "Jump" |
1925 | - | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
1925 | + | if ATTACK == false then |
1926 | - | prt.Anchored=true |
1926 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
1927 | - | prt.Material = "Neon" |
1927 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) |
1928 | - | prt.CFrame=cframe |
1928 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1929 | - | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) |
1929 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1930 | - | game:GetService("Debris"):AddItem(prt,5) |
1930 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1931 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
1931 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1932 | - | local rtype = rottype |
1932 | + | |
1933 | - | for i=0,1,delay do |
1933 | + | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then |
1934 | - | swait() |
1934 | + | ANIM = "Fall" |
1935 | - | if rtype == 1 then |
1935 | + | if ATTACK == false then |
1936 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) |
1936 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
1937 | - | elseif rtype == 2 then |
1937 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
1938 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) |
1938 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1939 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1940 | - | Part.Transparency=i |
1940 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1941 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
1941 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1942 | end | |
1943 | - | Part.Parent=nil |
1943 | + | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then |
1944 | - | end),prt,msh) |
1944 | + | ANIM = "Idle" |
1945 | if ATTACK == false then | |
1946 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1947 | - | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) |
1947 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1948 | - | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
1948 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1949 | - | prt.Anchored=true |
1949 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1950 | - | prt.Material = "Neon" |
1950 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1951 | - | prt.CFrame=cframe |
1951 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1952 | - | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) |
1952 | + | |
1953 | - | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) |
1953 | + | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then |
1954 | - | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) |
1954 | + | ANIM = "Walk" |
1955 | - | game:GetService("Debris"):AddItem(prt,5) |
1955 | + | if ATTACK == false then |
1956 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
1956 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
1957 | - | local rtype = rottype |
1957 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, -0.025, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1958 | - | for i=0,1,delay do |
1958 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1959 | - | swait() |
1959 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1960 | - | if rtype == 1 then |
1960 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
1961 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) |
1961 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
1962 | - | elseif rtype == 2 then |
1962 | + | |
1963 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) |
1963 | + | |
1964 | for _, c in pairs(Character:GetChildren()) do | |
1965 | - | dec.Transparency=i |
1965 | + | if c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then |
1966 | - | dec2.Transparency=i |
1966 | + | c:remove() |
1967 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) |
1967 | + | |
1968 | end | |
1969 | - | Part.Parent=nil |
1969 | + | AntiTimeStop() |
1970 | - | end),prt,msh) |
1970 | + | Humanoid.MaxHealth = 10e10 |
1971 | Humanoid.Health = 10e10 | |
1972 | if Rooted == false then | |
1973 | - | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) |
1973 | + | Disable_Jump = false |
1974 | - | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
1974 | + | Humanoid.WalkSpeed = Speed |
1975 | - | prt.Anchored=true |
1975 | + | elseif Rooted == true then |
1976 | - | prt.Material = "Neon" |
1976 | + | Disable_Jump = true |
1977 | - | prt.CFrame=cframe |
1977 | + | Humanoid.WalkSpeed = 0 |
1978 | - | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) |
1978 | + | |
1979 | - | game:GetService("Debris"):AddItem(prt,5) |
1979 | + | for E = 1, #TAIL do |
1980 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
1980 | + | TAIL[E].C1 = Clerp(TAIL[E].C1,CF(0, 0, 0) * ANGLES(RAD(5-1 * SIN(SINE / 12)), RAD(-2 * COS(SINE / 24)), RAD(4 * SIN(SINE / 24))), 1 / Animation_Speed) |
1981 | - | local rtype = rottype |
1981 | + | |
1982 | - | for i=0,1,delay do |
1982 | + | sick.SoundId = "rbxassetid://0" |
1983 | - | swait() |
1983 | + | sick.Looped = true |
1984 | - | if rtype == 1 then |
1984 | + | sick.Pitch = 1 |
1985 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) |
1985 | + | sick.Volume = 2 |
1986 | - | elseif rtype == 2 then |
1986 | + | sick.Parent = Effects |
1987 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) |
1987 | + | sick.Playing = PLAYSONG |
1988 | Humanoid.PlatformStand = false | |
1989 | - | prt.Transparency=i |
1989 | + | Humanoid.Name = "I am the god of earth" |
1990 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) |
1990 | + | refit() |
1991 | if Character:FindFirstChild("Pants") == nil then | |
1992 | - | Part.Parent=nil |
1992 | + | script.Pants:Clone().Parent = Character |
1993 | - | end),prt,msh) |
1993 | + | |
1994 | if Character:FindFirstChild("Shirt") == nil then | |
1995 | script.Shirt:Clone().Parent = Character | |
1996 | - | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) |
1996 | + | |
1997 | - | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
1997 | + | for _, c in pairs(Character:GetChildren()) do |
1998 | - | prt.Anchored=true |
1998 | + | if c:IsA("BasePart") and ATTACK == false then |
1999 | - | prt.Material = "Neon" |
1999 | + | for _, e in pairs(c:GetChildren()) do |
2000 | - | prt.CFrame=cframe |
2000 | + | if e:IsA("ParticleEmitter") or e:IsA("BodyPosition") or e:IsA("BodyGyro") then |
2001 | - | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1)) |
2001 | + | e:remove() |
2002 | - | game:GetService("Debris"):AddItem(prt,5) |
2002 | + | |
2003 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
2003 | + | |
2004 | - | local rtype = rottype |
2004 | + | |
2005 | - | for i=0,1,delay do |
2005 | + | |
2006 | - | swait() |
2006 | + | |
2007 | - | if rtype == 1 then |
2007 | + | |
2008 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) |
2008 | + | --//=================================\\ |
2009 | - | elseif rtype == 2 then |
2009 | + | --\\=================================// |
2010 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) |
2010 | + | |
2011 | ||
2012 | - | prt.Transparency=i |
2012 | + | |
2013 | - | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) |
2013 | + | |
2014 | ||
2015 | - | Part.Parent=nil |
2015 | + | --//====================================================\\-- |
2016 | - | end),prt,msh) |
2016 | + | --|| END OF SCRIPT |
2017 | --\\====================================================//-- |