SHOW:
|
|
- or go back to the newest paste.
1 | - | --[[False pure by grgrgry21. |
1 | + | local Charar = game.Players.LocalPlayer.Character |
2 | - | A |
2 | + | Charar["InternationalFedora"].Name = "InternationalFedora2" |
3 | - | A A |
3 | + | --I dont need hat clone thingy |
4 | - | A C A |
4 | + | |
5 | - | A A |
5 | + | local v3_net, v3_808 = Vector3.new(5000, 25.1, 0), Vector3.new(8, 0, 8) |
6 | - | A |
6 | + | local function getNetlessVelocity(realPartVelocity) |
7 | - | Since i cant git a gud names, so ill just |
7 | + | local mag = realPartVelocity.Magnitude |
8 | - | ]]-- |
8 | + | if mag > 1 then |
9 | - | wait(1 / 60) |
9 | + | local unit = realPartVelocity.Unit |
10 | - | Effects = { } |
10 | + | if (unit.Y > 0.25) or (unit.Y < -0.75) then |
11 | - | local Player = game.Players.localPlayer |
11 | + | return unit * (25.1 / unit.Y) |
12 | - | local Character = Player.Character |
12 | + | end |
13 | - | local Humanoid = Character.Humanoid |
13 | + | end |
14 | - | local Mouse = Player:GetMouse() |
14 | + | return v3_net + realPartVelocity * v3_808 |
15 | - | local LeftArm = Character["Left Arm"] |
15 | + | end |
16 | - | local RightArm = Character["Right Arm"] |
16 | + | local simradius = "shp" --simulation radius (net bypass) method |
17 | - | local LeftLeg = Character["Left Leg"] |
17 | + | --simulation radius (net bypass) method |
18 | - | local RightLeg = Character["Right Leg"] |
18 | + | --"shp" - sethiddenproperty |
19 | - | local Head = Character.Head |
19 | + | --"ssr" - setsimulationradius |
20 | - | local Torso = Character.Torso |
20 | + | --false - disable |
21 | - | local Camera = game.Workspace.CurrentCamera |
21 | + | local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character |
22 | - | local RootPart = Character.HumanoidRootPart |
22 | + | local newanimate = true --disables the animate script and enables after reanimation |
23 | - | local RootJoint = RootPart.RootJoint |
23 | + | local discharscripts = true --disables all localScripts parented to your character before reanimation |
24 | - | local attack = false |
24 | + | local R15toR6 = true --tries to convert your character to r6 if its r15 |
25 | - | local Anim = 'Idle' |
25 | + | local hatcollide = false --makes hats cancollide (only method 0) |
26 | - | local attacktype = 1 |
26 | + | local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState) |
27 | - | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude |
27 | + | local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation |
28 | - | local velocity = RootPart.Velocity.y |
28 | + | local hedafterneck = false --disable aligns for head and enable after neck is removed |
29 | - | local sine = 0 |
29 | + | local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay |
30 | - | local change = 1 |
30 | + | local method = 0 --reanimation method |
31 | - | local doe = 0 |
31 | + | --methods: |
32 | - | local Create = LoadLibrary("RbxUtility").Create |
32 | + | --0 - breakJoints (takes [loadtime] seconds to laod) |
33 | --1 - limbs | |
34 | - | local m = Create("Model"){ |
34 | + | --2 - limbs + anti respawn |
35 | - | Parent = Character, |
35 | + | --3 - limbs + breakJoints after [loadtime] seconds |
36 | - | Name = "WeaponModel", |
36 | + | --4 - remove humanoid + breakJoints |
37 | - | } |
37 | + | --5 - remove humanoid + limbs |
38 | local alignmode = 3 --AlignPosition mode | |
39 | - | Humanoid.Animator.Parent = nil |
39 | + | --modes: |
40 | - | Character.Animate.Parent = nil |
40 | + | --1 - AlignPosition rigidity enabled true |
41 | --2 - 2 AlignPositions rigidity enabled both true and false | |
42 | - | local newMotor = function(part0, part1, c0, c1) |
42 | + | --3 - AlignPosition rigidity enabled false |
43 | - | local w = Create('Motor'){ |
43 | + | |
44 | - | Parent = part0, |
44 | + | healthHide = healthHide and ((method == 0) or (method == 2) or (method == 000)) and gp(c, "Head", "BasePart") |
45 | - | Part0 = part0, |
45 | + | |
46 | - | Part1 = part1, |
46 | + | local lp = game:GetService("Players").LocalPlayer |
47 | - | C0 = c0, |
47 | + | local rs = game:GetService("RunService") |
48 | - | C1 = c1, |
48 | + | local stepped = rs.Stepped |
49 | - | } |
49 | + | local heartbeat = rs.Heartbeat |
50 | - | return w |
50 | + | local renderstepped = rs.RenderStepped |
51 | local sg = game:GetService("StarterGui") | |
52 | local ws = game:GetService("Workspace") | |
53 | - | function clerp(a, b, t) |
53 | + | local cf = CFrame.new |
54 | - | return a:lerp(b, t) |
54 | + | local v3 = Vector3.new |
55 | local v3_0 = v3(0, 0, 0) | |
56 | local inf = math.huge | |
57 | - | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) |
57 | + | |
58 | - | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
58 | + | local c = lp.Character |
59 | ||
60 | - | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) |
60 | + | if not (c and c.Parent) then |
61 | - | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) |
61 | + | return |
62 | - | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) |
62 | + | |
63 | - | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) |
63 | + | |
64 | - | RootJoint.C1 = CFrame.new(0, 0, 0) |
64 | + | c.Destroying:Connect(function() |
65 | - | RootJoint.C0 = CFrame.new(0, 0, 0) |
65 | + | c = nil |
66 | - | Torso.Neck.C1 = CFrame.new(0, 0, 0) |
66 | + | |
67 | - | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) |
67 | + | |
68 | local function gp(parent, name, className) | |
69 | - | local rarmc1 = RW.C1 |
69 | + | if typeof(parent) == "Instance" then |
70 | - | local larmc1 = LW.C1 |
70 | + | for i, v in pairs(parent:GetChildren()) do |
71 | - | local rlegc1 = RH.C1 |
71 | + | if (v.Name == name) and v:IsA(className) then |
72 | - | local llegc1 = LH.C1 |
72 | + | return v |
73 | end | |
74 | - | local resetc1 = false |
74 | + | |
75 | end | |
76 | - | function PlayAnimationFromTable(table, speed, bool) |
76 | + | return nil |
77 | - | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) |
77 | + | |
78 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) |
78 | + | |
79 | - | RW.C0 = clerp(RW.C0, table[3], speed) |
79 | + | local function align(Part0, Part1) |
80 | - | LW.C0 = clerp(LW.C0, table[4], speed) |
80 | + | Part0.CustomPhysicalProperties = PhysicalProperties.new(0.0001, 0.0001, 0.0001, 0.0001, 0.0001) |
81 | - | RH.C0 = clerp(RH.C0, table[5], speed) |
81 | + | |
82 | - | LH.C0 = clerp(LH.C0, table[6], speed) |
82 | + | local att0 = Instance.new("Attachment", Part0) |
83 | - | if bool == true then |
83 | + | att0.Orientation = v3_0 |
84 | - | if resetc1 == false then |
84 | + | att0.Position = v3_0 |
85 | - | resetc1 = true |
85 | + | att0.Name = "att0_" .. Part0.Name |
86 | - | RootJoint.C1 = RootJoint.C1 |
86 | + | local att1 = Instance.new("Attachment", Part1) |
87 | - | Torso.Neck.C1 = Torso.Neck.C1 |
87 | + | att1.Orientation = v3_0 |
88 | - | RW.C1 = rarmc1 |
88 | + | att1.Position = v3_0 |
89 | - | LW.C1 = larmc1 |
89 | + | att1.Name = "att1_" .. Part1.Name |
90 | - | RH.C1 = rlegc1 |
90 | + | |
91 | - | LH.C1 = llegc1 |
91 | + | if (alignmode == 1) or (alignmode == 2) then |
92 | local ape = Instance.new("AlignPosition", att0) | |
93 | ape.ApplyAtCenterOfMass = false | |
94 | ape.MaxForce = inf | |
95 | ape.MaxVelocity = inf | |
96 | - | ArtificialHB = Create("BindableEvent", script){ |
96 | + | ape.ReactionForceEnabled = false |
97 | - | Parent = script, |
97 | + | ape.Responsiveness = 200 |
98 | - | Name = "Heartbeat", |
98 | + | ape.Attachment1 = att1 |
99 | - | } |
99 | + | ape.Attachment0 = att0 |
100 | ape.Name = "AlignPositionRtrue" | |
101 | - | script:WaitForChild("Heartbeat") |
101 | + | ape.RigidityEnabled = true |
102 | end | |
103 | - | frame = 1 / 30 |
103 | + | |
104 | - | tf = 0 |
104 | + | if (alignmode == 2) or (alignmode == 3) then |
105 | - | allowframeloss = false |
105 | + | local apd = Instance.new("AlignPosition", att0) |
106 | - | tossremainder = false |
106 | + | apd.ApplyAtCenterOfMass = false |
107 | - | lastframe = tick() |
107 | + | apd.MaxForce = inf |
108 | - | script.Heartbeat:Fire() |
108 | + | apd.MaxVelocity = inf |
109 | apd.ReactionForceEnabled = false | |
110 | - | game:GetService("RunService").Heartbeat:connect(function(s, p) |
110 | + | apd.Responsiveness = 200 |
111 | - | tf = tf + s |
111 | + | apd.Attachment1 = att1 |
112 | - | if tf >= frame then |
112 | + | apd.Attachment0 = att0 |
113 | - | if allowframeloss then |
113 | + | apd.Name = "AlignPositionRfalse" |
114 | - | script.Heartbeat:Fire() |
114 | + | apd.RigidityEnabled = false |
115 | - | lastframe = tick() |
115 | + | |
116 | - | else |
116 | + | |
117 | - | for i = 1, math.floor(tf / frame) do |
117 | + | local ao = Instance.new("AlignOrientation", att0) |
118 | - | script.Heartbeat:Fire() |
118 | + | ao.MaxAngularVelocity = inf |
119 | ao.MaxTorque = inf | |
120 | - | lastframe = tick() |
120 | + | ao.PrimaryAxisOnly = false |
121 | ao.ReactionTorqueEnabled = false | |
122 | - | if tossremainder then |
122 | + | ao.Responsiveness = 200 |
123 | - | tf = 0 |
123 | + | ao.Attachment1 = att1 |
124 | - | else |
124 | + | ao.Attachment0 = att0 |
125 | - | tf = tf - frame * math.floor(tf / frame) |
125 | + | ao.RigidityEnabled = false |
126 | ||
127 | if type(getNetlessVelocity) == "function" then | |
128 | local realVelocity = v3_0 | |
129 | local steppedcon = stepped:Connect(function() | |
130 | - | function swait(num) |
130 | + | Part0.Velocity = realVelocity |
131 | - | if num == 0 or num == nil then |
131 | + | |
132 | - | ArtificialHB.Event:wait() |
132 | + | local heartbeatcon = heartbeat:Connect(function() |
133 | realVelocity = Part0.Velocity | |
134 | - | for i = 0, num do |
134 | + | Part0.Velocity = getNetlessVelocity(realVelocity) |
135 | - | ArtificialHB.Event:wait() |
135 | + | |
136 | Part0.Destroying:Connect(function() | |
137 | Part0 = nil | |
138 | steppedcon:Disconnect() | |
139 | heartbeatcon:Disconnect() | |
140 | - | function RemoveOutlines(part) |
140 | + | |
141 | - | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 |
141 | + | end |
142 | end | |
143 | - | |
143 | + | |
144 | - | CFuncs = { |
144 | + | local function respawnrequest() |
145 | - | ["Part"] = { |
145 | + | local ccfr = ws.CurrentCamera.CFrame |
146 | - | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) |
146 | + | local c = lp.Character |
147 | - | local Part = Create("Part"){ |
147 | + | lp.Character = nil |
148 | - | Parent = Parent, |
148 | + | lp.Character = c |
149 | - | Reflectance = Reflectance, |
149 | + | local con = nil |
150 | - | Transparency = Transparency, |
150 | + | con = ws.CurrentCamera.Changed:Connect(function(prop) |
151 | - | CanCollide = false, |
151 | + | if (prop ~= "Parent") and (prop ~= "CFrame") then |
152 | - | Locked = true, |
152 | + | return |
153 | - | BrickColor = BrickColor.new(tostring(BColor)), |
153 | + | end |
154 | - | Name = Name, |
154 | + | ws.CurrentCamera.CFrame = ccfr |
155 | - | Size = Size, |
155 | + | con:Disconnect() |
156 | - | Material = Material, |
156 | + | end) |
157 | end | |
158 | - | RemoveOutlines(Part) |
158 | + | |
159 | - | return Part |
159 | + | local destroyhum = (method == 4) or (method == 5) |
160 | - | end; |
160 | + | local breakjoints = (method == 0) or (method == 4) |
161 | - | }; |
161 | + | local antirespawn = (method == 0) or (method == 2) or (method == 3) |
162 | - | |
162 | + | |
163 | - | ["Mesh"] = { |
163 | + | hatcollide = hatcollide and (method == 0) |
164 | - | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
164 | + | |
165 | - | local Msh = Create(Mesh){ |
165 | + | addtools = addtools and gp(lp, "Backpack", "Backpack") |
166 | - | Parent = Part, |
166 | + | |
167 | - | Offset = OffSet, |
167 | + | local fenv = getfenv() |
168 | - | Scale = Scale, |
168 | + | local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop |
169 | local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.set_simulation_rad or fenv.setsimulationrad | |
170 | - | if Mesh == "SpecialMesh" then |
170 | + | |
171 | - | Msh.MeshType = MeshType |
171 | + | if shp and (simradius == "shp") then |
172 | - | Msh.MeshId = MeshId |
172 | + | spawn(function() |
173 | while c and heartbeat:Wait() do | |
174 | - | return Msh |
174 | + | shp(lp, "SimulationRadius", inf) |
175 | - | end; |
175 | + | |
176 | - | }; |
176 | + | |
177 | - | |
177 | + | elseif ssr and (simradius == "ssr") then |
178 | - | ["Mesh"] = { |
178 | + | spawn(function() |
179 | - | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
179 | + | while c and heartbeat:Wait() do |
180 | - | local Msh = Create(Mesh){ |
180 | + | ssr(inf) |
181 | - | Parent = Part, |
181 | + | |
182 | - | Offset = OffSet, |
182 | + | |
183 | - | Scale = Scale, |
183 | + | |
184 | ||
185 | - | if Mesh == "SpecialMesh" then |
185 | + | antiragdoll = antiragdoll and function(v) |
186 | - | Msh.MeshType = MeshType |
186 | + | if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then |
187 | - | Msh.MeshId = MeshId |
187 | + | v.Parent = nil |
188 | end | |
189 | - | return Msh |
189 | + | |
190 | - | end; |
190 | + | |
191 | - | }; |
191 | + | if antiragdoll then |
192 | - | |
192 | + | for i, v in pairs(c:GetDescendants()) do |
193 | - | ["Weld"] = { |
193 | + | antiragdoll(v) |
194 | - | Create = function(Parent, Part0, Part1, C0, C1) |
194 | + | |
195 | - | local Weld = Create("Weld"){ |
195 | + | c.DescendantAdded:Connect(antiragdoll) |
196 | - | Parent = Parent, |
196 | + | |
197 | - | Part0 = Part0, |
197 | + | |
198 | - | Part1 = Part1, |
198 | + | if antirespawn then |
199 | - | C0 = C0, |
199 | + | respawnrequest() |
200 | - | C1 = C1, |
200 | + | |
201 | ||
202 | - | return Weld |
202 | + | if method == 0 then |
203 | - | end; |
203 | + | wait(loadtime) |
204 | - | }; |
204 | + | if not c then |
205 | return | |
206 | - | ["Sound"] = { |
206 | + | |
207 | - | Create = function(id, par, vol, pit) |
207 | + | |
208 | - | coroutine.resume(coroutine.create(function() |
208 | + | |
209 | - | local S = Create("Sound"){ |
209 | + | if discharscripts then |
210 | - | Volume = vol, |
210 | + | for i, v in pairs(c:GetChildren()) do |
211 | - | Pitch = pit or 1, |
211 | + | if v:IsA("LocalScript") then |
212 | - | SoundId = id, |
212 | + | v.Disabled = true |
213 | - | Parent = par or workspace, |
213 | + | |
214 | end | |
215 | - | wait() |
215 | + | elseif newanimate then |
216 | - | S:play() |
216 | + | local animate = gp(c, "Animate", "LocalScript") |
217 | - | game:GetService("Debris"):AddItem(S, 6) |
217 | + | if animate and (not animate.Disabled) then |
218 | - | end)) |
218 | + | animate.Disabled = true |
219 | - | end; |
219 | + | |
220 | - | }; |
220 | + | newanimate = false |
221 | - | |
221 | + | |
222 | - | ["ParticleEmitter"] = { |
222 | + | |
223 | - | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) |
223 | + | |
224 | - | local fp = Create("ParticleEmitter"){ |
224 | + | if addtools then |
225 | - | Parent = Parent, |
225 | + | for i, v in pairs(addtools:GetChildren()) do |
226 | - | Color = ColorSequence.new(Color1, Color2), |
226 | + | if v:IsA("Tool") then |
227 | - | LightEmission = LightEmission, |
227 | + | v.Parent = c |
228 | - | Size = Size, |
228 | + | |
229 | - | Texture = Texture, |
229 | + | |
230 | - | Transparency = Transparency, |
230 | + | |
231 | - | ZOffset = ZOffset, |
231 | + | |
232 | - | Acceleration = Accel, |
232 | + | pcall(function() |
233 | - | Drag = Drag, |
233 | + | settings().Physics.AllowSleep = false |
234 | - | LockedToPart = LockedToPart, |
234 | + | settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled |
235 | - | VelocityInheritance = VelocityInheritance, |
235 | + | |
236 | - | EmissionDirection = EmissionDirection, |
236 | + | |
237 | - | Enabled = Enabled, |
237 | + | local OLDscripts = {} |
238 | - | Lifetime = LifeTime, |
238 | + | |
239 | - | Rate = Rate, |
239 | + | for i, v in pairs(c:GetDescendants()) do |
240 | - | Rotation = Rotation, |
240 | + | if v.ClassName == "Script" then |
241 | - | RotSpeed = RotSpeed, |
241 | + | table.insert(OLDscripts, v) |
242 | - | Speed = Speed, |
242 | + | |
243 | - | VelocitySpread = VelocitySpread, |
243 | + | |
244 | ||
245 | - | return fp |
245 | + | local scriptNames = {} |
246 | - | end; |
246 | + | |
247 | - | }; |
247 | + | for i, v in pairs(c:GetDescendants()) do |
248 | if v:IsA("BasePart") then | |
249 | - | CreateTemplate = { |
249 | + | local newName = tostring(i) |
250 | - | |
250 | + | local exists = true |
251 | - | }; |
251 | + | while exists do |
252 | - | } |
252 | + | exists = false |
253 | - | -- |
253 | + | for i, v in pairs(OLDscripts) do |
254 | if v.Name == newName then | |
255 | - | New = function(Object, Parent, Name, Data) |
255 | + | exists = true |
256 | - | local Object = Instance.new(Object) |
256 | + | |
257 | - | for Index, Value in pairs(Data or {}) do |
257 | + | |
258 | - | Object[Index] = Value |
258 | + | if exists then |
259 | newName = newName .. "_" | |
260 | - | Object.Parent = Parent |
260 | + | |
261 | - | Object.Name = Name |
261 | + | |
262 | - | return Object |
262 | + | table.insert(scriptNames, newName) |
263 | Instance.new("Script", v).Name = newName | |
264 | - | |
264 | + | |
265 | - | FalsePure = New("Model",Character,"FalsePure",{}) |
265 | + | |
266 | - | Handle = New("Part",FalsePure,"Handle",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.299999982, 1.70000005, 0.299999982),CFrame = CFrame.new(-48.2500916, -1.57008398, -61.3999672, -9.0876497e-28, -0.999992251, -2.19723599e-41, 1, 1.11071278e-27, 4.5236298e-26, 4.56401948e-26, 2.19723599e-41, 0.999992251),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
266 | + | |
267 | - | Mesh = New("CylinderMesh",Handle,"Mesh",{}) |
267 | + | c.Archivable = true |
268 | - | moter = New("Motor",Handle,"mot",{Part0 = RightArm,Part1 = Handle,}) |
268 | + | local hum = c:FindFirstChildOfClass("Humanoid") |
269 | if hum then | |
270 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.5, 0.200000003),CFrame = CFrame.new(-47.2715149, -1.36338556, -61.3999634, 2.56239254e-32, 0.49999404, -0.86601758, -2.22388375e-11, 0.866026103, 0.499999374, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.929412, 0.917647, 0.917647),}) |
270 | + | for i, v in pairs(hum:GetPlayingAnimationTracks()) do |
271 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
271 | + | v:Stop() |
272 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.562414e-32, -2.22388375e-11, 0.99999845, 0.499998689, 0.866026103, -1.49011612e-08, -0.866025686, 0.499999374, 1.49011612e-08),C1 = CFrame.new(0.206698418, -0.97858429, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
272 | + | |
273 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Pearl"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 1, 0.200000003),CFrame = CFrame.new(-47.0317993, -1.31070983, -61.3999672, 2.56235346e-32, 0.819148004, -0.573563516, -2.22384975e-11, 0.573569715, 0.819156826, 0.999989152, -1.49010226e-08, 3.12455703e-21),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.905882, 0.905882, 0.92549),}) |
273 | + | |
274 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.99000001, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
274 | + | local cl = c:Clone() |
275 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56237491e-32, -2.22384975e-11, 0.99999845, 0.819155574, 0.573569715, -1.49011612e-08, -0.573568881, 0.819156826, 3.12454148e-21),C1 = CFrame.new(0.259374142, -1.21829987, 0, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
275 | + | if hum and humState16 then |
276 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 1.29999995, 0.300000012),CFrame = CFrame.new(-46.8144493, -1.42025173, -61.3999634, 2.56235434e-32, 0.965918303, -0.258805573, -2.22385062e-11, 0.258808374, 0.965928674, 0.999989152, 9.87187756e-22, 7.45051132e-09),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) |
276 | + | hum:ChangeState(Enum.HumanoidStateType.Physics) |
277 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.980000019, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
277 | + | if destroyhum then |
278 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56237579e-32, -2.22385062e-11, 0.99999845, 0.965927303, 0.258808374, 9.87182809e-22, -0.258807957, 0.965928674, 7.4505806e-09),C1 = CFrame.new(0.149832249, -1.43565369, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
278 | + | wait(1.6) |
279 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Ghost grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 1.79999995, 0.400000006),CFrame = CFrame.new(-46.5558586, -1.79347599, -61.3999672, 2.56234846e-32, 0.984803557, 0.173662081, -2.22384541e-11, -0.173657477, 0.984803081, 0.999989152, -2.98020453e-08, -3.72525566e-09),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.792157, 0.796079, 0.819608),}) |
279 | + | end |
280 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.970000029, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
280 | + | |
281 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56236992e-32, -2.22384541e-11, 0.99999845, 0.984812737, -0.173657477, -2.98023224e-08, 0.173663691, 0.984803081, -3.7252903e-09),C1 = CFrame.new(-0.22339201, -1.69424438, 0, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
281 | + | if hum and hum.Parent and destroyhum then |
282 | - | Spike = New("Part",FalsePure,"Spike",{Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 1.39999998, 0.600000024),CFrame = CFrame.new(-46.9159698, -2.03096008, -61.3999634, 2.5622988e-32, 0.76603353, 0.642783761, -2.22380222e-11, -0.642790675, 0.766041875, 0.999989152, -2.45183341e-21, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
282 | + | hum:Destroy() |
283 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.959999979, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
283 | + | |
284 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56232025e-32, -2.22380222e-11, 0.99999845, 0.766040683, -0.642790675, -2.45182129e-21, 0.642789781, 0.766041875, -1.49011612e-08),C1 = CFrame.new(-0.460876107, -1.33413315, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
284 | + | |
285 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.600000024, 0.400000006),CFrame = CFrame.new(-47.6331177, -1.78969467, -61.3999634, 2.56239989e-32, -0.500006378, 0.866009593, -2.22389e-11, -0.866019011, -0.500011802, 0.999989152, 1.49010226e-08, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.929412, 0.917647, 0.917647),}) |
285 | + | if not c then |
286 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
286 | + | return |
287 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56242134e-32, -2.22389e-11, 0.99999845, -0.500011027, -0.866019011, 1.49011612e-08, 0.866017699, -0.500011802, -1.49011612e-08),C1 = CFrame.new(-0.219610691, -0.616977692, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
287 | + | |
288 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.899999976, 0.200000003),CFrame = CFrame.new(-47.3447189, -1.0901736, -61.3999634, -4.32129639e-07, 0.499998748, 0.866015792, 1.97440386e-07, 0.866032064, -0.500000596, -0.999988616, -1.49010226e-08, 2.38416362e-07),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.929412, 0.917647, 0.917647),}) |
288 | + | |
289 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
289 | + | local head = gp(c, "Head", "BasePart") |
290 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.32133675e-07, 1.97440386e-07, -0.999997914, 0.500003397, 0.866032064, -1.49011612e-08, 0.866023898, -0.500000596, 2.38418579e-07),C1 = CFrame.new(0.479910374, -0.905380249, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
290 | + | local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart") |
291 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.799999952, 0.700000048),CFrame = CFrame.new(-47.1315651, -2.19225883, -61.3999634, 2.56218683e-32, 0.258823365, 0.965913594, -2.22370507e-11, -0.965924084, 0.258826047, 0.999989152, -7.45051132e-09, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
291 | + | local root = gp(c, "HumanoidRootPart", "BasePart") |
292 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.949999988, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
292 | + | if hatcollide and c:FindFirstChildOfClass("Accessory") then |
293 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56220829e-32, -2.22370507e-11, 0.99999845, 0.258825749, -0.965924084, -7.4505806e-09, 0.965922594, 0.258826047, -1.49011612e-08),C1 = CFrame.new(-0.622174859, -1.11853409, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
293 | + | local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script") |
294 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.799999952, 0.50000006),CFrame = CFrame.new(-47.4304199, -2.16611481, -61.3999672, 2.56216891e-32, -0.0871449262, 0.996184826, -2.22368964e-11, -0.996195555, -0.0871458799, 0.999989152, 1.86262783e-09, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
294 | + | if not (torso and root and anything) then |
295 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.939999998, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
295 | + | return |
296 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56219036e-32, -2.22368964e-11, 0.99999845, -0.0871457383, -0.996195555, 1.86264515e-09, 0.996194124, -0.0871458799, -1.49011612e-08),C1 = CFrame.new(-0.596030831, -0.81967926, 0, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
296 | + | end |
297 | - | Dot1 = New("Part",FalsePure,"Dot1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-50.1660652, -1.31189001, -61.400013, -0.499992728, -3.07613039e-41, 0.866017044, 0.866026521, 6.34114992e-26, 0.499998152, 7.45051132e-09, 0.999989152, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
297 | + | torso:Destroy() |
298 | - | Mesh = New("BlockMesh",Dot1,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
298 | + | root:Destroy() |
299 | - | mot = New("Motor",Dot1,"mot",{Part0 = Dot1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.499997377, 0.866026521, 7.4505806e-09, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.86602515, 0.499998152, -1.49011612e-08),C1 = CFrame.new(0.25819397, 1.91598892, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
299 | + | if shp then |
300 | - | Dot1 = New("Part",FalsePure,"Dot1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.9985733, -1.21866977, -61.400013, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
300 | + | for i,v in pairs(c:GetChildren()) do |
301 | - | Mesh = New("CylinderMesh",Dot1,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
301 | + | if v:IsA("Accessory") then |
302 | - | mot = New("Motor",Dot1,"mot",{Part0 = Dot1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.351414204, 1.74849701, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
302 | + | shp(v, "BackendAccoutrementState", 0) |
303 | - | Spike1 = New("Part",FalsePure,"Spike1",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.29999995, 0.300000012),CFrame = CFrame.new(-46.7762184, -0.933160663, -61.3999634, 2.56235052e-32, 0.819151461, -0.573560953, -2.22384715e-11, 0.573570251, 0.819157362, 0.999989152, -1.49010226e-08, 3.12455905e-21),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) |
303 | + | end |
304 | - | Mesh = New("SpecialMesh",Spike1,"Mesh",{Scale = Vector3.new(0.600000024, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
304 | + | end |
305 | - | mot = New("Motor",Spike1,"mot",{Part0 = Spike1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56237197e-32, -2.22384715e-11, 0.99999845, 0.819159031, 0.573570251, -1.49011612e-08, -0.573566318, 0.819157362, 3.1245435e-21),C1 = CFrame.new(0.636923313, -1.47388458, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
305 | + | end |
306 | - | Spike1 = New("Part",FalsePure,"Spike1",{BrickColor = BrickColor.new("Ghost grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.29999995, 0.300000012),CFrame = CFrame.new(-46.6636124, -1.2150687, -61.3999634, 2.56232055e-32, 0.939684093, -0.342011541, -2.2238213e-11, 0.342015177, 0.939694345, 0.999989152, -1.49010226e-08, 7.45051132e-09),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.792157, 0.796079, 0.819608),}) |
306 | + | anything:Destroy() |
307 | - | Mesh = New("SpecialMesh",Spike1,"Mesh",{Scale = Vector3.new(0.589999974, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
307 | + | if head then |
308 | - | mot = New("Motor",Spike1,"mot",{Part0 = Spike1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.562342e-32, -2.2238213e-11, 0.99999845, 0.939692795, 0.342015177, -1.49011612e-08, -0.34201473, 0.939694345, 7.4505806e-09),C1 = CFrame.new(0.355015278, -1.58649063, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
308 | + | |
309 | - | Spike1 = New("Part",FalsePure,"Spike1",{Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.89999998, 0.400000006),CFrame = CFrame.new(-46.1350174, -1.52016199, -61.3999634, 2.56231849e-32, 0.996179581, -0.0871494189, -2.22381939e-11, 0.0871487409, 0.996193051, 0.999989152, -2.98020453e-08, 3.79983671e-21),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
309 | + | end |
310 | - | Mesh = New("SpecialMesh",Spike1,"Mesh",{Scale = Vector3.new(0.579999983, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
310 | + | |
311 | - | mot = New("Motor",Spike1,"mot",{Part0 = Spike1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56233994e-32, -2.22381939e-11, 0.99999845, 0.996188879, 0.0871487409, -2.98023224e-08, -0.087150231, 0.996193051, 3.79981772e-21),C1 = CFrame.new(0.0499219894, -2.11508942, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
311 | + | |
312 | - | Spike1 = New("Part",FalsePure,"Spike1",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.29999995, 0.5),CFrame = CFrame.new(-46.186203, -2.07315493, -61.3999672, 2.56230644e-32, 0.906295478, 0.422622353, -2.22380898e-11, -0.422626913, 0.906305313, 0.999989152, -1.49010226e-08, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
312 | + | for i, v in pairs(cl:GetDescendants()) do |
313 | - | Mesh = New("SpecialMesh",Spike1,"Mesh",{Scale = Vector3.new(0.569999993, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
313 | + | if v:IsA("BasePart") then |
314 | - | mot = New("Motor",Spike1,"mot",{Part0 = Spike1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56232789e-32, -2.22380898e-11, 0.99999845, 0.906303942, -0.422626913, -1.49011612e-08, 0.422626287, 0.906305313, -1.49011612e-08),C1 = CFrame.new(-0.503070951, -2.06390381, 0, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
314 | + | v.Transparency = 1 |
315 | - | Spike1 = New("Part",FalsePure,"Spike1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.899999976, 0.400000006),CFrame = CFrame.new(-46.543129, -2.34609985, -61.3999634, 2.56227206e-32, 0.766030967, 0.642786801, -2.22377915e-11, -0.642793834, 0.766039252, 0.999989152, -2.98020453e-08, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
315 | + | v.Anchored = false |
316 | - | Mesh = New("SpecialMesh",Spike1,"Mesh",{Scale = Vector3.new(0.560000002, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
316 | + | |
317 | - | mot = New("Motor",Spike1,"mot",{Part0 = Spike1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.56229351e-32, -2.22377915e-11, 0.99999845, 0.76603812, -0.642793834, -2.98023224e-08, 0.642792821, 0.766039252, -1.49011612e-08),C1 = CFrame.new(-0.776015878, -1.70697403, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
317 | + | |
318 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.300000012, 0.200000003),CFrame = CFrame.new(-49.1000824, -2.3200841, -61.3999557, 2.10534122e-38, 0.258817434, 0.965918183, -1.82988151e-17, -0.965925455, 0.258820117, 0.999989152, -3.68438483e-21, -2.98020453e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
318 | + | |
319 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.600000024, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
319 | + | local model = Instance.new("Model", c) |
320 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.10799528e-38, -1.82988151e-17, 0.99999845, 0.258819818, -0.965925455, -3.68436665e-21, 0.965927184, 0.258820117, -2.98023224e-08),C1 = CFrame.new(-0.750000119, 0.849998474, 1.14440918e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
320 | + | model.Name = model.ClassName |
321 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.300000012, 0.200000003),CFrame = CFrame.new(-48.8800812, -2.30008411, -61.3999596, -3.53375658e-37, 0.573572159, 0.819137514, 3.06665685e-16, -0.819146335, 0.573578417, 0.999989152, -1.49010226e-08, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
321 | + | |
322 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.600000024, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
322 | + | model.Destroying:Connect(function() |
323 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -3.53352205e-37, 3.06665685e-16, 0.99999845, 0.573577523, -0.819146335, -1.49011612e-08, 0.819145083, 0.573578417, -1.49011612e-08),C1 = CFrame.new(-0.730000138, 0.629993439, 7.62939453e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
323 | + | model = nil |
324 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.300000012, 0.200000003),CFrame = CFrame.new(-48.7000809, -2.28008413, -61.3999557, 3.77781008e-37, 0.642786145, 0.766030967, -3.27900298e-16, -0.766039252, 0.642793119, 0.999989152, -1.49010226e-08, -2.98020453e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
324 | + | |
325 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.600000024, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
325 | + | |
326 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 3.77810469e-37, -3.27900298e-16, 0.99999845, 0.642792165, -0.766039252, -1.49011612e-08, 0.76603812, 0.642793119, -2.98023224e-08),C1 = CFrame.new(-0.710000157, 0.449993134, 1.14440918e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
326 | + | for i, v in pairs(c:GetChildren()) do |
327 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.300000012, 0.200000003),CFrame = CFrame.new(-48.5000839, -2.28008413, -61.3999596, 3.94482692e-37, 0.707106113, 0.70709604, -3.42395599e-16, -0.70710361, 0.707113743, 0.999989152, -2.69714618e-21, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
327 | + | if v ~= model then |
328 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.600000024, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
328 | + | if addtools and v:IsA("Tool") then |
329 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 3.94512332e-37, -3.42395599e-16, 0.99999845, 0.70711267, -0.70710361, -2.69713265e-21, 0.707102597, 0.707113743, -1.49011612e-08),C1 = CFrame.new(-0.710000157, 0.249996185, 7.62939453e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
329 | + | for i1, v1 in pairs(v:GetDescendants()) do |
330 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.300000012, 0.200000003),CFrame = CFrame.new(-48.10009, -2.2700839, -61.3999557, 3.54706577e-37, 0.819147587, 0.573563874, -3.07874189e-16, -0.573570073, 0.819156349, 0.999989152, -1.49010226e-08, -2.98020453e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
330 | + | if v1 and v1.Parent and v1:IsA("BasePart") then |
331 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.600000024, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
331 | + | local bv = Instance.new("BodyVelocity", v1) |
332 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 3.54735904e-37, -3.07874189e-16, 0.99999845, 0.819155157, -0.573570073, -1.49011612e-08, 0.573569238, 0.819156349, -2.98023224e-08),C1 = CFrame.new(-0.699999928, -0.150001526, 1.14440918e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
332 | + | bv.Velocity = v3_0 |
333 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.300000012, 0.200000003),CFrame = CFrame.new(-48.3000908, -2.28008413, -61.3999596, 3.85266184e-37, 0.766038358, 0.642772079, -3.34396643e-16, -0.642779052, 0.766046643, 0.999989152, -1.49010226e-08, -2.98020453e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
333 | + | bv.MaxForce = v3(1000, 1000, 1000) |
334 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.600000024, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
334 | + | bv.P = 1250 |
335 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 3.85295734e-37, -3.34396643e-16, 0.99999845, 0.766045511, -0.642779052, -1.49011612e-08, 0.642778099, 0.766046643, -2.98023224e-08),C1 = CFrame.new(-0.710000157, 0.0499992371, 7.62939453e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
335 | + | bv.Name = "bv_" .. v.Name |
336 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.600000024, 0.300000012),CFrame = CFrame.new(-49.3245049, -2.33649302, -61.3999557, 2.10534122e-38, 0.258817434, 0.965918183, -1.82988151e-17, -0.965925455, 0.258820117, 0.999989152, -3.68438483e-21, -2.98020453e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
336 | + | |
337 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
337 | + | |
338 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.10799528e-38, -1.82988151e-17, 0.99999845, 0.258819818, -0.965925455, -3.68436665e-21, 0.965927184, 0.258820117, -2.98023224e-08),C1 = CFrame.new(-0.766409039, 1.07442093, 1.14440918e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
338 | + | |
339 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 1, 0.300000012),CFrame = CFrame.new(-49.5315628, -1.56375158, -61.3999596, 2.2914048e-32, -0.258820981, 0.965923369, -1.98869497e-11, 0.96592772, 0.258822888, -0.999992132, 3.68439371e-21, 9.8724309e-22),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
339 | + | v.Parent = model |
340 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
340 | + | |
341 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 2.29142376e-32, -1.98869497e-11, -1.00000143, -0.258823365, 0.96592772, 3.68437554e-21, 0.965932369, 0.258822888, 9.87238143e-22),C1 = CFrame.new(0.00633239746, 1.2814827, 7.62939453e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
341 | + | |
342 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.299999982, 0.200000003, 2),CFrame = CFrame.new(-48.3000908, -2.12008476, -61.3999672, -3.07613039e-41, -1.31265848e-27, -0.999989152, 6.34114992e-26, 1, 1.514606e-27, 0.999989152, 6.3815396e-26, 3.07613039e-41),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
342 | + | |
343 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.939999998, 1, 1),}) |
343 | + | if breakjoints then |
344 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42),C1 = CFrame.new(-0.550000787, 0.0499992371, 0, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
344 | + | model.HumanoidRootPart:Destroy() |
345 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Pearl"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1, 0.899999976),CFrame = CFrame.new(-49.5889854, -1.59543979, -61.3999672, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.905882, 0.905882, 0.92549),}) |
345 | + | else |
346 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.939999998, 1, 1),}) |
346 | + | if head and torso then |
347 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(-0.0253558159, 1.33890533, 0, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
347 | + | for i, v in pairs(model:GetDescendants()) do |
348 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.400000006, 0.399999976),CFrame = CFrame.new(-49.3000793, -1.5600847, -61.3999672, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
348 | + | if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then |
349 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.949999988, 1, 1),}) |
349 | + | local save = false |
350 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(0.00999927521, 1.04999542, 0, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
350 | + | if (v.Part0 == torso) and (v.Part1 == head) then |
351 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.5, 0.300000012),CFrame = CFrame.new(-48.891571, -1.57008398, -61.5652542, 0.258816898, 0.965915024, -1.15221493e-21, -3.38608423e-21, 2.1001722e-21, 1, 0.965915024, -0.258816898, 3.81435841e-21),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
351 | + | save = true |
352 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
352 | + | |
353 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.258819282, -3.38613654e-21, 0.965924025, 0.965924025, 2.10018734e-21, -0.258819282, -1.15222443e-21, 1, 3.81433943e-21),C1 = CFrame.new(0, 0.641483307, -0.165287018, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
353 | + | if (v.Part0 == head) and (v.Part1 == torso) then |
354 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.5, 0.300000012),CFrame = CFrame.new(-48.8915672, -1.57008398, -61.2346611, -0.258816838, 0.965915024, -1.15221524e-21, -3.98252084e-21, 1.2575469e-22, 1, 0.965915024, 0.258816838, 3.81435841e-21),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
354 | + | save = true |
355 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
355 | + | |
356 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.258819222, -3.98257375e-21, 0.965924025, 0.965924025, 1.25741752e-22, 0.258819222, -1.15222473e-21, 1, 3.81433943e-21),C1 = CFrame.new(0, 0.641479492, 0.165306091, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
356 | + | if save then |
357 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.899999976, 0.300000012),CFrame = CFrame.new(-49.0692291, -1.4620899, -61.5276108, 0.249998212, 0.933002472, -0.258816272, 0.066987969, 0.249999866, 0.965925872, 0.965915084, -0.258817375, -4.32129639e-07),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
357 | + | if hedafterneck then |
358 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
358 | + | hedafterneck = v |
359 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.250000536, 0.066987969, 0.965924084, 0.933011115, 0.249999866, -0.258819759, -0.258818656, 0.965925872, -4.32133675e-07),C1 = CFrame.new(0.10799408, 0.819145203, -0.127643585, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
359 | + | |
360 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.899999976, 0.300000012),CFrame = CFrame.new(-49.0692291, -1.4620899, -61.2723122, -0.249998212, 0.933002472, -0.258816302, -0.066987969, 0.249999866, 0.965925872, 0.965915084, 0.258817315, 4.32129639e-07),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
360 | + | |
361 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
361 | + | v:Destroy() |
362 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.250000536, -0.066987969, 0.965924084, 0.933011115, 0.249999866, 0.258819699, -0.258818686, 0.965925872, 4.32133675e-07),C1 = CFrame.new(0.10799408, 0.819145203, 0.127655029, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
362 | + | |
363 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.899999976, 0.300000012),CFrame = CFrame.new(-49.0692291, -1.74534357, -61.5276108, 0.249998212, 0.933002472, 0.258816272, -0.066987969, -0.249999866, 0.965925872, 0.965915084, -0.258817375, 4.32129639e-07),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
363 | + | |
364 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
364 | + | |
365 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.250000536, -0.066987969, 0.965924084, 0.933011115, -0.249999866, -0.258819759, 0.258818656, 0.965925872, 4.32133675e-07),C1 = CFrame.new(-0.17525959, 0.819145203, -0.127643585, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
365 | + | |
366 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.899999976, 0.300000012),CFrame = CFrame.new(-49.0692215, -1.74534357, -61.272316, -0.249998212, 0.933002472, 0.258816302, 0.066987969, -0.249999866, 0.965925872, 0.965915084, 0.258817315, -4.32129639e-07),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
366 | + | if method == 3 then |
367 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
367 | + | spawn(function() |
368 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.250000536, 0.066987969, 0.965924084, 0.933011115, -0.249999866, 0.258819699, 0.258818686, 0.965925872, -4.32133675e-07),C1 = CFrame.new(-0.17525959, 0.819137573, 0.127651215, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
368 | + | wait(loadtime) |
369 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.4570084, -1.20501173, -61.3999519, 9.94172951e-33, 0.173643827, 0.984797597, -8.62836018e-12, 0.984808266, -0.173645705, -0.999989152, -7.45051132e-09, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
369 | + | if model then |
370 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(1, 1, 0.400000006),MeshType = Enum.MeshType.Wedge,}) |
370 | + | model:BreakJoints() |
371 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 9.94181106e-33, -8.62836018e-12, -0.99999845, 0.173645437, 0.984808266, -7.4505806e-09, 0.984806776, -0.173645705, -1.49011612e-08),C1 = CFrame.new(0.36507225, 1.20692444, 1.52587891e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
371 | + | |
372 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.4270134, -1.28501165, -61.3999596, 9.94170013e-33, 0.499994725, 0.86602062, -8.62833503e-12, 0.866030037, -0.50000155, -0.999989152, 3.3033484e-21, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
372 | + | end) |
373 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(1, 1, 0.400000006),MeshType = Enum.MeshType.Wedge,}) |
373 | + | |
374 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 9.94178168e-33, -8.62833503e-12, -0.99999845, 0.499999374, 0.866030037, 3.30333184e-21, 0.866028726, -0.50000155, -1.49011612e-08),C1 = CFrame.new(0.285072327, 1.17692947, 7.62939453e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
374 | + | |
375 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.5843773, -1.58256567, -61.3999519, 3.07613039e-41, -0.996183991, 0.0871540308, -6.34114992e-26, 0.087154977, 0.99619478, -0.999989152, 1.49010226e-08, -1.86262783e-09),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
375 | + | |
376 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(1, 1, 0.400000006),MeshType = Enum.MeshType.Wedge,}) |
376 | + | cl.Parent = c |
377 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.39447198e-42, -8.88572924e-27, -0.99999845, -0.99619329, 0.087154977, 1.49011612e-08, 0.0871548429, 0.99619478, -1.86264515e-09),C1 = CFrame.new(-0.0124816895, 1.33429718, 1.52587891e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
377 | + | for i, v in pairs(cl:GetChildren()) do |
378 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.5872993, -1.51570499, -61.3999519, 3.07613039e-41, -0.906298041, 0.422613382, -6.34114992e-26, 0.422617942, 0.906307876, -0.999989152, 2.98020453e-08, -7.45051132e-09),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
378 | + | v.Parent = c |
379 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(1, 1, 0.400000006),MeshType = Enum.MeshType.Wedge,}) |
379 | + | |
380 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.39447198e-42, -8.88572924e-27, -0.99999845, -0.906306505, 0.422617942, 2.98023224e-08, 0.422617316, 0.906307876, -7.4505806e-09),C1 = CFrame.new(0.0543789864, 1.33721924, 1.52587891e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
380 | + | cl:Destroy() |
381 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.5385818, -1.63532388, -61.3999596, 3.07613039e-41, -0.996183753, -0.0871565193, -6.34114992e-26, -0.0871574655, 0.996194541, -0.999989152, 1.49010226e-08, 1.86262783e-09),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
381 | + | |
382 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{Scale = Vector3.new(1, 1, 0.400000006),MeshType = Enum.MeshType.Wedge,}) |
382 | + | local modelDes = {} |
383 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.39447198e-42, -8.88572924e-27, -0.99999845, -0.996193051, -0.0871574655, 1.49011612e-08, -0.0871573314, 0.996194541, 1.86264515e-09),C1 = CFrame.new(-0.0652399063, 1.28850174, 7.62939453e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
383 | + | for i, v in pairs(model:GetDescendants()) do |
384 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.300000012, 1.39999986),CFrame = CFrame.new(-49.9999962, -2.07008791, -61.400013, -3.07613039e-41, -1.31265848e-27, -0.999989152, 6.34114992e-26, 1, 1.514606e-27, 0.999989152, 6.3815396e-26, 3.07613039e-41),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
384 | + | if v:IsA("BasePart") then |
385 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.95, 1, 1),}) |
385 | + | i = tostring(i) |
386 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42),C1 = CFrame.new(-0.500003934, 1.74991989, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
386 | + | v.Destroying:Connect(function() |
387 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.300000012, 0.999999821),CFrame = CFrame.new(-50.9474716, -1.76260078, -61.400013, -3.07613039e-41, 0.707099676, -0.707098484, 6.34114992e-26, 0.707106173, 0.707107246, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
387 | + | modelDes[i] = nil |
388 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.939999998, 1, 1),}) |
388 | + | end) |
389 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.707106233, 0.707106173, -1.49011612e-08, -0.707105041, 0.707107246, 1.49011612e-08),C1 = CFrame.new(-0.192516804, 2.69740295, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
389 | + | modelDes[i] = v |
390 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.400000036, 0.400000006),CFrame = CFrame.new(-49.5724182, -2.30962276, -61.400013, 3.95174463e-37, 0.258814007, 0.965916097, -3.42995986e-16, -0.965926588, 0.258816779, 0.999989152, -7.45051132e-09, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
390 | + | |
391 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
391 | + | |
392 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 3.95204103e-37, -3.42995986e-16, 0.99999845, 0.258816391, -0.965926588, -7.4505806e-09, 0.965925097, 0.258816779, -1.49011612e-08),C1 = CFrame.new(-0.739538789, 1.3223381, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
392 | + | local modelcolcon = nil |
393 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.10000002, 0.400000006),CFrame = CFrame.new(-50.8254242, -1.19025886, -61.4000092, -1.01326953e-06, 0.906300783, -0.42260763, 4.99359487e-07, 0.42261219, 0.906310678, 0.999989212, 6.85447048e-07, -8.64259277e-07),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
393 | + | local function modelcolf() |
394 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
394 | + | if model then |
395 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.01327896e-06, 4.99359487e-07, 0.99999851, 0.906309247, 0.42261219, 6.85453415e-07, -0.422611564, 0.906310678, -8.64267349e-07),C1 = CFrame.new(0.379825115, 2.57535172, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
395 | + | for i, v in pairs(modelDes) do |
396 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.5, 0.400000006),CFrame = CFrame.new(-51.3866425, -1.57306468, -61.400013, 6.4074402e-07, -0.573573709, 0.819140792, 1.25438112e-06, -0.819149613, -0.573579907, 0.999989212, 1.38579514e-06, 2.0861431e-07),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
396 | + | v.CanCollide = false |
397 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
397 | + | |
398 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 6.40749931e-07, 1.25438112e-06, 0.99999851, -0.573579073, -0.819149613, 1.38580799e-06, 0.819148362, -0.573579907, 2.08616257e-07),C1 = CFrame.new(-0.00298070908, 3.13657379, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
398 | + | |
399 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.699999988, 0.300000012),CFrame = CFrame.new(-51.1934013, -1.82922494, -61.4000168, -1.01326953e-06, 0.173657596, 0.98479414, 4.99310829e-07, -0.98480022, 0.173667192, 0.999989212, 6.63095534e-07, 8.79160325e-07),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
399 | + | modelcolcon:Disconnect() |
400 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
400 | + | |
401 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.01327896e-06, 4.99310829e-07, 0.99999851, 0.173659205, -0.98480022, 6.63101673e-07, 0.984803319, 0.173667192, 8.7916851e-07),C1 = CFrame.new(-0.259140968, 2.94333267, -4.95910645e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
401 | + | |
402 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.5, 0.300000012),CFrame = CFrame.new(-51.2918892, -1.81186092, -61.400013, -1.01326953e-06, -0.173642471, 0.984796643, 4.9929821e-07, -0.984811664, -0.173644006, 0.999989212, 3.24097243e-07, 1.0728736e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
402 | + | modelcolcon = stepped:Connect(modelcolf) |
403 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
403 | + | modelcolf() |
404 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.01327896e-06, 4.9929821e-07, 0.99999851, -0.173644081, -0.984811664, 3.24100256e-07, 0.984805822, -0.173644006, 1.07288361e-06),C1 = CFrame.new(-0.241776943, 3.04182053, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
404 | + | |
405 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.5, 0.200000003),CFrame = CFrame.new(-51.4126434, -1.52054298, -61.4000092, -1.01326953e-06, -0.422605842, 0.906299472, 4.9929622e-07, -0.906309307, -0.422610462, 0.999989212, 2.98020453e-08, 1.11757674e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
405 | + | for i, scr in pairs(model:GetDescendants()) do |
406 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
406 | + | if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then |
407 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.01327896e-06, 4.9929622e-07, 0.99999851, -0.422609776, -0.906309307, 2.98023224e-08, 0.906307936, -0.422610462, 1.11758709e-06),C1 = CFrame.new(0.0495409966, 3.16257477, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
407 | + | local Part0 = scr.Parent |
408 | - | Blade1 = New("Part",FalsePure,"Blade1",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.5, 3.5999999),CFrame = CFrame.new(-51.3999901, -1.37008798, -61.400013, -1.3183416e-41, -5.04870209e-28, -0.999995351, 2.70610414e-26, 1, 7.06818312e-28, 0.999995351, 2.74649381e-26, 1.3183416e-41),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
408 | + | if Part0:IsA("BasePart") then |
409 | - | Mesh = New("BlockMesh",Blade1,"Mesh",{Scale = Vector3.new(0.899999976, 1, 1),}) |
409 | + | for i1, scr1 in pairs(c:GetDescendants()) do |
410 | - | mot = New("Motor",Blade1,"mot",{Part0 = Blade1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42),C1 = CFrame.new(0.199995995, 3.14992142, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
410 | + | if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then |
411 | - | Blade2 = New("Part",FalsePure,"Blade2",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.10000002, 0.5),CFrame = CFrame.new(-53.7499657, -1.37008798, -61.4000092, 3.07613039e-41, -0.999989152, -1.31265848e-27, -6.34114992e-26, 1.514606e-27, 1, -0.999989152, 3.07613039e-41, 6.3815396e-26),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
411 | + | local Part1 = scr1.Parent |
412 | - | Mesh = New("SpecialMesh",Blade2,"Mesh",{Scale = Vector3.new(0.899999976, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
412 | + | if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then |
413 | - | mot = New("Motor",Blade2,"mot",{Part0 = Blade2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.39447198e-42, -8.88572924e-27, -0.99999845, -0.99999845, 3.02922588e-28, 4.39447198e-42, -1.00974196e-28, 1, 9.28962602e-27),C1 = CFrame.new(0.199995995, 5.49991608, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
413 | + | align(Part0, Part1) |
414 | - | Blade = New("Part",FalsePure,"Blade",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.300000012, 1.0999999),CFrame = CFrame.new(-51.3499947, -1.87008798, -61.400013, -3.07613039e-41, -1.31265848e-27, -0.999989152, 6.34114992e-26, 1, 1.514606e-27, 0.999989152, 6.3815396e-26, 3.07613039e-41),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
414 | + | break |
415 | - | Mesh = New("BlockMesh",Blade,"Mesh",{Scale = Vector3.new(0.889999986, 1, 1),}) |
415 | + | |
416 | - | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42),C1 = CFrame.new(-0.300004005, 3.09992599, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
416 | + | |
417 | - | Blade = New("Part",FalsePure,"Blade",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.10000002, 0.5),CFrame = CFrame.new(-52.4499817, -1.97008884, -61.400013, 3.07613039e-41, -0.999989152, -1.31265848e-27, -6.34114992e-26, 1.514606e-27, 1, -0.999989152, 3.07613039e-41, 6.3815396e-26),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
417 | + | |
418 | - | Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.889999986, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
418 | + | |
419 | - | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.39447198e-42, -8.88572924e-27, -0.99999845, -0.99999845, 3.02922588e-28, 4.39447198e-42, -1.00974196e-28, 1, 9.28962602e-27),C1 = CFrame.new(-0.400004864, 4.19992065, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
419 | + | |
420 | - | Blade = New("Part",FalsePure,"Blade",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.900000036, 0.200000003),CFrame = CFrame.new(-51.570919, -2.21449804, -61.4000244, 4.8875354e-06, 0.906299114, 0.42261374, 1.66261557e-12, -0.42261833, 0.906308949, 0.999989152, -4.44050465e-06, -2.07124208e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
420 | + | |
421 | - | Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.889999986, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
421 | + | |
422 | - | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.88758087e-06, 1.66261557e-12, 0.99999845, 0.906307578, -0.42261833, -4.44054604e-06, 0.422617674, 0.906308949, -2.07126141e-06),C1 = CFrame.new(-0.644414067, 3.32085419, -5.7220459e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
422 | + | if (typeof(hedafterneck) == "Instance") and head then |
423 | - | Blade = New("Part",FalsePure,"Blade",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.400000036, 0.200000003),CFrame = CFrame.new(-51.8184013, -2.23985386, -61.4000168, 4.8875354e-06, 0.707098842, 0.707099438, 5.93359389e-11, -0.707107067, 0.707106471, 0.999989152, -3.47193827e-06, -3.47193827e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
423 | + | local aligns = {} |
424 | - | Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.889999986, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
424 | + | local con = nil |
425 | - | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.88758087e-06, 5.93359389e-11, 0.99999845, 0.707105398, -0.707107067, -3.47197056e-06, 0.707105994, 0.707106471, -3.47197056e-06),C1 = CFrame.new(-0.669769883, 3.56833649, -4.95910645e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
425 | + | con = hedafterneck.Changed:Connect(function(prop) |
426 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-52.7913895, -1.22866762, -61.4000092, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
426 | + | if (prop == "Parent") and not hedafterneck.Parent then |
427 | - | Mesh = New("CylinderMesh",Dot,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
427 | + | con:Disconnect() |
428 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.341416359, 4.54133224, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
428 | + | for i, v in pairs(aligns) do |
429 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-53.5913811, -1.22866762, -61.4000168, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
429 | + | v.Enabled = true |
430 | - | Mesh = New("CylinderMesh",Dot,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
430 | + | end |
431 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.341416359, 5.34133148, -4.95910645e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
431 | + | |
432 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-53.2913857, -1.42866886, -61.4000092, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
432 | + | |
433 | - | Mesh = New("CylinderMesh",Dot,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
433 | + | for i, v in pairs(head:GetDescendants()) do |
434 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.141415119, 5.04133224, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
434 | + | if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then |
435 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-52.7913895, -1.52866876, -61.4000092, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
435 | + | i = tostring(i) |
436 | - | Mesh = New("CylinderMesh",Dot,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
436 | + | aligns[i] = v |
437 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.0414152145, 4.54133224, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
437 | + | v.Destroying:Connect(function() |
438 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-52.1913986, -1.52866876, -61.400013, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
438 | + | aligns[i] = nil |
439 | - | Mesh = New("CylinderMesh",Dot,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
439 | + | end) |
440 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.0414152145, 3.94133759, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
440 | + | v.Enabled = false |
441 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-51.7960358, -1.47402561, -61.4000168, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
441 | + | |
442 | - | Mesh = New("BlockMesh",Dot,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
442 | + | |
443 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.0960583687, 3.54597092, -4.95910645e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
443 | + | |
444 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-51.8914032, -1.37866962, -61.400013, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
444 | + | |
445 | - | Mesh = New("CylinderMesh",Dot,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
445 | + | for i, v in pairs(c:GetDescendants()) do |
446 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.191414356, 3.64133835, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
446 | + | if v and v.Parent then |
447 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-51.6999855, -1.57008779, -61.400013, -0.707099378, -3.07613039e-41, 0.707098901, 0.707106531, 6.34114992e-26, 0.707106948, 1.49010226e-08, 0.999989152, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
447 | + | if v.ClassName == "Script" then |
448 | - | Mesh = New("CylinderMesh",Dot,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
448 | + | if table.find(scriptNames, v.Name) then |
449 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105935, 0.707106531, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.707105458, 0.707106948, -1.49011612e-08),C1 = CFrame.new(-3.81469727e-06, 3.44992065, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
449 | + | v:Destroy() |
450 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-52.049984, -1.4500879, -61.4000168, 0.499995828, -3.07613039e-41, -0.866015196, -0.866024733, 6.34114992e-26, -0.500001252, -1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
450 | + | |
451 | - | Mesh = New("BlockMesh",Dot,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
451 | + | elseif not v:IsDescendantOf(model) then |
452 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.500000477, -0.866024733, -1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.866023302, -0.500001252, 1.49011612e-08),C1 = CFrame.new(0.119996071, 3.79992294, -4.95910645e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
452 | + | if v:IsA("Decal") then |
453 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.600000024),CFrame = CFrame.new(-52.4999771, -1.53008401, -61.4000092, -7.39089637e-06, -3.07613039e-41, -0.999989033, -0.999999881, 6.34114992e-26, 7.39097595e-06, 1.13685774e-13, 0.999989152, 2.81918242e-26),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
453 | + | v.Transparency = 1 |
454 | - | Mesh = New("BlockMesh",Dot,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
454 | + | elseif v:IsA("ForceField") then |
455 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -7.39096504e-06, -0.999999881, 1.13686831e-13, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.999998331, 7.39097595e-06, 2.81916855e-26),C1 = CFrame.new(0.0399999619, 4.24991989, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
455 | + | v.Visible = false |
456 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.5),CFrame = CFrame.new(-53.0499687, -1.48008764, -61.4000168, -0.191245601, -3.07613039e-41, -0.981536329, -0.981546998, 6.34114992e-26, 0.191247657, -3.74397172e-21, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
456 | + | elseif v:IsA("Sound") then |
457 | - | Mesh = New("BlockMesh",Dot,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
457 | + | v.Playing = false |
458 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.191247374, -0.981546998, -3.74395274e-21, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.981545508, 0.191247657, 1.49011612e-08),C1 = CFrame.new(0.0899963379, 4.79991531, -4.95910645e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
458 | + | elseif v:IsA("BillboardGui") or v:IsA("SurfaceGui") or v:IsA("ParticleEmitter") or v:IsA("Fire") or v:IsA("Smoke") or v:IsA("Sparkles") then |
459 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-53.4322815, -1.33570373, -61.4000092, -0.588142335, -3.07613039e-41, -0.808747947, -0.808756709, 6.34114992e-26, 0.588148713, -3.0848875e-21, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
459 | + | v.Enabled = false |
460 | - | Mesh = New("BlockMesh",Dot,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
460 | + | |
461 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.588147759, -0.808756709, -3.08487195e-21, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.808755457, 0.588148713, 1.49011612e-08),C1 = CFrame.new(0.234380245, 5.1822319, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
461 | + | |
462 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.800000012),CFrame = CFrame.new(-53.1999702, -1.23008001, -61.4000092, -7.39089637e-06, -3.07613039e-41, -0.999989033, -0.999999881, 6.34114992e-26, 7.39097595e-06, 1.13685774e-13, 0.999989152, 2.81918242e-26),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
462 | + | |
463 | - | Mesh = New("BlockMesh",Dot,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
463 | + | |
464 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -7.39096504e-06, -0.999999881, 1.13686831e-13, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.999998331, 7.39097595e-06, 2.81916855e-26),C1 = CFrame.new(0.340003967, 4.94991684, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
464 | + | |
465 | - | Dot1 = New("Part",FalsePure,"Dot1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-50.4999886, -1.57008779, -61.400013, -0.707099378, -3.07613039e-41, 0.707098901, 0.707106531, 6.34114992e-26, 0.707106948, 1.49010226e-08, 0.999989152, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
465 | + | if newanimate then |
466 | - | Mesh = New("CylinderMesh",Dot1,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
466 | + | local animate = gp(c, "Animate", "LocalScript") |
467 | - | mot = New("Motor",Dot1,"mot",{Part0 = Dot1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105935, 0.707106531, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.707105458, 0.707106948, -1.49011612e-08),C1 = CFrame.new(-3.81469727e-06, 2.24991608, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
467 | + | if animate then |
468 | - | Dot1 = New("Part",FalsePure,"Dot1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-50.4999886, -1.18724573, -61.400013, -0.707099378, -3.07613039e-41, 0.707098901, 0.707106531, 6.34114992e-26, 0.707106948, 1.49010226e-08, 0.999989152, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
468 | + | animate.Disabled = false |
469 | - | Mesh = New("CylinderMesh",Dot1,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
469 | + | |
470 | - | mot = New("Motor",Dot1,"mot",{Part0 = Dot1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105935, 0.707106531, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.707105458, 0.707106948, -1.49011612e-08),C1 = CFrame.new(0.382838249, 2.24991608, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
470 | + | |
471 | - | Dot1 = New("Part",FalsePure,"Dot1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-50.3085747, -1.37866962, -61.4000092, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
471 | + | |
472 | - | Mesh = New("CylinderMesh",Dot1,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
472 | + | if addtools then |
473 | - | mot = New("Motor",Dot1,"mot",{Part0 = Dot1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.191414356, 2.05849838, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
473 | + | for i, v in pairs(c:GetChildren()) do |
474 | - | Dot1 = New("Part",FalsePure,"Dot1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-50.6914024, -1.37866962, -61.4000168, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
474 | + | if v:IsA("Tool") then |
475 | - | Mesh = New("CylinderMesh",Dot1,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
475 | + | v.Parent = addtools |
476 | - | mot = New("Motor",Dot1,"mot",{Part0 = Dot1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.191414356, 2.44132996, -4.95910645e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
476 | + | |
477 | - | Dot1 = New("Part",FalsePure,"Dot1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-50.5860558, -1.271891, -61.400013, -0.707098067, 2.98020453e-08, 0.707100093, 0.707107782, 6.34114992e-26, 0.707105696, 1.49010226e-08, 0.999989092, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
477 | + | |
478 | - | Mesh = New("BlockMesh",Dot1,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
478 | + | |
479 | - | mot = New("Motor",Dot1,"mot",{Part0 = Dot1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707104623, 0.707107782, 1.49011612e-08, 2.98023224e-08, 8.88572924e-27, 0.999998391, 0.70710665, 0.707105696, -1.49011612e-08),C1 = CFrame.new(0.298192978, 2.33598328, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
479 | + | |
480 | - | Dot1 = New("Part",FalsePure,"Dot1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-50.3939362, -1.46402156, -61.400013, -0.707098067, 2.98020453e-08, 0.707100093, 0.707107782, 6.34114992e-26, 0.707105696, 1.49010226e-08, 0.999989092, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
480 | + | local hum0 = model:FindFirstChildOfClass("Humanoid") |
481 | - | Mesh = New("BlockMesh",Dot1,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
481 | + | if hum0 then |
482 | - | mot = New("Motor",Dot1,"mot",{Part0 = Dot1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707104623, 0.707107782, 1.49011612e-08, 2.98023224e-08, 8.88572924e-27, 0.999998391, 0.70710665, 0.707105696, -1.49011612e-08),C1 = CFrame.new(0.106062412, 2.14385986, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
482 | + | hum0.Destroying:Connect(function() |
483 | - | Dot1 = New("Part",FalsePure,"Dot1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-50.5960426, -1.47402561, -61.400013, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
483 | + | hum0 = nil |
484 | - | Mesh = New("BlockMesh",Dot1,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
484 | + | end) |
485 | - | mot = New("Motor",Dot1,"mot",{Part0 = Dot1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.0960583687, 2.34597015, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
485 | + | |
486 | - | Dot1 = New("Part",FalsePure,"Dot1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-50.403923, -1.28189266, -61.400013, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
486 | + | |
487 | - | Mesh = New("BlockMesh",Dot1,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
487 | + | local hum1 = c:FindFirstChildOfClass("Humanoid") |
488 | - | mot = New("Motor",Dot1,"mot",{Part0 = Dot1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.288191319, 2.15384674, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
488 | + | if hum1 then |
489 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-51.6999855, -1.18724573, -61.400013, -0.707099378, -3.07613039e-41, 0.707098901, 0.707106531, 6.34114992e-26, 0.707106948, 1.49010226e-08, 0.999989152, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
489 | + | hum1.Destroying:Connect(function() |
490 | - | Mesh = New("CylinderMesh",Dot,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
490 | + | hum1 = nil |
491 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105935, 0.707106531, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.707105458, 0.707106948, -1.49011612e-08),C1 = CFrame.new(0.382838249, 3.44992065, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
491 | + | end) |
492 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-51.7860565, -1.271891, -61.400013, -0.707098067, 2.98020453e-08, 0.707100093, 0.707107782, 6.34114992e-26, 0.707105696, 1.49010226e-08, 0.999989092, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
492 | + | |
493 | - | Mesh = New("BlockMesh",Dot,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
493 | + | |
494 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707104623, 0.707107782, 1.49011612e-08, 2.98023224e-08, 8.88572924e-27, 0.999998391, 0.70710665, 0.707105696, -1.49011612e-08),C1 = CFrame.new(0.298192978, 3.53599167, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
494 | + | if hum1 then |
495 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-51.6039085, -1.28189266, -61.400013, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
495 | + | ws.CurrentCamera.CameraSubject = hum1 |
496 | - | Mesh = New("BlockMesh",Dot,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
496 | + | local camSubCon = nil |
497 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.288191319, 3.35384369, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
497 | + | local function camSubFunc() |
498 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-51.5939178, -1.46402156, -61.400013, -0.707098067, 2.98020453e-08, 0.707100093, 0.707107782, 6.34114992e-26, 0.707105696, 1.49010226e-08, 0.999989092, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
498 | + | camSubCon:Disconnect() |
499 | - | Mesh = New("BlockMesh",Dot,"Mesh",{Scale = Vector3.new(0.100000001, 0.910000026, 1),}) |
499 | + | if c and hum1 then |
500 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707104623, 0.707107782, 1.49011612e-08, 2.98023224e-08, 8.88572924e-27, 0.999998391, 0.70710665, 0.707105696, -1.49011612e-08),C1 = CFrame.new(0.106062412, 3.343853, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
500 | + | ws.CurrentCamera.CameraSubject = hum1 |
501 | - | Dot = New("Part",FalsePure,"Dot",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-51.5085602, -1.37866962, -61.4000092, -0.707098722, -3.07613039e-41, -0.707099795, -0.707107365, 6.34114992e-26, 0.707106352, 1.49010226e-08, 0.999989152, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
501 | + | |
502 | - | Mesh = New("CylinderMesh",Dot,"Mesh",{Scale = Vector3.new(0.5, 0.910000026, 0.5),}) |
502 | + | |
503 | - | mot = New("Motor",Dot,"mot",{Part0 = Dot,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707105279, -0.707107365, 1.49011612e-08, -4.39447198e-42, 8.88572924e-27, 0.99999845, -0.707106352, 0.707106352, 1.49011612e-08),C1 = CFrame.new(0.191414356, 3.25849533, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
503 | + | camSubCon = renderstepped:Connect(camSubFunc) |
504 | - | Blade = New("Part",FalsePure,"Blade",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.900000036, 0.200000003),CFrame = CFrame.new(-53.2813721, -1.07319057, -61.400013, 8.86610815e-06, 0.965914011, -0.258821756, 1.79484487e-05, 0.258824676, 0.965924382, 0.999989271, -1.31725046e-05, -1.50649339e-05),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
504 | + | if hum0 then |
505 | - | Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.899999976, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
505 | + | hum0.Changed:Connect(function(prop) |
506 | - | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.86619091e-06, 1.79484487e-05, 0.999998569, 0.965923011, 0.258824676, -1.31726265e-05, -0.25882414, 0.965924382, -1.5065074e-05),C1 = CFrame.new(0.496893406, 5.03131866, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
506 | + | if hum1 and (prop == "Jump") then |
507 | - | Blade = New("Part",FalsePure,"Blade",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.900000036, 0.200000003),CFrame = CFrame.new(-52.9313812, -1.07319057, -61.4000092, 8.86610815e-06, 0.965914011, -0.258821756, 1.79484487e-05, 0.258824676, 0.965924382, 0.999989271, -1.31725046e-05, -1.50649339e-05),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
507 | + | hum1.Jump = hum0.Jump |
508 | - | Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.899999976, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
508 | + | |
509 | - | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.86619091e-06, 1.79484487e-05, 0.999998569, 0.965923011, 0.258824676, -1.31726265e-05, -0.25882414, 0.965924382, -1.5065074e-05),C1 = CFrame.new(0.496893406, 4.68132401, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
509 | + | end) |
510 | - | Blade = New("Part",FalsePure,"Blade",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.900000036, 0.200000003),CFrame = CFrame.new(-52.2313843, -1.07319057, -61.4000092, 8.86610815e-06, 0.965914011, -0.258821756, 1.79484487e-05, 0.258824676, 0.965924382, 0.999989271, -1.31725046e-05, -1.50649339e-05),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
510 | + | |
511 | - | Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.899999976, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
511 | + | respawnrequest() |
512 | - | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.86619091e-06, 1.79484487e-05, 0.999998569, 0.965923011, 0.258824676, -1.31726265e-05, -0.25882414, 0.965924382, -1.5065074e-05),C1 = CFrame.new(0.496893406, 3.98132324, -4.19616699e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
512 | + | |
513 | - | Blade = New("Part",FalsePure,"Blade",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.900000036, 0.200000003),CFrame = CFrame.new(-52.5813789, -1.07319057, -61.400013, 8.86610815e-06, 0.965914011, -0.258821756, 1.79484487e-05, 0.258824676, 0.965924382, 0.999989271, -1.31725046e-05, -1.50649339e-05),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
513 | + | |
514 | - | Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.899999976, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
514 | + | |
515 | - | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.86619091e-06, 1.79484487e-05, 0.999998569, 0.965923011, 0.258824676, -1.31726265e-05, -0.25882414, 0.965924382, -1.5065074e-05),C1 = CFrame.new(0.496893406, 4.33132172, -4.57763672e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
515 | + | local rb = Instance.new("BindableEvent", c) |
516 | - | Blade = New("Part",FalsePure,"Blade",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.300000012),CFrame = CFrame.new(-53.787487, -1.0734657, -61.4000015, 9.58135752e-06, -0.93968153, -0.342019171, 1.72424334e-05, 0.342022896, -0.939691663, 0.999989212, 3.08451172e-06, 1.94830864e-05),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
516 | + | rb.Event:Connect(function() |
517 | - | Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.899999976, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
517 | + | rb:Destroy() |
518 | - | mot = New("Motor",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 9.58144665e-06, 1.72424334e-05, 0.99999851, -0.939690232, 0.342022896, 3.08454037e-06, -0.342022359, -0.939691663, 1.94832683e-05),C1 = CFrame.new(0.496618271, 5.53743744, -3.43322754e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
518 | + | sg:SetCore("ResetButtonCallback", true) |
519 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.400000006, 0.200000003),CFrame = CFrame.new(-47.63311, -1.78969276, -61.3999748, 4.60441606e-06, -0.499994874, -0.866015732, 7.48332695e-06, -0.866025269, 0.500000179, -0.999989033, -8.76180093e-06, -2.682184e-07),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.929412, 0.917647, 0.917647),}) |
519 | + | if destroyhum then |
520 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
520 | + | c:BreakJoints() |
521 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.60445881e-06, 7.48332695e-06, -0.999998331, -0.499999523, -0.866025269, -8.76188278e-06, -0.866023839, 0.500000179, -2.68220901e-07),C1 = CFrame.new(-0.219608784, -0.616985321, -7.62939453e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
521 | + | |
522 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.970787, -1.63079584, -61.3999634, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
522 | + | |
523 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.949999988, 1, 1),}) |
523 | + | if hum0 and (hum0.Health > 0) then |
524 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(-0.0607118607, 1.72070694, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
524 | + | model:BreakJoints() |
525 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.8086586, -1.468665, -61.3999634, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
525 | + | hum0.Health = 0 |
526 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.949999988, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
526 | + | |
527 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(0.101418972, 1.55857849, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
527 | + | if antirespawn then |
528 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.8086586, -1.79292762, -61.3999634, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
528 | + | respawnrequest() |
529 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.949999988, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
529 | + | |
530 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(-0.222843647, 1.55857849, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
530 | + | |
531 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.400000006, 0.200000003),CFrame = CFrame.new(-49.5765266, -1.236534, -61.3999634, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
531 | + | sg:SetCore("ResetButtonCallback", rb) |
532 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.949999988, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
532 | + | |
533 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(0.333549976, 1.32644653, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
533 | + | spawn(function() |
534 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.6507874, -1.63079584, -61.3999634, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) |
534 | + | while c do |
535 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.949999988, 1, 1),}) |
535 | + | if hum0 and hum1 then |
536 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(-0.0607118607, 1.40070724, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
536 | + | hum1.Jump = hum0.Jump |
537 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.399999976, 0.200000003),CFrame = CFrame.new(-49.6243439, -1.84292591, -61.3999634, -2.98020453e-08, -0.819142222, 0.573570788, -6.34114745e-26, 0.573576987, 0.819150984, -0.999988675, 1.49010226e-08, -2.98020453e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
537 | + | |
538 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
538 | + | wait() |
539 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -2.98023224e-08, -8.88572924e-27, -0.999997973, -0.819149792, 0.573576987, 1.49011612e-08, 0.573576152, 0.819150984, -2.98023224e-08),C1 = CFrame.new(-0.27284193, 1.37426376, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
539 | + | |
540 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.399999976, 0.200000003),CFrame = CFrame.new(-49.7302246, -1.89951789, -61.3999634, 3.07613039e-41, -0.965915442, 0.258816421, -6.34114992e-26, 0.258819222, 0.965925932, -0.999989152, 1.49010226e-08, -7.45051132e-09),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
540 | + | sg:SetCore("ResetButtonCallback", true) |
541 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
541 | + | |
542 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.39447198e-42, -8.88572924e-27, -0.99999845, -0.965924442, 0.258819222, 1.49011612e-08, 0.258818805, 0.965925932, -7.4505806e-09),C1 = CFrame.new(-0.329433918, 1.4801445, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
542 | + | |
543 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.970787, -1.63079584, -61.3999634, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),}) |
543 | + | R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15) |
544 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.959999979, 0.699999988, 0.699999988),}) |
544 | + | if R15toR6 then |
545 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(-0.0607118607, 1.72070694, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
545 | + | local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "LowerTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart") |
546 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Pearl"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.8286552, -1.468665, -61.3999634, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.905882, 0.905882, 0.92549),}) |
546 | + | if part then |
547 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.959999979, 0.699999988, 0.699999988),MeshType = Enum.MeshType.Wedge,}) |
547 | + | local cfr = part.CFrame |
548 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(0.101418972, 1.57857513, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
548 | + | local R6parts = { |
549 | - | Part = New("Part",FalsePure,"Part",{BrickColor = BrickColor.new("Pearl"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.8286552, -1.79292762, -61.3999634, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.905882, 0.905882, 0.92549),}) |
549 | + | head = { |
550 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.959999979, 0.699999988, 0.699999988),MeshType = Enum.MeshType.Wedge,}) |
550 | + | Name = "Head", |
551 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(-0.222843647, 1.57857513, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
551 | + | Size = v3(2, 1, 1), |
552 | - | Part = New("Part",FalsePure,"Part",{Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.400000006, 0.200000003),CFrame = CFrame.new(-49.6065254, -1.26653373, -61.3999672, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
552 | + | R15 = { |
553 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.959999979, 0.699999988, 0.699999988),MeshType = Enum.MeshType.Wedge,}) |
553 | + | Head = 0 |
554 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(0.303550243, 1.35644531, 0, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
554 | + | |
555 | - | Part = New("Part",FalsePure,"Part",{Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-49.6507874, -1.63079584, -61.3999634, -3.07613039e-41, 0.707100093, -0.707098186, 6.34114992e-26, 0.707105815, 0.707107782, 0.999989152, -1.49010226e-08, 1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
555 | + | }, |
556 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.959999979, 0.699999988, 0.699999988),}) |
556 | + | torso = { |
557 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.70710665, 0.707105815, -1.49011612e-08, -0.707104743, 0.707107782, 1.49011612e-08),C1 = CFrame.new(-0.0607118607, 1.40070724, 3.81469727e-06, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
557 | + | Name = "Torso", |
558 | - | Spike = New("Part",FalsePure,"Spike",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.20000005, 0.300000012),CFrame = CFrame.new(-50.1495514, -2.49940681, -61.4000168, -3.07613039e-41, 0.766037047, 0.642784417, 6.34114992e-26, -0.64279139, 0.766045392, 0.999989152, -1.49010226e-08, -1.49010226e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
558 | + | Size = v3(2, 2, 1), |
559 | - | Mesh = New("SpecialMesh",Spike,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
559 | + | R15 = { |
560 | - | mot = New("Motor",Spike,"mot",{Part0 = Spike,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.39447198e-42, 8.88572924e-27, 0.99999845, 0.766044199, -0.64279139, -1.49011612e-08, 0.642790437, 0.766045392, -1.49011612e-08),C1 = CFrame.new(-0.929322839, 1.8994751, -4.95910645e-05, -1.00974196e-28, 1, 9.28962602e-27, -0.99999845, 3.02922588e-28, 4.39447198e-42, -4.39447198e-42, 8.88572924e-27, 0.99999845),}) |
560 | + | UpperTorso = 0.2, |
561 | LowerTorso = -0.7 | |
562 | - | for _,v in pairs(FalsePure:children()) do |
562 | + | |
563 | - | if v:IsA("Part") then |
563 | + | }, |
564 | - | v.CanCollide = false |
564 | + | root = { |
565 | Name = "HumanoidRootPart", | |
566 | Size = v3(2, 2, 1), | |
567 | - | -- |
567 | + | R15 = { |
568 | - | function rayCast(Position, Direction, Range, Ignore) |
568 | + | HumanoidRootPart = 0 |
569 | - | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) |
569 | + | |
570 | - | end |
570 | + | }, |
571 | leftArm = { | |
572 | - | FindNearestTorso = function(pos) |
572 | + | Name = "Left Arm", |
573 | - | local list = (game.Workspace:children()) |
573 | + | Size = v3(1, 2, 1), |
574 | - | local torso = nil |
574 | + | R15 = { |
575 | - | local dist = 1000 |
575 | + | LeftHand = -0.7, |
576 | - | local temp, human, temp2 = nil, nil, nil |
576 | + | LeftLowerArm = -0.2, |
577 | - | for x = 1, #list do |
577 | + | LeftUpperArm = 0.4 |
578 | - | temp2 = list[x] |
578 | + | |
579 | - | if temp2.className == "Model" and temp2.Name ~= Character.Name then |
579 | + | }, |
580 | - | temp = temp2:findFirstChild("Torso") |
580 | + | rightArm = { |
581 | - | human = temp2:findFirstChild("Humanoid") |
581 | + | Name = "Right Arm", |
582 | - | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then |
582 | + | Size = v3(1, 2, 1), |
583 | - | local dohit = true |
583 | + | R15 = { |
584 | - | if dohit == true then |
584 | + | RightHand = -0.7, |
585 | - | torso = temp |
585 | + | RightLowerArm = -0.2, |
586 | - | dist = (temp.Position - pos).magnitude |
586 | + | RightUpperArm = 0.4 |
587 | } | |
588 | }, | |
589 | leftLeg = { | |
590 | Name = "Left Leg", | |
591 | - | return torso, dist |
591 | + | Size = v3(1, 2, 1), |
592 | R15 = { | |
593 | LeftFoot = -0.7, | |
594 | - | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) |
594 | + | LeftLowerLeg = -0.15, |
595 | - | if hit.Parent == nil then |
595 | + | LeftUpperLeg = 0.6 |
596 | } | |
597 | }, | |
598 | - | local h = hit.Parent:FindFirstChild("Humanoid") |
598 | + | rightLeg = { |
599 | - | for _, v in pairs(hit.Parent:children()) do |
599 | + | Name = "Right Leg", |
600 | - | if v:IsA("Humanoid") then |
600 | + | Size = v3(1, 2, 1), |
601 | - | h = v |
601 | + | R15 = { |
602 | RightFoot = -0.7, | |
603 | RightLowerLeg = -0.15, | |
604 | - | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then |
604 | + | RightUpperLeg = 0.6 |
605 | - | if hit.Parent:findFirstChild("DebounceHit") ~= nil then |
605 | + | |
606 | - | if hit.Parent.DebounceHit.Value == true then |
606 | + | |
607 | - | return |
607 | + | |
608 | for i, v in pairs(c:GetChildren()) do | |
609 | if v:IsA("BasePart") then | |
610 | - | local c = Create("ObjectValue"){ |
610 | + | for i1, v1 in pairs(v:GetChildren()) do |
611 | - | Name = "creator", |
611 | + | if v1:IsA("Motor6D") then |
612 | - | Value = game:service("Players").LocalPlayer, |
612 | + | v1.Part0 = nil |
613 | - | Parent = h, |
613 | + | |
614 | end | |
615 | - | game:GetService("Debris"):AddItem(c, .5) |
615 | + | |
616 | - | if HitSound ~= nil and HitPitch ~= nil then |
616 | + | |
617 | - | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) |
617 | + | part.Archivable = true |
618 | for i, v in pairs(R6parts) do | |
619 | - | local Damage = math.random(minim, maxim) |
619 | + | local part = part:Clone() |
620 | - | local blocked = false |
620 | + | part:ClearAllChildren() |
621 | - | local block = hit.Parent:findFirstChild("Block") |
621 | + | part.Name = v.Name |
622 | - | if block ~= nil then |
622 | + | part.Size = v.Size |
623 | - | if block.className == "IntValue" then |
623 | + | part.CFrame = cfr |
624 | - | if block.Value > 0 then |
624 | + | part.Anchored = false |
625 | - | blocked = true |
625 | + | part.Transparency = 1 |
626 | - | block.Value = block.Value - 1 |
626 | + | part.CanCollide = false |
627 | - | print(block.Value) |
627 | + | for i1, v1 in pairs(v.R15) do |
628 | local R15part = gp(c, i1, "BasePart") | |
629 | local att = gp(R15part, "att1_" .. i1, "Attachment") | |
630 | if R15part then | |
631 | - | if blocked == false then |
631 | + | local weld = Instance.new("Weld", R15part) |
632 | - | h.Health = h.Health - Damage |
632 | + | weld.Name = "Weld_" .. i1 |
633 | - | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("White").Color) |
633 | + | weld.Part0 = part |
634 | - | else |
634 | + | weld.Part1 = R15part |
635 | - | h.Health = h.Health - (Damage / 2) |
635 | + | weld.C0 = cf(0, v1, 0) |
636 | - | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("White").Color) |
636 | + | weld.C1 = cf(0, 0, 0) |
637 | R15part.Massless = true | |
638 | - | if Type == "Knockdown" then |
638 | + | R15part.Name = "R15_" .. i1 |
639 | - | local hum = hit.Parent.Humanoid |
639 | + | R15part.Parent = part |
640 | - | hum.PlatformStand = true |
640 | + | if att then |
641 | - | coroutine.resume(coroutine.create(function(HHumanoid) |
641 | + | att.Parent = part |
642 | - | swait(1) |
642 | + | att.Position = v3(0, v1, 0) |
643 | - | HHumanoid.PlatformStand = false |
643 | + | |
644 | - | end), hum) |
644 | + | |
645 | - | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit |
645 | + | |
646 | - | local bodvol = Create("BodyVelocity"){ |
646 | + | part.Parent = c |
647 | - | velocity = angle * knockback, |
647 | + | R6parts[i] = part |
648 | - | P = 5000, |
648 | + | |
649 | - | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
649 | + | local R6joints = { |
650 | - | Parent = hit, |
650 | + | neck = { |
651 | Parent = R6parts.torso, | |
652 | - | local rl = Create("BodyAngularVelocity"){ |
652 | + | Name = "Neck", |
653 | - | P = 3000, |
653 | + | Part0 = R6parts.torso, |
654 | - | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, |
654 | + | Part1 = R6parts.head, |
655 | - | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), |
655 | + | C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), |
656 | - | Parent = hit, |
656 | + | C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) |
657 | }, | |
658 | - | game:GetService("Debris"):AddItem(bodvol, .5) |
658 | + | rootJoint = { |
659 | - | game:GetService("Debris"):AddItem(rl, .5) |
659 | + | Parent = R6parts.root, |
660 | - | elseif Type == "Normal" then |
660 | + | Name = "RootJoint" , |
661 | - | local vp = Create("BodyVelocity"){ |
661 | + | Part0 = R6parts.root, |
662 | - | P = 500, |
662 | + | Part1 = R6parts.torso, |
663 | - | maxForce = Vector3.new(math.huge, 0, math.huge), |
663 | + | C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), |
664 | - | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, |
664 | + | C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) |
665 | }, | |
666 | - | if knockback > 0 then |
666 | + | rightShoulder = { |
667 | - | vp.Parent = hit.Parent.Torso |
667 | + | Parent = R6parts.torso, |
668 | Name = "Right Shoulder", | |
669 | - | game:GetService("Debris"):AddItem(vp, .5) |
669 | + | Part0 = R6parts.torso, |
670 | - | elseif Type == "Up" then |
670 | + | Part1 = R6parts.rightArm, |
671 | - | local bodyVelocity = Create("BodyVelocity"){ |
671 | + | C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), |
672 | - | velocity = Vector3.new(0, 20, 0), |
672 | + | C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) |
673 | - | P = 5000, |
673 | + | }, |
674 | - | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
674 | + | leftShoulder = { |
675 | - | Parent = hit, |
675 | + | Parent = R6parts.torso, |
676 | Name = "Left Shoulder", | |
677 | - | game:GetService("Debris"):AddItem(bodyVelocity, .5) |
677 | + | Part0 = R6parts.torso, |
678 | - | elseif Type == "DarkUp" then |
678 | + | Part1 = R6parts.leftArm, |
679 | - | coroutine.resume(coroutine.create(function() |
679 | + | C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), |
680 | - | for i = 0, 1, 0.1 do |
680 | + | C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
681 | - | swait() |
681 | + | }, |
682 | - | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) |
682 | + | rightHip = { |
683 | Parent = R6parts.torso, | |
684 | - | end)) |
684 | + | Name = "Right Hip", |
685 | - | local bodyVelocity = Create("BodyVelocity"){ |
685 | + | Part0 = R6parts.torso, |
686 | - | velocity = Vector3.new(0, 20, 0), |
686 | + | Part1 = R6parts.rightLeg, |
687 | - | P = 5000, |
687 | + | C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), |
688 | - | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
688 | + | C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) |
689 | - | Parent = hit, |
689 | + | }, |
690 | leftHip = { | |
691 | - | game:GetService("Debris"):AddItem(bodyVelocity, 1) |
691 | + | Parent = R6parts.torso, |
692 | - | elseif Type == "Snare" then |
692 | + | Name = "Left Hip" , |
693 | - | local bp = Create("BodyPosition"){ |
693 | + | Part0 = R6parts.torso, |
694 | - | P = 2000, |
694 | + | Part1 = R6parts.leftLeg, |
695 | - | D = 100, |
695 | + | C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), |
696 | - | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
696 | + | C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
697 | - | position = hit.Parent.Torso.Position, |
697 | + | |
698 | - | Parent = hit.Parent.Torso, |
698 | + | |
699 | for i, v in pairs(R6joints) do | |
700 | - | game:GetService("Debris"):AddItem(bp, 1) |
700 | + | local joint = Instance.new("Motor6D") |
701 | - | elseif Type == "Freeze" then |
701 | + | for prop, val in pairs(v) do |
702 | - | local BodPos = Create("BodyPosition"){ |
702 | + | joint[prop] = val |
703 | - | P = 50000, |
703 | + | |
704 | - | D = 1000, |
704 | + | R6joints[i] = joint |
705 | - | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
705 | + | |
706 | - | position = hit.Parent.Torso.Position, |
706 | + | hum1.RigType = Enum.HumanoidRigType.R6 |
707 | - | Parent = hit.Parent.Torso, |
707 | + | hum1.HipHeight = 0 |
708 | end | |
709 | - | local BodGy = Create("BodyGyro") { |
709 | + | |
710 | - | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , |
710 | + | |
711 | - | P = 20e+003, |
711 | + | |
712 | - | Parent = hit.Parent.Torso, |
712 | + | |
713 | - | cframe = hit.Parent.Torso.CFrame, |
713 | + | --find rig joints |
714 | ||
715 | - | hit.Parent.Torso.Anchored = true |
715 | + | local function fakemotor() |
716 | - | coroutine.resume(coroutine.create(function(Part) |
716 | + | return {C0=cf(), C1=cf()} |
717 | - | swait(1.5) |
717 | + | |
718 | - | Part.Anchored = false |
718 | + | |
719 | - | end), hit.Parent.Torso) |
719 | + | local torso = gp(c, "Torso", "BasePart") |
720 | - | game:GetService("Debris"):AddItem(BodPos, 3) |
720 | + | local root = gp(c, "HumanoidRootPart", "BasePart") |
721 | - | game:GetService("Debris"):AddItem(BodGy, 3) |
721 | + | |
722 | local neck = gp(torso, "Neck", "Motor6D") | |
723 | - | local debounce = Create("BoolValue"){ |
723 | + | neck = neck or fakemotor() |
724 | - | Name = "DebounceHit", |
724 | + | |
725 | - | Parent = hit.Parent, |
725 | + | local rootJoint = gp(root, "RootJoint", "Motor6D") |
726 | - | Value = true, |
726 | + | rootJoint = rootJoint or fakemotor() |
727 | ||
728 | - | game:GetService("Debris"):AddItem(debounce, Delay) |
728 | + | local leftShoulder = gp(torso, "Left Shoulder", "Motor6D") |
729 | - | c = Create("ObjectValue"){ |
729 | + | leftShoulder = leftShoulder or fakemotor() |
730 | - | Name = "creator", |
730 | + | |
731 | - | Value = Player, |
731 | + | local rightShoulder = gp(torso, "Right Shoulder", "Motor6D") |
732 | - | Parent = h, |
732 | + | rightShoulder = rightShoulder or fakemotor() |
733 | ||
734 | - | game:GetService("Debris"):AddItem(c, .5) |
734 | + | local leftHip = gp(torso, "Left Hip", "Motor6D") |
735 | leftHip = leftHip or fakemotor() | |
736 | ||
737 | local rightHip = gp(torso, "Right Hip", "Motor6D") | |
738 | - | function ShowDamage(Pos, Text, Time, Color) |
738 | + | rightHip = rightHip or fakemotor() |
739 | - | local Rate = (1 / 30) |
739 | + | |
740 | - | local Pos = (Pos or Vector3.new(0, 0, 0)) |
740 | + | --120 fps |
741 | - | local Text = (Text or "") |
741 | + | |
742 | - | local Time = (Time or 2) |
742 | + | local fps = 40 |
743 | - | local Color = (Color or Color3.new(1, 0, 1)) |
743 | + | local event = Instance.new("BindableEvent", c) |
744 | - | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) |
744 | + | event.Name = "120 fps" |
745 | - | EffectPart.Anchored = true |
745 | + | local floor = math.floor |
746 | - | local BillboardGui = Create("BillboardGui"){ |
746 | + | fps = 1 / fps |
747 | - | Size = UDim2.new(3, 0, 3, 0), |
747 | + | local tf = 0 |
748 | - | Adornee = EffectPart, |
748 | + | local con = nil |
749 | - | Parent = EffectPart, |
749 | + | con = game:GetService("RunService").RenderStepped:Connect(function(s) |
750 | - | } |
750 | + | if not c then |
751 | - | local TextLabel = Create("TextLabel"){ |
751 | + | con:Disconnect() |
752 | - | BackgroundTransparency = 1, |
752 | + | |
753 | - | Size = UDim2.new(1, 0, 1, 0), |
753 | + | |
754 | - | Text = Text, |
754 | + | --tf += s |
755 | - | Font = "SciFi", |
755 | + | if tf >= fps then |
756 | - | TextColor3 = Color, |
756 | + | for i=1, floor(tf / fps) do |
757 | - | TextScaled = true, |
757 | + | event:Fire(c) |
758 | - | Parent = BillboardGui, |
758 | + | |
759 | - | } |
759 | + | tf = 0 |
760 | - | game.Debris:AddItem(EffectPart, (Time)) |
760 | + | |
761 | - | EffectPart.Parent = game:GetService("Workspace") |
761 | + | |
762 | - | delay(0, function() |
762 | + | local event = event.Event |
763 | - | local Frames = (Time / Rate) |
763 | + | |
764 | - | for Frame = 1, Frames do |
764 | + | local hedrot = v3(0, 5, 0) |
765 | - | wait(Rate) |
765 | + | |
766 | - | local Percent = (Frame / Frames) |
766 | + | local uis = game:GetService("UserInputService") |
767 | - | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) |
767 | + | local function isPressed(key) |
768 | - | TextLabel.TextTransparency = Percent |
768 | + | return (not uis:GetFocusedTextBox()) and uis:IsKeyDown(Enum.KeyCode[key]) |
769 | end | |
770 | - | if EffectPart and EffectPart.Parent then |
770 | + | |
771 | - | EffectPart:Destroy() |
771 | + | local biggesthandle = nil |
772 | for i, v in pairs(c:GetChildren()) do | |
773 | if v:IsA("Accessory") then | |
774 | local handle = gp(v, "Handle", "BasePart") | |
775 | if biggesthandle then | |
776 | - | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) |
776 | + | if biggesthandle.Size.Magnitude < handle.Size.Magnitude then |
777 | - | for _, c in pairs(workspace:children()) do |
777 | + | biggesthandle = handle |
778 | - | local hum = c:findFirstChild("Humanoid") |
778 | + | end |
779 | - | if hum ~= nil then |
779 | + | else |
780 | - | local head = c:findFirstChild("Torso") |
780 | + | biggesthandle = gp(v, "Handle", "BasePart") |
781 | - | if head ~= nil then |
781 | + | end |
782 | - | local targ = head.Position - Part.Position |
782 | + | end |
783 | - | local mag = targ.magnitude |
783 | + | |
784 | - | if mag <= Magnitude and c.Name ~= Player.Name then |
784 | + | |
785 | - | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) |
785 | + | if not biggesthandle then |
786 | return | |
787 | end | |
788 | ||
789 | local handle1 = gp(gp(model, biggesthandle.Parent.Name, "Accessory"), "Handle", "BasePart") | |
790 | if not handle1 then | |
791 | return | |
792 | - | EffectModel = Create("Model"){ |
792 | + | |
793 | - | Parent = Character, |
793 | + | |
794 | - | Name = "Effects", |
794 | + | handle1.Destroying:Connect(function() |
795 | - | } |
795 | + | handle1 = nil |
796 | end) | |
797 | - | Effects = { |
797 | + | biggesthandle.Destroying:Connect(function() |
798 | - | Block = { |
798 | + | biggesthandle = nil |
799 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) |
799 | + | |
800 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
800 | + | |
801 | - | prt.Anchored = true |
801 | + | --biggesthandle:BreakJoints() |
802 | - | prt.CFrame = cframe |
802 | + | --biggesthandle.Anchored = true |
803 | - | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
803 | + | |
804 | - | game:GetService("Debris"):AddItem(prt, 10) |
804 | + | --for i, v in pairs(handle1:GetDescendants()) do |
805 | - | if Type == 1 or Type == nil then |
805 | + | -- if v:IsA("AlignOrientation") then |
806 | - | table.insert(Effects, { |
806 | + | --v.Enabled = false |
807 | - | prt, |
807 | + | --end |
808 | - | "Block1", |
808 | + | --end |
809 | - | delay, |
809 | + | |
810 | - | x3, |
810 | + | local mouse = lp:GetMouse() |
811 | - | y3, |
811 | + | local fling = false |
812 | - | z3, |
812 | + | mouse.Button1Down:Connect(function() |
813 | - | msh |
813 | + | fling = false |
814 | - | }) |
814 | + | |
815 | - | elseif Type == 2 then |
815 | + | mouse.Button1Up:Connect(function() |
816 | - | table.insert(Effects, { |
816 | + | fling = false |
817 | - | prt, |
817 | + | |
818 | - | "Block2", |
818 | + | local function doForSignal(signal, vel) |
819 | - | delay, |
819 | + | spawn(function() |
820 | - | x3, |
820 | + | while signal:Wait() and c and handle1 and biggesthandle do |
821 | - | y3, |
821 | + | if fling and mouse.Target then |
822 | - | z3, |
822 | + | biggesthandle.Position = mouse.Hit.Position |
823 | - | msh |
823 | + | end |
824 | - | }) |
824 | + | --handle1.RotVelocity = vel |
825 | end | |
826 | - | end; |
826 | + | end) |
827 | - | }; |
827 | + | |
828 | doForSignal(stepped, v3(0, 0, 0)) | |
829 | - | Cylinder = { |
829 | + | doForSignal(renderstepped, v3(0, 0, 0)) |
830 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
830 | + | doForSignal(heartbeat, v3(200000000000000000000000000000, 200000000000000000000000000000, 200000000000000000000000000000)) |
831 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
831 | + | --Hat1 |
832 | - | prt.Anchored = true |
832 | + | |
833 | - | prt.CFrame = cframe |
833 | + | local lp = game:GetService("Players").LocalPlayer |
834 | - | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
834 | + | local rs = game:GetService("RunService") |
835 | - | game:GetService("Debris"):AddItem(prt, 10) |
835 | + | local stepped = rs.Stepped |
836 | - | table.insert(Effects, { |
836 | + | local heartbeat = rs.Heartbeat |
837 | - | prt, |
837 | + | local renderstepped = rs.RenderStepped |
838 | - | "Cylinder", |
838 | + | local sg = game:GetService("StarterGui") |
839 | - | delay, |
839 | + | local ws = game:GetService("Workspace") |
840 | - | x3, |
840 | + | local cf = CFrame.new |
841 | - | y3, |
841 | + | local v3 = Vector3.new |
842 | - | z3, |
842 | + | local v3_0 = Vector3.zero |
843 | - | msh |
843 | + | local inf = math.huge |
844 | - | }) |
844 | + | |
845 | - | end; |
845 | + | local cplayer = lp.Character |
846 | - | }; |
846 | + | |
847 | - | Head = { |
847 | + | local v3 = Vector3.new |
848 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
848 | + | |
849 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
849 | + | local function gp(parent, name, className) |
850 | - | prt.Anchored = true |
850 | + | if typeof(parent) == "Instance" then |
851 | - | prt.CFrame = cframe |
851 | + | for i, v in pairs(parent:GetChildren()) do |
852 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
852 | + | if (v.Name == name) and v:IsA(className) then |
853 | - | game:GetService("Debris"):AddItem(prt, 10) |
853 | + | return v |
854 | - | table.insert(Effects, { |
854 | + | end |
855 | - | prt, |
855 | + | end |
856 | - | "Cylinder", |
856 | + | end |
857 | - | delay, |
857 | + | return nil |
858 | - | x3, |
858 | + | |
859 | - | y3, |
859 | + | |
860 | - | z3, |
860 | + | |
861 | - | msh |
861 | + | |
862 | - | }) |
862 | + | |
863 | - | end; |
863 | + | local hat2 = gp(cplayer, "MeshPartAccessory", "Accessory") |
864 | - | }; |
864 | + | local handle2 = gp(hat2, "Handle", "BasePart") |
865 | - | |
865 | + | local att2 = gp(handle2, "att1_Handle", "Attachment") |
866 | - | Sphere = { |
866 | + | att2.Parent = cplayer["Torso"] --any part of humanoid |
867 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
867 | + | att2.Position = Vector3.new(-0, 0.025, 0) |
868 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
868 | + | att2.Rotation = Vector3.new(180, 0, -15)--you can delete this |
869 | - | prt.Anchored = true |
869 | + | |
870 | - | prt.CFrame = cframe |
870 | + | |
871 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
871 | + | local hat2 = gp(cplayer, "InternationalFedora2", "Accessory") |
872 | - | game:GetService("Debris"):AddItem(prt, 10) |
872 | + | local handle2 = gp(hat2, "Handle", "BasePart") |
873 | - | table.insert(Effects, { |
873 | + | local att2 = gp(handle2, "att1_Handle", "Attachment") |
874 | - | prt, |
874 | + | att2.Parent = cplayer["Left Arm"] |
875 | - | "Cylinder", |
875 | + | att2.Position = Vector3.new(-0.15, -0.35, -0) |
876 | - | delay, |
876 | + | att2.Rotation = Vector3.new(-90, -0, 90) |
877 | - | x3, |
877 | + | |
878 | - | y3, |
878 | + | local hat2 = gp(cplayer, "InternationalFedora", "Accessory") |
879 | - | z3, |
879 | + | local handle2 = gp(hat2, "Handle", "BasePart") |
880 | - | msh |
880 | + | local att2 = gp(handle2, "att1_Handle", "Attachment") |
881 | - | }) |
881 | + | att2.Parent = cplayer["Right Arm"] |
882 | - | end; |
882 | + | att2.Position = Vector3.new(0.15, -0.3, 0) |
883 | - | }; |
883 | + | att2.Rotation = Vector3.new(-90, 0, -90) --LavanderHair |
884 | - | |
884 | + | |
885 | - | Elect = { |
885 | + | local hat2 = gp(cplayer, "Lipstick_Bag_3.0", "Accessory") |
886 | - | Create = function(cff, x, y, z) |
886 | + | local handle2 = gp(hat2, "Handle", "BasePart") |
887 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1)) |
887 | + | local att2 = gp(handle2, "att1_Handle", "Attachment") |
888 | - | prt.Anchored = true |
888 | + | att2.Parent = cplayer["Right Leg"] |
889 | - | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) |
889 | + | att2.Position = Vector3.new(0, -0, 0.5) --Robloxclassicred |
890 | - | prt.CFrame = CFrame.new(prt.Position) |
890 | + | att2.Rotation = Vector3.new(0, -5, -45) |
891 | - | game:GetService("Debris"):AddItem(prt, 2) |
891 | + | |
892 | - | local xval = math.random() / 2 |
892 | + | local hat2 = gp(cplayer, "Lipstick_Bag_1.0", "Accessory") |
893 | - | local yval = math.random() / 2 |
893 | + | local handle2 = gp(hat2, "Handle", "BasePart") |
894 | - | local zval = math.random() / 2 |
894 | + | local att2 = gp(handle2, "att1_Handle", "Attachment") |
895 | - | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) |
895 | + | att2.Parent = cplayer["Left Leg"] |
896 | - | table.insert(Effects, { |
896 | + | att2.Position = Vector3.new(-0, -0, 0.5) |
897 | - | prt, |
897 | + | att2.Rotation = Vector3.new(0, 0, -45) |