SHOW:
|
|
- or go back to the newest paste.
1 | - | ----------------------------------- |
1 | + | --------------- |
2 | - | --WATCH OUT HERE COMES THE COPPAS-- |
2 | + | --Agent Agony-- |
3 | ---------------------------------------------------------------- | |
4 | --By CKbackup (Sugarie Saffron) -- | |
5 | --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw-- | |
6 | --Discord: Sugarie Saffron#4705 -- | |
7 | ---------------------------------------------------------------- | |
8 | ||
9 | print([[ | |
10 | - | --Script Cop-- |
10 | + | --Agent Agony-- |
11 | By CKbackup (Sugarie Saffron) | |
12 | YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw | |
13 | Discord: Sugarie Saffron#4705 | |
14 | -------------------------------- | |
15 | As I've been demoted from my SB | |
16 | Mod rank in VSB, I don't see the | |
17 | need to hold this back any longer. | |
18 | ||
19 | Also, if the anims look weird or | |
20 | the weapon looks out of place, | |
21 | it's because it's actually modeled | |
22 | off a scaled rig with a package. | |
23 | It looks better with the Boy | |
24 | package. | |
25 | -------------------------------- | |
26 | (Keys) | |
27 | M - Mute/Play Music | |
28 | ||
29 | - | Click - Baton Swing |
29 | + | -Common Keys- |
30 | - | (Hold) Q - Run |
30 | + | F - Kick |
31 | - | Z - Pistol |
31 | + | V - Stomp |
32 | - | X - Arrest |
32 | + | T - Equip/Unequip Pistol |
33 | Y - Equip/Unequip Shotgun | |
34 | - | P - Move Jail(s) |
34 | + | |
35 | -CQC (no weapon)- | |
36 | Click - Kick | |
37 | Z - Smash (AoE attack) | |
38 | X - Grab (to throw a player) | |
39 | C - Head Rip and Throw | |
40 | ||
41 | -Pistol- | |
42 | Click - Shoot | |
43 | ||
44 | -Shotgun- | |
45 | Click - Shoot | |
46 | Z - Load a Slug | |
47 | (this makes the next shotgun | |
48 | shot single, powerful, and | |
49 | accurate) | |
50 | ]]) | |
51 | ||
52 | wait(1/60) | |
53 | Effects = { } | |
54 | local Player = game:service'Players'.localPlayer | |
55 | local chara = Player.Character | |
56 | local Humanoid = chara:FindFirstChildOfClass("Humanoid") | |
57 | local Mouse = Player:GetMouse() | |
58 | local LeftArm = chara["Left Arm"] | |
59 | local RightArm = chara["Right Arm"] | |
60 | local LeftLeg = chara["Left Leg"] | |
61 | local RightLeg = chara["Right Leg"] | |
62 | local Head = chara.Head | |
63 | - | Humanoid.WalkSpeed = 16 |
63 | + | |
64 | local Camera = workspace.CurrentCamera | |
65 | local RootPart = chara.HumanoidRootPart | |
66 | local RootJoint = RootPart.RootJoint | |
67 | local attack = false | |
68 | local Anim = 'Idle' | |
69 | local attacktype = 1 | |
70 | - | local pos = Vector3.new(0,0,-50) |
70 | + | |
71 | local play = true | |
72 | local targetted = nil | |
73 | - | local w = Create('Motor'){ |
73 | + | |
74 | - | Parent = part0, |
74 | + | |
75 | - | Part0 = part0, |
75 | + | |
76 | - | Part1 = part1, |
76 | + | |
77 | - | C0 = c0, |
77 | + | |
78 | - | C1 = c1, |
78 | + | |
79 | - | } |
79 | + | local debby = game:GetService("Debris") |
80 | - | return w |
80 | + | local CurrentWep = "CQC" |
81 | Humanoid.WalkSpeed = 8 | |
82 | ||
83 | Humanoid.Animator.Parent = nil | |
84 | - | return a:lerp(b, t) |
84 | + | |
85 | ||
86 | local newMotor = function(part0, part1, c0, c1) | |
87 | local w = Create('Motor'){ | |
88 | Parent = part0, | |
89 | Part0 = part0, | |
90 | - | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) |
90 | + | Part1 = part1, |
91 | - | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) |
91 | + | C0 = c0, |
92 | - | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) |
92 | + | C1 = c1, |
93 | - | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) |
93 | + | |
94 | - | RootJoint.C1 = CFrame.new(0, 0, 0) |
94 | + | return w |
95 | - | RootJoint.C0 = CFrame.new(0, 0, 0) |
95 | + | |
96 | - | Torso.Neck.C1 = CFrame.new(0, 0, 0) |
96 | + | |
97 | - | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) |
97 | + | |
98 | return a:lerp(b, t) | |
99 | end | |
100 | ||
101 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
102 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
103 | ||
104 | LeftArm.Size = LeftArm.Size * 3 | |
105 | RightArm.Size = RightArm.Size * 3 | |
106 | LeftLeg.Size = LeftLeg.Size * 3 | |
107 | RightLeg.Size = RightLeg.Size * 3 | |
108 | - | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) |
108 | + | Torso.Size = Torso.Size * 3 |
109 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) |
109 | + | Head.Size = Head.Size * 3 |
110 | - | RW.C0 = clerp(RW.C0, table[3], speed) |
110 | + | RootPart.Size = RootPart.Size * 3 |
111 | - | LW.C0 = clerp(LW.C0, table[4], speed) |
111 | + | |
112 | - | RH.C0 = clerp(RH.C0, table[5], speed) |
112 | + | local RW = newMotor(Torso, RightArm, CFrame.new(4.5, 0, 0), CFrame.new(0, 0, 0)) |
113 | - | LH.C0 = clerp(LH.C0, table[6], speed) |
113 | + | local LW = newMotor(Torso, LeftArm, CFrame.new(-4.5, 0, 0), CFrame.new(0, 0, 0)) |
114 | - | if bool == true then |
114 | + | local Neck = newMotor(Torso, Head, CFrame.new(0,4.5,0), CFrame.new()) |
115 | - | if resetc1 == false then |
115 | + | local RH = newMotor(Torso, RightLeg, CFrame.new(1.5, -3, 0), CFrame.new(0, 0, 0)) |
116 | - | resetc1 = true |
116 | + | local LH = newMotor(Torso, LeftLeg, CFrame.new(-1.5, -3, 0), CFrame.new(0, 0, 0)) |
117 | - | RootJoint.C1 = RootJoint.C1 |
117 | + | local RootJoint = newMotor(RootPart, Torso, CFrame.new(0,-2,0), CFrame.new(0,-2,0)) |
118 | - | Torso.Neck.C1 = Torso.Neck.C1 |
118 | + | |
119 | - | RW.C1 = rarmc1 |
119 | + | |
120 | - | LW.C1 = larmc1 |
120 | + | |
121 | - | RH.C1 = rlegc1 |
121 | + | |
122 | - | LH.C1 = llegc1 |
122 | + | |
123 | - | end |
123 | + | |
124 | - | end |
124 | + | |
125 | ||
126 | function PlayAnimationFromTable(table, speed, bool) | |
127 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
128 | Neck.C0 = clerp(Neck.C0, table[2], speed) | |
129 | RW.C0 = clerp(RW.C0, table[3], speed) | |
130 | LW.C0 = clerp(LW.C0, table[4], speed) | |
131 | RH.C0 = clerp(RH.C0, table[5], speed) | |
132 | LH.C0 = clerp(LH.C0, table[6], speed) | |
133 | if bool == true then | |
134 | if resetc1 == false then | |
135 | resetc1 = true | |
136 | RootJoint.C1 = RootJoint.C1 | |
137 | Neck.C1 = Neck.C1 | |
138 | - | tf = tf + s |
138 | + | RW.C1 = rarmc1 |
139 | - | if tf >= frame then |
139 | + | LW.C1 = larmc1 |
140 | - | if allowframeloss then |
140 | + | RH.C1 = rlegc1 |
141 | - | script.Heartbeat:Fire() |
141 | + | LH.C1 = llegc1 |
142 | - | lastframe = tick() |
142 | + | |
143 | - | else |
143 | + | |
144 | - | for i = 1, math.floor(tf / frame) do |
144 | + | |
145 | - | script.Heartbeat:Fire() |
145 | + | |
146 | - | end |
146 | + | |
147 | - | lastframe = tick() |
147 | + | |
148 | script:WaitForChild("Heartbeat") | |
149 | - | if tossremainder then |
149 | + | |
150 | - | tf = 0 |
150 | + | |
151 | - | else |
151 | + | |
152 | - | tf = tf - frame * math.floor(tf / frame) |
152 | + | |
153 | lastframe = tick() | |
154 | - | end |
154 | + | |
155 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
156 | tf = tf + s | |
157 | - | if num == 0 or num == nil then |
157 | + | if tf >= frame then |
158 | - | ArtificialHB.Event:wait() |
158 | + | if allowframeloss then |
159 | - | else |
159 | + | |
160 | - | for i = 0, num do |
160 | + | |
161 | - | ArtificialHB.Event:wait() |
161 | + | |
162 | for i = 1, math.floor(tf / frame) do | |
163 | - | end |
163 | + | |
164 | end | |
165 | lastframe = tick() | |
166 | end | |
167 | - | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 |
167 | + | if tossremainder then |
168 | tf = 0 | |
169 | - | |
169 | + | |
170 | tf = tf - frame * math.floor(tf / frame) | |
171 | - | CFuncs = { |
171 | + | |
172 | - | ["Part"] = { |
172 | + | |
173 | - | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) |
173 | + | |
174 | - | local Part = Create("Part"){ |
174 | + | |
175 | - | Parent = Parent, |
175 | + | if num == 0 or num == nil then |
176 | - | Reflectance = Reflectance, |
176 | + | ArtificialHB.Event:wait() |
177 | - | Transparency = Transparency, |
177 | + | |
178 | - | CanCollide = false, |
178 | + | for i = 0, num do |
179 | - | Locked = true, |
179 | + | ArtificialHB.Event:wait() |
180 | - | BrickColor = BrickColor.new(tostring(BColor)), |
180 | + | |
181 | - | Name = Name, |
181 | + | |
182 | - | Size = Size, |
182 | + | |
183 | - | Material = Material, |
183 | + | |
184 | - | } |
184 | + | |
185 | - | RemoveOutlines(Part) |
185 | + | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 |
186 | - | return Part |
186 | + | |
187 | - | end; |
187 | + | |
188 | - | }; |
188 | + | |
189 | - | |
189 | + | local sou = Instance.new("Sound", par or workspace) |
190 | - | ["Mesh"] = { |
190 | + | if par == chara then |
191 | - | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
191 | + | sou.Parent = chara.Torso |
192 | - | local Msh = Create(Mesh){ |
192 | + | |
193 | - | Parent = Part, |
193 | + | sou.Volume = vol |
194 | - | Offset = OffSet, |
194 | + | sou.Pitch = pit or 1 |
195 | - | Scale = Scale, |
195 | + | sou.SoundId = "rbxassetid://" .. id |
196 | - | } |
196 | + | sou.PlayOnRemove = true |
197 | - | if Mesh == "SpecialMesh" then |
197 | + | sou:Destroy() |
198 | - | Msh.MeshType = MeshType |
198 | + | |
199 | - | Msh.MeshId = MeshId |
199 | + | |
200 | - | end |
200 | + | --This is just for builds-- |
201 | - | return Msh |
201 | + | |
202 | - | end; |
202 | + | local Object = Instance.new(Object) |
203 | - | }; |
203 | + | for Index, Value in pairs(Data or {}) do |
204 | - | |
204 | + | Object[Index] = Value |
205 | - | ["Mesh"] = { |
205 | + | |
206 | - | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
206 | + | Object.Parent = Parent |
207 | - | local Msh = Create(Mesh){ |
207 | + | Object.Name = Name |
208 | - | Parent = Part, |
208 | + | return Object |
209 | - | Offset = OffSet, |
209 | + | |
210 | - | Scale = Scale, |
210 | + | FakeHeadM = New("Model",chara,"FakeHeadM",{}) |
211 | - | } |
211 | + | FakeHead = New("Part",FakeHeadM,"FakeHead",{Size = Vector3.new(6, 3, 3),CFrame = CFrame.new(26.5, 1.5, -49.8000183, 1, 0, 0, 0, 1, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
212 | - | if Mesh == "SpecialMesh" then |
212 | + | Mesh = New("SpecialMesh",FakeHead,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),}) |
213 | - | Msh.MeshType = MeshType |
213 | + | Fays = New("Decal",FakeHead,"Decal",{Texture = "rbxassetid://315622231",}) |
214 | - | Msh.MeshId = MeshId |
214 | + | Weld = New("ManualWeld",FakeHead,"Weld",{Part0 = FakeHead,Part1 = Head,}) |
215 | - | end |
215 | + | Shedo = New("Part",FakeHeadM,"Shedo",{Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(26.5000114, 2.19999933, -50.2999916, 1, 0, 0, 0, 1, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
216 | - | return Msh |
216 | + | Mesh = New("SpecialMesh",Shedo,"Mesh",{Scale = Vector3.new(3, 3, 3),VertexColor = Vector3.new(1, 0, 0),MeshId = "rbxassetid://18755442",TextureId = "rbxassetid://65032890",MeshType = Enum.MeshType.FileMesh,}) |
217 | - | end; |
217 | + | Weld = New("ManualWeld",Shedo,"Weld",{Part0 = Shedo,Part1 = FakeHead,C1 = CFrame.new(1.14440918e-05, 0.699999332, -0.499973297, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) |
218 | - | }; |
218 | + | Head.Transparency = 1 |
219 | - | |
219 | + | Humanoid.CameraOffset = Vector3.new(0,3,0) |
220 | - | ["Weld"] = { |
220 | + | |
221 | - | Create = function(Parent, Part0, Part1, C0, C1) |
221 | + | Shotii = New("Model",chara,"Shotii",{}) |
222 | - | local Weld = Create("Weld"){ |
222 | + | SHandaru = New("Part",Shotii,"SHandaru",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(82.7000122, 8.4184885, -48.6482887, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
223 | - | Parent = Parent, |
223 | + | Mesh = New("SpecialMesh",SHandaru,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://450250994",TextureId = "rbxassetid://450251128",MeshType = Enum.MeshType.FileMesh,}) |
224 | - | Part0 = Part0, |
224 | + | Weld = New("ManualWeld",SHandaru,"Weld",{Part0 = SHandaru,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(0.292991638, -7.6862278, -0.349998474, 0.984807849, -0.030152997, -0.171009988, 0.173647955, 0.17100893, 0.969846547, 4.55671426e-07, -0.984807968, 0.173646942),}) |
225 | - | Part1 = Part1, |
225 | + | SShot = New("Part",Shotii,"SShot",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(82.7000122, 8.3150301, -54.4179688, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
226 | - | C0 = C0, |
226 | + | Weld = New("ManualWeld",SShot,"Weld",{Part0 = SShot,Part1 = SHandaru,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(5.69999313, 0.900001526, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),}) |
227 | - | C1 = C1, |
227 | + | SSExit = New("Part",Shotii,"SSExit",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(83.0000076, 9.67517471, -46.1282616, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
228 | - | } |
228 | + | Weld = New("ManualWeld",SSExit,"Weld",{Part0 = SSExit,Part1 = SHandaru,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(-2.69996262, 0.799999237, 0.299995422, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),}) |
229 | - | return Weld |
229 | + | |
230 | - | end; |
230 | + | Pistoru = New("Model",chara,"Pistoru",{}) |
231 | - | }; |
231 | + | PHandaru = New("Part",Pistoru,"PHandaru",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(90.3498764, 9.52873039, -33.8800735, -0.984808445, -0.171009943, 0.0301536396, -0.173648074, 0.969846964, -0.171010002, -2.58755817e-09, -0.173648193, -0.984807789),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
232 | - | |
232 | + | Mesh = New("SpecialMesh",PHandaru,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://437242703",TextureId = "rbxassetid://437242708",MeshType = Enum.MeshType.FileMesh,}) |
233 | - | ["ParticleEmitter"] = { |
233 | + | Weld = New("ManualWeld",PHandaru,"Weld",{Part0 = PHandaru,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, -0.984808445, -0.173648074, -2.58755817e-09, -0.171009943, 0.969846964, -0.173648193, 0.0301536396, -0.171010002, -0.984807789),C1 = CFrame.new(-0.450126648, -4.80198288, -0.307024956, 1, 0, 0, 0, 0.173647985, 0.984807849, 0, -0.984807849, 0.173647985),}) |
234 | - | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) |
234 | + | PBExit = New("Part",Pistoru,"PBExit",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(90.1265717, 10.7951508, -33.49757, -0.984809041, -0.171010062, 0.0301536396, -0.173648193, 0.96984756, -0.171010002, 0, -0.173648298, -0.984807789),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
235 | - | local fp = Create("ParticleEmitter"){ |
235 | + | Weld = New("ManualWeld",PBExit,"Weld",{Part0 = PBExit,Part1 = PHandaru,C0 = CFrame.new(0, 0, 0, -0.984807849, -0.173647985, 0, -0.173647985, 0.984807849, 0, 0, 0, -1),C1 = CFrame.new(0, 1.19999886, -0.599994659, -0.984808326, -0.173648059, 0, -0.173648059, 0.984808326, 0, 0, 0, -1),}) |
236 | - | Parent = Parent, |
236 | + | PShot = New("Part",Pistoru,"PShot",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(90.2109985, 10.3163252, -36.2550163, -0.984808803, -0.171010002, 0.0301536396, -0.173648134, 0.969847322, -0.171010002, -2.58755906e-09, -0.173648253, -0.984807789),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
237 | - | Color = ColorSequence.new(Color1, Color2), |
237 | + | Weld = New("ManualWeld",PShot,"Weld",{Part0 = PShot,Part1 = PHandaru,C0 = CFrame.new(0, 0, 0, -0.984807968, -0.173648, 0, -0.173648, 0.984807968, 0, 0, 0, -1),C1 = CFrame.new(0, 1.19999886, 2.19998932, -0.984807968, -0.173648, 0, -0.173648, 0.984807968, 0, 0, 0, -1),}) |
238 | - | LightEmission = LightEmission, |
238 | + | |
239 | - | Size = Size, |
239 | + | HolShot = New("Part",chara,"HolShot",{Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(52.4309196, 10.2762518, -23.0499916, -0.499998987, -0.866025984, 0, -0.866025984, 0.499998987, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
240 | - | Texture = Texture, |
240 | + | Mesh = New("SpecialMesh",HolShot,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://450250994",TextureId = "rbxassetid://450251128",MeshType = Enum.MeshType.FileMesh,}) |
241 | - | Transparency = Transparency, |
241 | + | Weld = New("ManualWeld",HolShot,"Weld",{Part0 = HolShot,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.499998987, -0.866025984, 0, -0.866025984, 0.499998987, 0, 0, 0, -1),C1 = CFrame.new(1.33091354, 1.2762394, 1.65000534, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) |
242 | - | ZOffset = ZOffset, |
242 | + | |
243 | - | Acceleration = Accel, |
243 | + | HolPist = New("Part",chara,"HolPist",{Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(70.7500153, 5.34207106, -26.6475906, -1, 0, 0, 0, 0.642789185, -0.766043186, 0, -0.766043186, -0.642789185),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
244 | - | Drag = Drag, |
244 | + | Mesh = New("SpecialMesh",HolPist,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://437242703",TextureId = "rbxassetid://437242708",MeshType = Enum.MeshType.FileMesh,}) |
245 | - | LockedToPart = LockedToPart, |
245 | + | Weld = New("ManualWeld",HolPist,"Weld",{Part0 = HolPist,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.642789185, -0.766043186, 0, -0.766043186, -0.642789185),C1 = CFrame.new(2.45001984, -3.72772598, 0.233430862, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),}) |
246 | - | VelocityInheritance = VelocityInheritance, |
246 | + | |
247 | - | EmissionDirection = EmissionDirection, |
247 | + | Instance.new("BoolValue",chara).Name = "HolyMode" |
248 | - | Enabled = Enabled, |
248 | + | local hedcol = FakeHead.BrickColor |
249 | - | Lifetime = LifeTime, |
249 | + | local bcols = Instance.new("BodyColors",chara) |
250 | - | Rate = Rate, |
250 | + | bcols.Name = "NeoCols" |
251 | - | Rotation = Rotation, |
251 | + | bcols.HeadColor = hedcol |
252 | - | RotSpeed = RotSpeed, |
252 | + | bcols.LeftArmColor = hedcol |
253 | - | Speed = Speed, |
253 | + | bcols.RightArmColor = hedcol |
254 | - | VelocitySpread = VelocitySpread, |
254 | + | bcols.TorsoColor = hedcol |
255 | - | } |
255 | + | bcols.LeftLegColor = hedcol |
256 | - | return fp |
256 | + | bcols.RightLegColor = hedcol |
257 | - | end; |
257 | + | |
258 | - | }; |
258 | + | |
259 | if v:IsA("Shirt") or v:IsA("Pants") then | |
260 | - | CreateTemplate = { |
260 | + | |
261 | - | |
261 | + | |
262 | - | }; |
262 | + | |
263 | local sh = Instance.new("Shirt",chara) | |
264 | local pn = Instance.new("Pants",chara) | |
265 | sh.ShirtTemplate = "rbxassetid://676428254" | |
266 | pn.PantsTemplate = "rbxassetid://676428351" | |
267 | - | local sou = Instance.new("Sound", par or workspace) |
267 | + | if chara:FindFirstChild("FaysG") then chara:FindFirstChild("FaysG"):Destroy() end |
268 | - | if par == chara then |
268 | + | --------------------------- |
269 | - | sou.Parent = chara.Torso |
269 | + | |
270 | - | end |
270 | + | |
271 | - | sou.Volume = vol |
271 | + | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) |
272 | - | sou.Pitch = pit or 1 |
272 | + | |
273 | - | sou.SoundId = "rbxassetid://" .. id |
273 | + | |
274 | - | sou.PlayOnRemove = true |
274 | + | |
275 | - | sou:Destroy() |
275 | + | if SinglePlayer then |
276 | return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance | |
277 | end | |
278 | - | local mus = Instance.new("Sound",Head) |
278 | + | local List = {} |
279 | for i, v in pairs(workspace:GetDescendants()) do | |
280 | - | mus.SoundId = "rbxassetid://345868687" |
280 | + | if v:IsA("Model") then |
281 | if v:findFirstChild("Head") then | |
282 | if v ~= chara then | |
283 | if (v.Head.Position - Position).magnitude <= Distance then | |
284 | table.insert(List, v) | |
285 | end | |
286 | - | local Object = Instance.new(Object) |
286 | + | |
287 | - | for Index, Value in pairs(Data or {}) do |
287 | + | |
288 | - | Object[Index] = Value |
288 | + | |
289 | - | end |
289 | + | |
290 | - | Object.Parent = Parent |
290 | + | return List |
291 | - | Object.Name = Name |
291 | + | |
292 | - | return Object |
292 | + | |
293 | EffectModel = Create("Model"){ | |
294 | Parent = chara, | |
295 | - | local PoliceHat = New("Part",chara,"PoliceHat",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(2, 0.400000006, 1),CFrame = CFrame.new(18.3999939, 1.20000005, -23.1000061, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
295 | + | Name = "Effects", |
296 | - | local Mesh = New("SpecialMesh",PoliceHat,"Mesh",{Scale = Vector3.new(1.10000002, 1.20000005, 1.10000002),MeshId = "rbxassetid://1028788",TextureId = "rbxassetid://152240477",MeshType = Enum.MeshType.FileMesh,}) |
296 | + | |
297 | - | local Weld = New("ManualWeld",PoliceHat,"Weld",{Part0 = PoliceHat,Part1 = Head,C1 = CFrame.new(0, 0.700000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) |
297 | + | |
298 | --Effect Functions-- | |
299 | - | if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") then |
299 | + | |
300 | ||
301 | - | elseif v.Name == "FakeHeadM" then |
301 | + | Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor) |
302 | - | v.Ahoge.Mesh.Scale = Vector3.new() |
302 | + | local p = Instance.new("Part",EffectModel) |
303 | - | elseif v.Name == "Chest" then |
303 | + | p.BrickColor = BrickColor.new(colour) |
304 | - | for a, b in pairs(v:children()) do |
304 | + | p.Size = partsize |
305 | - | if b.Name ~= "Tail" then |
305 | + | p.Anchored = true |
306 | - | b.Transparency = 1 |
306 | + | p.CanCollide = false |
307 | p.Material = matr | |
308 | p.CFrame = cf | |
309 | if inverse == true then | |
310 | p.Transparency = 1 | |
311 | else | |
312 | p.Transparency = 0 | |
313 | - | sh.ShirtTemplate = "rbxassetid://133284214" |
313 | + | |
314 | - | pn.PantsTemplate = "rbxassetid://15224239" |
314 | + | local m = Instance.new("BlockMesh",p) |
315 | m.Scale = meshstart | |
316 | coroutine.wrap(function() | |
317 | - | bdefc0 = CFrame.new(.8,-1,0)*CFrame.Angles(math.rad(30),0,0) |
317 | + | for i=0,1,factor do |
318 | - | gdefc0 = CFrame.new(-.8,-1,0)*CFrame.Angles(math.rad(130),0,0) |
318 | + | |
319 | if inverse == true then | |
320 | - | local baton = Instance.new("Part",chara) |
320 | + | p.Transparency = 1-i |
321 | - | baton.Name = "Baton" |
321 | + | |
322 | - | baton.Size = Vector3.new(.2,.2,3.2) |
322 | + | p.Transparency = i |
323 | - | baton.BrickColor = BrickColor.new("Really black") |
323 | + | |
324 | - | baton.CanCollide = false |
324 | + | m.Scale = m.Scale + meshadd |
325 | - | CFuncs.Mesh.Create("SpecialMesh", baton, "FileMesh", "rbxassetid://11820238", Vector3.new(), Vector3.new(1.5,1.5,1.5)) |
325 | + | if spin == true then |
326 | p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
327 | - | local bweld = Instance.new("Weld",baton) |
327 | + | |
328 | - | bweld.Part0 = Torso |
328 | + | |
329 | - | bweld.Part1 = baton |
329 | + | p:Destroy() |
330 | - | bweld.C0 = bdefc0 |
330 | + | |
331 | return p | |
332 | - | local att1 = Instance.new("Attachment",baton) |
332 | + | end, |
333 | - | att1.Position = Vector3.new(-baton.Size.X/2,baton.Size.Y/2,baton.Size.Z/2) |
333 | + | |
334 | - | local att2 = Instance.new("Attachment",baton) |
334 | + | Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) |
335 | - | att2.Position = Vector3.new(-baton.Size.X/2,-baton.Size.Y/2,-baton.Size.Z/2) |
335 | + | local p = Instance.new("Part",EffectModel) |
336 | - | local tr1 = Instance.new("Trail",baton) |
336 | + | p.BrickColor = BrickColor.new(colour) |
337 | - | tr1.Color = ColorSequence.new(Color3.new(1,1,1)) |
337 | + | p.Size = partsize |
338 | - | tr1.Transparency = NumberSequence.new(0,1) |
338 | + | p.Anchored = true |
339 | - | tr1.Lifetime = .5 |
339 | + | p.CanCollide = false |
340 | - | tr1.Enabled = false |
340 | + | p.Material = matr |
341 | - | tr1.LightEmission = 1 |
341 | + | p.CFrame = cf |
342 | - | tr1.Attachment0 = att1 |
342 | + | if inverse == true then |
343 | - | tr1.Attachment1 = att2 |
343 | + | p.Transparency = 1 |
344 | - | local att3 = Instance.new("Attachment",RightLeg) |
344 | + | |
345 | - | att3.Position = Vector3.new(0,1,0) |
345 | + | p.Transparency = 0 |
346 | - | local att4 = Instance.new("Attachment",RightLeg) |
346 | + | |
347 | - | att4.Position = Vector3.new(0,-1,0) |
347 | + | local m = Instance.new("SpecialMesh",p) |
348 | - | local tr2 = Instance.new("Trail",RightLeg) |
348 | + | m.MeshType = "Sphere" |
349 | - | tr2.Color = ColorSequence.new(Color3.new(1,1,1)) |
349 | + | m.Scale = meshstart |
350 | - | tr2.Transparency = NumberSequence.new(0,1) |
350 | + | |
351 | - | tr2.Lifetime = .5 |
351 | + | for i=0,1,factor do |
352 | - | tr2.Enabled = false |
352 | + | |
353 | - | tr2.LightEmission = 1 |
353 | + | if inverse == true then |
354 | - | tr2.Attachment0 = att3 |
354 | + | p.Transparency = 1-i |
355 | - | tr2.Attachment1 = att4 |
355 | + | |
356 | p.Transparency = i | |
357 | - | local gun = Instance.new("Part",chara) |
357 | + | |
358 | - | gun.Name = "Gun" |
358 | + | m.Scale = m.Scale + meshadd |
359 | - | gun.Size = Vector3.new(.2,.2,.2) |
359 | + | |
360 | - | gun.BrickColor = BrickColor.new("Really black") |
360 | + | p:Destroy() |
361 | - | gun.CanCollide = false |
361 | + | |
362 | - | CFuncs.Mesh.Create("SpecialMesh", gun, "FileMesh", "rbxassetid://72012879", Vector3.new(), Vector3.new(2,2,2)) |
362 | + | return p |
363 | end, | |
364 | - | local gweld = Instance.new("Weld",gun) |
364 | + | |
365 | - | gweld.Part0 = Torso |
365 | + | Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) |
366 | - | gweld.Part1 = gun |
366 | + | local p = Instance.new("Part",EffectModel) |
367 | - | gweld.C0 = gdefc0 |
367 | + | p.BrickColor = BrickColor.new(colour) |
368 | p.Size = partsize | |
369 | p.Anchored = true | |
370 | - | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) |
370 | + | p.CanCollide = false |
371 | p.Material = matr | |
372 | p.CFrame = cf | |
373 | - | function mdmg(Part, Magnitude, HitType) |
373 | + | if inverse == true then |
374 | - | for _, c in pairs(workspace:GetDescendants()) do |
374 | + | p.Transparency = 1 |
375 | - | local hum = c:FindFirstChildOfClass("Humanoid") |
375 | + | |
376 | - | if hum ~= nil then |
376 | + | p.Transparency = 0 |
377 | - | local head = c:FindFirstChild("UpperTorso") or c:FindFirstChild("Torso") |
377 | + | |
378 | - | if head ~= nil then |
378 | + | local m = Instance.new("CylinderMesh",p) |
379 | - | local targ = head.Position - Part.Position |
379 | + | m.Scale = meshstart |
380 | - | local mag = targ.magnitude |
380 | + | |
381 | - | if mag <= Magnitude and c.Name ~= Player.Name and c:FindFirstChild("MagDmgd")==nil then |
381 | + | for i=0,1,factor do |
382 | - | if c.Name ~= chara then |
382 | + | |
383 | - | if c.Name ~= "CKbackup" or c.Name ~= "Nebula_Zorua" or c.Name ~= "Salvo_Starly" then |
383 | + | if inverse == true then |
384 | - | local val = Instance.new("BoolValue",c) |
384 | + | p.Transparency = 1-i |
385 | - | val.Name = "MagDmgd" |
385 | + | |
386 | - | local asd = Instance.new("ParticleEmitter",head) |
386 | + | p.Transparency = i |
387 | - | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) |
387 | + | |
388 | - | asd.LightEmission = .1 |
388 | + | m.Scale = m.Scale + meshadd |
389 | - | asd.Size = NumberSequence.new(0.2) |
389 | + | |
390 | - | asd.Texture = "rbxassetid://771221224" |
390 | + | p:Destroy() |
391 | - | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 1)}) |
391 | + | |
392 | - | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) |
392 | + | return p |
393 | - | asd.Transparency = bbb |
393 | + | end, |
394 | - | asd.Size = aaa |
394 | + | |
395 | - | asd.ZOffset = .9 |
395 | + | Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor) |
396 | - | asd.Acceleration = Vector3.new(0, -5, 0) |
396 | + | local p = Instance.new("Part",EffectModel) |
397 | - | asd.LockedToPart = false |
397 | + | p.BrickColor = BrickColor.new(colour) |
398 | - | asd.EmissionDirection = "Back" |
398 | + | p.Size = Vector3.new() |
399 | - | asd.Lifetime = NumberRange.new(1, 2) |
399 | + | p.Anchored = true |
400 | - | asd.Rate = 1000 |
400 | + | p.CanCollide = false |
401 | - | asd.Rotation = NumberRange.new(-100, 100) |
401 | + | p.CFrame = cf |
402 | - | asd.RotSpeed = NumberRange.new(-100, 100) |
402 | + | if inverse == true then |
403 | - | asd.Speed = NumberRange.new(6) |
403 | + | p.Transparency = 1 |
404 | - | asd.VelocitySpread = 10000 |
404 | + | |
405 | - | asd.Enabled = false |
405 | + | p.Transparency = 0 |
406 | - | asd:Emit(20) |
406 | + | |
407 | - | game:service'Debris':AddItem(asd,3) |
407 | + | local m = Instance.new("SpecialMesh",p) |
408 | - | --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) |
408 | + | m.MeshId = "rbxassetid://20329976" |
409 | - | if HitType == "Blunt" then |
409 | + | m.Scale = meshstart |
410 | - | so(386946017,head,.95,3) |
410 | + | |
411 | - | game:service'Debris':AddItem(val,1) |
411 | + | for i=0,1,factor do |
412 | - | elseif HitType == "Shot" then |
412 | + | |
413 | - | so(144884872,head,.9,3) |
413 | + | if inverse == true then |
414 | - | game:service'Debris':AddItem(val,.05) |
414 | + | p.Transparency = 1-i |
415 | - | end |
415 | + | |
416 | - | local soaa = Instance.new("Sound",c.Head) |
416 | + | p.Transparency = i |
417 | - | soaa.Volume = .5 |
417 | + | |
418 | - | local cho = math.random(1,5) |
418 | + | m.Scale = m.Scale + meshadd |
419 | - | if cho == 1 then |
419 | + | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) |
420 | - | soaa.SoundId = "rbxassetid://111896685" |
420 | + | |
421 | - | elseif cho == 2 then |
421 | + | p:Destroy() |
422 | - | soaa.SoundId = "rbxassetid://535528169" |
422 | + | |
423 | - | elseif cho == 3 then |
423 | + | return p |
424 | - | soaa.SoundId = "rbxassetid://1080363252" |
424 | + | end, |
425 | - | elseif cho == 4 then |
425 | + | |
426 | - | soaa.SoundId = "rbxassetid://147758746" |
426 | + | Ring = function(cf,meshstart,meshadd,colour,inverse,factor) |
427 | - | elseif cho == 5 then |
427 | + | local p = Instance.new("Part",EffectModel) |
428 | - | soaa.SoundId = "rbxassetid://626777433" |
428 | + | p.BrickColor = BrickColor.new(colour) |
429 | - | soaa.Volume = .2 |
429 | + | p.Size = Vector3.new() |
430 | - | soaa.TimePosition = 1 |
430 | + | p.Anchored = true |
431 | - | end |
431 | + | p.CanCollide = false |
432 | - | game:service'Debris':AddItem(soaa,6) |
432 | + | p.CFrame = cf |
433 | - | soaa:Play() |
433 | + | if inverse == true then |
434 | - | for i,v in pairs(c:children()) do |
434 | + | p.Transparency = 1 |
435 | - | if v:IsA("LocalScript") or v:IsA("Tool") then |
435 | + | |
436 | - | v:Destroy() |
436 | + | p.Transparency = 0 |
437 | - | end |
437 | + | |
438 | - | end |
438 | + | local m = Instance.new("SpecialMesh",p) |
439 | - | hum.PlatformStand = true |
439 | + | m.MeshId = "rbxassetid://3270017" |
440 | - | head.Velocity = RootPart.CFrame.lookVector*50 |
440 | + | m.Scale = meshstart |
441 | - | head.RotVelocity = Vector3.new(10,0,0) |
441 | + | |
442 | - | chatfunc("Let that be a warning!") |
442 | + | for i=0,1,factor do |
443 | - | coroutine.wrap(function() |
443 | + | |
444 | - | swait(5) |
444 | + | if inverse == true then |
445 | - | c:BreakJoints() end)() |
445 | + | p.Transparency = 1-i |
446 | - | else |
446 | + | |
447 | - | end |
447 | + | p.Transparency = i |
448 | - | end |
448 | + | |
449 | - | end |
449 | + | m.Scale = m.Scale + meshadd |
450 | - | end |
450 | + | |
451 | - | end |
451 | + | p:Destroy() |
452 | - | end |
452 | + | |
453 | return p | |
454 | end, | |
455 | - | --[[FindNearestTorso = function(pos) |
455 | + | |
456 | - | local list = (game.workspace:GetDescendants()) |
456 | + | Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor) |
457 | - | local torso = nil |
457 | + | local p = Instance.new("Part",EffectModel) |
458 | - | local dist = 1000 |
458 | + | p.BrickColor = BrickColor.new(colour) |
459 | - | local temp, human, temp2 = nil, nil, nil |
459 | + | p.Size = Vector3.new() |
460 | - | for x = 1, #list do |
460 | + | p.Anchored = true |
461 | - | temp2 = list[x] |
461 | + | p.CanCollide = false |
462 | - | if temp2.className == "Model" and temp2.Name ~= chara.Name then |
462 | + | p.CFrame = cf |
463 | - | temp = temp2:findFirstChild("Torso") |
463 | + | if inverse == true then |
464 | - | human = temp2:FindFirstChildOfClass("Humanoid") |
464 | + | p.Transparency = 1 |
465 | - | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then |
465 | + | |
466 | - | local dohit = true |
466 | + | p.Transparency = 0 |
467 | - | if dohit == true then |
467 | + | |
468 | - | torso = temp |
468 | + | local m = Instance.new("SpecialMesh",p) |
469 | - | dist = (temp.Position - pos).magnitude |
469 | + | m.MeshId = meshid |
470 | - | end |
470 | + | m.TextureId = textid |
471 | - | end |
471 | + | m.Scale = meshstart |
472 | - | end |
472 | + | |
473 | - | end |
473 | + | for i=0,1,factor do |
474 | - | return torso, dist |
474 | + | |
475 | - | end]] |
475 | + | if inverse == true then |
476 | p.Transparency = 1-i | |
477 | else | |
478 | p.Transparency = i | |
479 | - | if SinglePlayer then |
479 | + | |
480 | - | return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance |
480 | + | m.Scale = m.Scale + meshadd |
481 | - | end |
481 | + | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) |
482 | - | local List = {} |
482 | + | |
483 | - | for i, v in pairs(workspace:GetDescendants()) do |
483 | + | p:Destroy() |
484 | - | if v:IsA("Model") then |
484 | + | |
485 | - | if v:findFirstChild("Head") then |
485 | + | return p |
486 | - | if v ~= chara then |
486 | + | end, |
487 | - | if (v.Head.Position - Position).magnitude <= Distance then |
487 | + | |
488 | - | table.insert(List, v) |
488 | + | Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor) |
489 | - | end |
489 | + | local p = Instance.new("Part",EffectModel) |
490 | - | end |
490 | + | p.BrickColor = BrickColor.new(colour) |
491 | - | end |
491 | + | p.Size = partsize |
492 | - | end |
492 | + | p.Anchored = true |
493 | - | end |
493 | + | p.CanCollide = false |
494 | - | return List |
494 | + | p.Material = matr |
495 | p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
496 | if inverse == true then | |
497 | p.Transparency = 1 | |
498 | - | --Chat Function-- |
498 | + | |
499 | p.Transparency = 0 | |
500 | end | |
501 | local m = Instance.new("SpecialMesh",p) | |
502 | m.MeshType = "Sphere" | |
503 | m.Scale = meshstart | |
504 | coroutine.wrap(function() | |
505 | for i=0,1,factor do | |
506 | swait() | |
507 | if inverse == true then | |
508 | p.Transparency = 1-i | |
509 | else | |
510 | p.Transparency = i | |
511 | end | |
512 | m.Scale = m.Scale + meshadd | |
513 | - | tecks2.Font = "Fantasy" |
513 | + | p.CFrame = p.CFrame * CFrame.new(0,move,0) |
514 | end | |
515 | p:Destroy() | |
516 | - | tecks2.TextColor3 = Color3.new(1,1,1) |
516 | + | |
517 | - | tecks2.TextStrokeColor3 = Color3.new(0,0,0) |
517 | + | return p |
518 | end, | |
519 | ||
520 | } | |
521 | ||
522 | function chatfunc(text) | |
523 | coroutine.wrap(function() | |
524 | if chara:FindFirstChild("TalkingBillBoard")~= nil then | |
525 | chara:FindFirstChild("TalkingBillBoard"):destroy() | |
526 | end | |
527 | local naeeym2 = Instance.new("BillboardGui",chara) | |
528 | naeeym2.Size = UDim2.new(0,100,0,40) | |
529 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
530 | naeeym2.Adornee = chara.Head | |
531 | naeeym2.Name = "BLABLABLA" | |
532 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
533 | tecks2.BackgroundTransparency = 1 | |
534 | tecks2.BorderSizePixel = 0 | |
535 | tecks2.Text = "" | |
536 | tecks2.Font = "Antique" | |
537 | - | Parent = chara, |
537 | + | |
538 | - | Name = "Effects", |
538 | + | |
539 | tecks2.TextColor3 = Color3.new(0,0,0) | |
540 | tecks2.TextStrokeColor3 = Color3.new(1,0,0) | |
541 | tecks2.Size = UDim2.new(1,0,0.5,0)coroutine.wrap(function() | |
542 | while tecks2 ~= nil do | |
543 | - | Block = { |
543 | + | |
544 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) |
544 | + | tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3)) |
545 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
545 | + | |
546 | - | prt.Anchored = true |
546 | + | |
547 | - | prt.CFrame = cframe |
547 | + | |
548 | - | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
548 | + | |
549 | - | game:GetService("Debris"):AddItem(prt, 10) |
549 | + | |
550 | - | if Type == 1 or Type == nil then |
550 | + | |
551 | - | table.insert(Effects, { |
551 | + | |
552 | - | prt, |
552 | + | |
553 | - | "Block1", |
553 | + | |
554 | - | delay, |
554 | + | |
555 | - | x3, |
555 | + | |
556 | - | y3, |
556 | + | |
557 | - | z3, |
557 | + | |
558 | - | msh |
558 | + | |
559 | - | }) |
559 | + | |
560 | - | elseif Type == 2 then |
560 | + | |
561 | - | table.insert(Effects, { |
561 | + | |
562 | - | prt, |
562 | + | function GetDudesTorso(c) |
563 | - | "Block2", |
563 | + | local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso")) |
564 | - | delay, |
564 | + | if torsy ~= nil then |
565 | - | x3, |
565 | + | return torsy |
566 | - | y3, |
566 | + | |
567 | - | z3, |
567 | + | |
568 | - | msh |
568 | + | |
569 | - | }) |
569 | + | function BodyVel(part,faws) |
570 | - | end |
570 | + | local bodyvel = Instance.new("BodyVelocity",part) |
571 | - | end; |
571 | + | local pep = 10000000 |
572 | - | }; |
572 | + | bodyvel.P = pep |
573 | bodyvel.MaxForce = Vector3.new(pep,pep,pep) | |
574 | - | Cylinder = { |
574 | + | bodyvel.Velocity = faws |
575 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
575 | + | debby:AddItem(bodyvel,.2) |
576 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
576 | + | |
577 | - | prt.Anchored = true |
577 | + | |
578 | - | prt.CFrame = cframe |
578 | + | function Dmg(dude,dmg,env,faws,trip,efftyp,toim) |
579 | - | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
579 | + | if dude and dude ~= chara then |
580 | - | game:GetService("Debris"):AddItem(prt, 10) |
580 | + | if dude:FindFirstChild("HITO") then return end |
581 | - | table.insert(Effects, { |
581 | + | local debounce = Instance.new("BoolValue",dude) |
582 | - | prt, |
582 | + | debounce.Name = "HITO" |
583 | - | "Cylinder", |
583 | + | debby:AddItem(debounce,toim) |
584 | - | delay, |
584 | + | local hum = dude:FindFirstChildOfClass("Humanoid") |
585 | - | x3, |
585 | + | local dam = dmg+math.random(-env,env) |
586 | - | y3, |
586 | + | local teksu = "-"..dam |
587 | - | z3, |
587 | + | if hum then |
588 | - | msh |
588 | + | local finhel = hum.Health - dam |
589 | - | }) |
589 | + | if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then |
590 | - | end; |
590 | + | Instance.new("BoolValue",dude).Name = "DEATHED" |
591 | - | }; |
591 | + | local soaa = Instance.new("Sound",dude.Head) |
592 | - | Head = { |
592 | + | local cho = math.random(1,5) |
593 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
593 | + | if cho == 1 then |
594 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
594 | + | soaa.SoundId = "rbxassetid://111896685" |
595 | - | prt.Anchored = true |
595 | + | elseif cho == 2 then |
596 | - | prt.CFrame = cframe |
596 | + | soaa.SoundId = "rbxassetid://535528169" |
597 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
597 | + | elseif cho == 3 then |
598 | - | game:GetService("Debris"):AddItem(prt, 10) |
598 | + | soaa.SoundId = "rbxassetid://1080363252" |
599 | - | table.insert(Effects, { |
599 | + | elseif cho == 4 then |
600 | - | prt, |
600 | + | soaa.SoundId = "rbxassetid://147758746" |
601 | - | "Cylinder", |
601 | + | elseif cho == 5 then |
602 | - | delay, |
602 | + | soaa.SoundId = "rbxassetid://626777433" |
603 | - | x3, |
603 | + | soaa.Volume = .2 |
604 | - | y3, |
604 | + | soaa.TimePosition = 1 |
605 | - | z3, |
605 | + | |
606 | - | msh |
606 | + | game:service'Debris':AddItem(soaa,6) |
607 | - | }) |
607 | + | soaa:Play() |
608 | - | end; |
608 | + | |
609 | - | }; |
609 | + | if hum.Health > 1000 then |
610 | - | |
610 | + | teksu = "DEATH" |
611 | - | Sphere = { |
611 | + | dude:BreakJoints() |
612 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
612 | + | |
613 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
613 | + | hum.Health = hum.Health - dam |
614 | - | prt.Anchored = true |
614 | + | |
615 | - | prt.CFrame = cframe |
615 | + | |
616 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
616 | + | |
617 | - | game:GetService("Debris"):AddItem(prt, 10) |
617 | + | local naeeym2 = Instance.new("BillboardGui",dude) |
618 | - | table.insert(Effects, { |
618 | + | |
619 | - | prt, |
619 | + | |
620 | - | "Cylinder", |
620 | + | naeeym2.Adornee = dude:FindFirstChild("Head") |
621 | - | delay, |
621 | + | |
622 | - | x3, |
622 | + | |
623 | - | y3, |
623 | + | |
624 | - | z3, |
624 | + | |
625 | - | msh |
625 | + | tecks2.Text = teksu |
626 | - | }) |
626 | + | tecks2.Font = "Antique" |
627 | - | end; |
627 | + | tecks2.TextSize = 24 |
628 | - | }; |
628 | + | |
629 | - | |
629 | + | tecks2.TextColor3 = Color3.new(0,0,0) |
630 | - | Elect = { |
630 | + | tecks2.TextStrokeColor3 = Color3.new(1,0,0) |
631 | - | Create = function(cff, x, y, z) |
631 | + | |
632 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1)) |
632 | + | |
633 | - | prt.Anchored = true |
633 | + | for i = 0,1,.05 do |
634 | - | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) |
634 | + | |
635 | - | prt.CFrame = CFrame.new(prt.Position) |
635 | + | tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0) |
636 | - | game:GetService("Debris"):AddItem(prt, 2) |
636 | + | tecks2.TextStrokeTransparency = i |
637 | - | local xval = math.random() / 2 |
637 | + | tecks2.TextTransparency = i |
638 | - | local yval = math.random() / 2 |
638 | + | |
639 | - | local zval = math.random() / 2 |
639 | + | |
640 | - | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) |
640 | + | |
641 | - | table.insert(Effects, { |
641 | + | local torsy = GetDudesTorso(dude) |
642 | - | prt, |
642 | + | if torsy then |
643 | - | "Elec", |
643 | + | for i=1,dam/5 do |
644 | - | 0.1, |
644 | + | local blp = Instance.new("Part",EffectModel) |
645 | - | x, |
645 | + | blp.Size = Vector3.new(.3,.3,.3) |
646 | - | y, |
646 | + | blp.BrickColor = BrickColor.new("Crimson") |
647 | - | z, |
647 | + | blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
648 | - | xval, |
648 | + | blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0) |
649 | - | yval, |
649 | + | blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)) |
650 | - | zval |
650 | + | --local blm = Instance.new("SpecialMesh",blp) |
651 | - | }) |
651 | + | --blm.MeshType = "Sphere" |
652 | - | end; |
652 | + | |
653 | swait(10) | |
654 | - | }; |
654 | + | blp.Orientation = Vector3.new(0,blp.Orientation.y,0) |
655 | - | |
655 | + | for i=0,1,.1 do |
656 | - | Ring = { |
656 | + | |
657 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
657 | + | blp.Transparency = i |
658 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
658 | + | blp.Size = blp.Size + Vector3.new(.05,-.05,.05) |
659 | - | prt.Anchored = true |
659 | + | |
660 | - | prt.CFrame = cframe |
660 | + | blp:Destroy() |
661 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
661 | + | |
662 | - | game:GetService("Debris"):AddItem(prt, 10) |
662 | + | |
663 | - | table.insert(Effects, { |
663 | + | if efftyp == "Blunt" then |
664 | - | prt, |
664 | + | puncheff(torsy) |
665 | - | "Cylinder", |
665 | + | elseif efftyp == "Sharp" then |
666 | - | delay, |
666 | + | slasheff(torsy) |
667 | - | x3, |
667 | + | elseif efftyp == "Shot" then |
668 | - | y3, |
668 | + | so(144884872,torsy,.9,1) |
669 | - | z3, |
669 | + | |
670 | - | msh |
670 | + | if faws ~= 0 then |
671 | - | }) |
671 | + | BodyVel(torsy,faws) |
672 | - | end; |
672 | + | |
673 | - | }; |
673 | + | if trip == true then |
674 | torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0) | |
675 | torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
676 | - | Wave = { |
676 | + | |
677 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
677 | + | |
678 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
678 | + | |
679 | - | prt.Anchored = true |
679 | + | |
680 | - | prt.CFrame = cframe |
680 | + | |
681 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
681 | + | function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim) |
682 | - | game:GetService("Debris"):AddItem(prt, 10) |
682 | + | for _, c in pairs(workspace:GetDescendants()) do |
683 | - | table.insert(Effects, { |
683 | + | local hum = c:FindFirstChildOfClass("Humanoid") |
684 | - | prt, |
684 | + | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then |
685 | - | "Cylinder", |
685 | + | local head = GetDudesTorso(c) |
686 | - | delay, |
686 | + | if head ~= nil then |
687 | - | x3, |
687 | + | local targ = head.Position - par.Position |
688 | - | y3, |
688 | + | local mag = targ.magnitude |
689 | - | z3, |
689 | + | if magni >= mag and c ~= chara then |
690 | - | msh |
690 | + | Dmg(c,dmg,env,faws,trip,efftyp,toim) |
691 | - | }) |
691 | + | |
692 | - | end; |
692 | + | |
693 | - | }; |
693 | + | |
694 | end | |
695 | - | Break = { |
695 | + | |
696 | - | Create = function(brickcolor, cframe, x1, y1, z1) |
696 | + | |
697 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) |
697 | + | function CamShake(par,magni,env,dur) |
698 | - | prt.Anchored = true |
698 | + | |
699 | - | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) |
699 | + | for i=0,dur*60 do |
700 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
700 | + | |
701 | - | local num = math.random(10, 50) / 1000 |
701 | + | Humanoid.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,3+math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10) |
702 | - | game:GetService("Debris"):AddItem(prt, 10) |
702 | + | |
703 | - | table.insert(Effects, { |
703 | + | Humanoid.CameraOffset = Vector3.new(0,3,0) |
704 | - | prt, |
704 | + | |
705 | - | "Shatter", |
705 | + | |
706 | - | num, |
706 | + | |
707 | - | prt.CFrame, |
707 | + | function puncheff(par) |
708 | - | math.random() - math.random(), |
708 | + | if par.Parent:FindFirstChild("DebounceHit")==nil then |
709 | - | 0, |
709 | + | so(386946017,par,math.random(6,8)/10,1) |
710 | - | math.random(50, 100) / 100 |
710 | + | local bla = Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(1,1,1),"Neon","White",false,.1) |
711 | - | }) |
711 | + | CamShake(bla,10,.5,.5) |
712 | - | end; |
712 | + | |
713 | - | }; |
713 | + | |
714 | - | |
714 | + | |
715 | - | Fire = { |
715 | + | function slasheff(par) |
716 | - | Create = function(brickcolor, cframe, x1, y1, z1, delay) |
716 | + | if par.Parent:FindFirstChild("DebounceHit")==nil then |
717 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
717 | + | local cho = math.random(1,3) |
718 | - | prt.Anchored = true |
718 | + | if cho == 1 then |
719 | - | prt.CFrame = cframe |
719 | + | so(444667824,par,1,1) |
720 | - | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
720 | + | elseif cho == 2 then |
721 | - | game:GetService("Debris"):AddItem(prt, 10) |
721 | + | so(444667844,par,1,1) |
722 | - | table.insert(Effects, { |
722 | + | elseif cho == 3 then |
723 | - | prt, |
723 | + | so(444667859,par,1,1) |
724 | - | "Fire", |
724 | + | |
725 | - | delay, |
725 | + | --function(cf,partsize,meshstart,meshadd,matr,colour,factor) |
726 | - | 1, |
726 | + | Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(0,5,0),"Neon","Really red",false,.1) |
727 | - | 1, |
727 | + | |
728 | - | 1, |
728 | + | |
729 | - | msh |
729 | + | |
730 | - | }) |
730 | + | local mus = Instance.new("Sound",chara) |
731 | - | end; |
731 | + | |
732 | - | }; |
732 | + | mus.SoundId = "rbxassetid://142653441"--"rbxassetid://335204822" |
733 | - | |
733 | + | |
734 | - | FireWave = { |
734 | + | mus.Volume = .3 |
735 | - | Create = function(brickcolor, cframe, x1, y1, z1) |
735 | + | |
736 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) |
736 | + | |
737 | - | prt.Anchored = true |
737 | + | Humanoid.MaxHealth = 1000 |
738 | - | prt.CFrame = cframe |
738 | + | Humanoid.Health = 1000 |
739 | - | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
739 | + | |
740 | - | local d = Create("Decal"){ |
740 | + | ------------------Intro----------------------- |
741 | - | Parent = prt, |
741 | + | intro = true |
742 | - | Texture = "rbxassetid://26356434", |
742 | + | if intro == true then |
743 | - | Face = "Top", |
743 | + | |
744 | - | } |
744 | + | |
745 | - | local d = Create("Decal"){ |
745 | + | |
746 | - | Parent = prt, |
746 | + | Humanoid.JumpPower = 0 |
747 | - | Texture = "rbxassetid://26356434", |
747 | + | |
748 | - | Face = "Bottom", |
748 | + | CFrame.new(0, 233.999924, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1), |
749 | - | } |
749 | + | CFrame.new(0, 3.6000421, 1.07246542, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414), |
750 | - | game:GetService("Debris"):AddItem(prt, 10) |
750 | + | CFrame.new(3.6967864, -0.452571809, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), |
751 | - | table.insert(Effects, { |
751 | + | CFrame.new(-3.60279894, -0.418379426, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1), |
752 | - | prt, |
752 | + | CFrame.new(1.50001526, -4, -1.3000021, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
753 | - | "FireWave", |
753 | + | CFrame.new(-1.50001526, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
754 | - | 1, |
754 | + | }, 1, false) |
755 | - | 30, |
755 | + | |
756 | - | math.random(400, 600) / 100, |
756 | + | |
757 | - | msh |
757 | + | |
758 | - | }) |
758 | + | |
759 | - | end; |
759 | + | CFrame.new(0, -1.00005245, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1), |
760 | - | }; |
760 | + | CFrame.new(0, 3.60004878, 1.07246184, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414), |
761 | - | |
761 | + | CFrame.new(3.69677114, -0.452568352, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), |
762 | - | Lightning = { |
762 | + | CFrame.new(-3.60280585, -0.418371797, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1), |
763 | - | Create = function(p0, p1, tym, ofs, col, th, tra, last) |
763 | + | CFrame.new(1.50001526, -3.99999714, -1.3000021, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
764 | - | local magz = (p0 - p1).magnitude |
764 | + | CFrame.new(-1.50001526, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
765 | - | local curpos = p0 |
765 | + | }, .4, false) |
766 | - | local trz = { |
766 | + | |
767 | - | -ofs, |
767 | + | so(133680244,Torso,1,3) |
768 | - | ofs |
768 | + | CamShake(Torso,20,.8,.6) |
769 | - | } |
769 | + | MagnitudeDmg(Torso,15,30,3,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*60,true,"Blunt",.5) |
770 | - | for i = 1, tym do |
770 | + | Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,0),Vector3.new(),Vector3.new(2,1,2),"",10,false,.02) |
771 | - | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) |
771 | + | Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,0),Vector3.new(),Vector3.new(1.5,2.5,1.5),"",-10,false,.02) |
772 | - | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) |
772 | + | local hit,hitpos = rayCast(RootPart.Position,Vector3.new(0,-1,0),15,chara) |
773 | - | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz |
773 | + | for i = 1,12 do |
774 | - | li.Material = "Neon" |
774 | + | local size = math.random(7,10) |
775 | - | if tym == i then |
775 | + | local p = Instance.new("Part",EffectModel) |
776 | - | local magz2 = (curpos - p1).magnitude |
776 | + | p.BrickColor = hit.BrickColor |
777 | - | li.Size = Vector3.new(th, th, magz2) |
777 | + | p.Material = hit.Material |
778 | - | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) |
778 | + | p.Size = Vector3.new(size,size,size) |
779 | - | table.insert(Effects, { |
779 | + | p.CFrame = CFrame.new(hitpos) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) |
780 | - | li, |
780 | + | p.CanCollide = false |
781 | - | "Disappear", |
781 | + | p.Velocity = Vector3.new(math.random(-70,70),170,math.random(-70,70)) |
782 | - | last |
782 | + | p.RotVelocity = Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60)) |
783 | - | }) |
783 | + | |
784 | - | else |
784 | + | swait(20) |
785 | - | do |
785 | + | p.CanCollide = true |
786 | - | do |
786 | + | |
787 | - | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) |
787 | + | for i=0,1,.05 do |
788 | - | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p |
788 | + | |
789 | - | game.Debris:AddItem(li, 10) |
789 | + | p.Transparency = i |
790 | - | table.insert(Effects, { |
790 | + | |
791 | - | li, |
791 | + | p:Destroy() |
792 | - | "Disappear", |
792 | + | |
793 | - | last |
793 | + | |
794 | - | }) |
794 | + | |
795 | - | end |
795 | + | |
796 | - | end |
796 | + | RootPart.Anchored = true |
797 | - | end |
797 | + | for i=0,6,.1 do |
798 | - | end |
798 | + | |
799 | - | end |
799 | + | |
800 | - | }; |
800 | + | CFrame.new(0, -2.53941131, -0.348767281, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414), |
801 | CFrame.new(0, 4.57664824, -0.666416466, 1, 0, 0, 0, 0.939692438, 0.34202075, 0, -0.34202075, 0.939692438), | |
802 | - | EffectTemplate = { |
802 | + | CFrame.new(4.5000205, 1.20001018, 2.22187964e-06, 0.866024792, -0.500001192, 8.88577006e-07, 0.500001252, 0.866024733, -1.28149986e-06, -1.49011612e-07, 1.54972076e-06, 1), |
803 | CFrame.new(-4.5000205, 1.20001018, 2.22187964e-06, 0.866024792, 0.500001192, -8.88577006e-07, -0.500001252, 0.866024733, -1.28149986e-06, 1.49011612e-07, 1.54972076e-06, 1), | |
804 | - | }; |
804 | + | CFrame.new(1.50001526, -3.52529287, -3.56594658, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414), |
805 | CFrame.new(-1.50001526, -5.99999619, 6.67572112e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
806 | }, .4, false) | |
807 | end | |
808 | RootPart.Anchored = false | |
809 | for i=0,2,.1 do | |
810 | - | bweld.Part0 = RightArm |
810 | + | |
811 | - | bweld.C0 = CFrame.new(-.2,-2,.4)*CFrame.Angles(math.rad(90),0,math.rad(180)) |
811 | + | |
812 | - | Humanoid.WalkSpeed = 40 |
812 | + | CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), |
813 | CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), | |
814 | CFrame.new(3.77304196, -0.53539288, 0.273614407, 0.939692736, 0.321393579, 0.116977744, -0.342019945, 0.883022368, 0.321393698, -8.56816769e-08, -0.342020065, 0.939692795), | |
815 | CFrame.new(-4.64490843, 0.330175281, -1.53582289e-06, 0.984807849, 0.173648134, -3.13053391e-07, -0.173648164, 0.984807909, 2.68220901e-07, 3.50177288e-07, -1.78813934e-07, 1.00000012), | |
816 | - | CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987), |
816 | + | CFrame.new(1.50001884, -5.99037027, -0.421832889, 0.984807849, 0, -0.173647985, -0.0301536229, 0.984807849, -0.171009898, 0.171009898, 0.173647985, 0.969846487), |
817 | - | CFrame.new(0, 1.49999714, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987), |
817 | + | CFrame.new(-1.50002635, -5.99037027, -0.421831638, 0.984807849, 0, 0.173647985, 0.0301536229, 0.984807849, -0.171009898, -0.171009898, 0.173647985, 0.969846487), |
818 | - | CFrame.new(1.6195364, 0.256343663, -3.60019794e-06, 0.939692736, -0.342020124, -8.94069672e-08, 0.342020154, 0.939692676, -4.35416268e-07, 2.08616257e-07, 3.87430191e-07, 1), |
818 | + | }, .15, false) |
819 | - | CFrame.new(-1.65980804, 0.323206544, 5.72385352e-06, 0.866025329, 0.500000238, -2.98023224e-07, -0.500000179, 0.866025388, -1.34623383e-06, -4.47034836e-07, 1.29640102e-06, 1.00000012), |
819 | + | |
820 | - | CFrame.new(0.500001073, -2.00000095, -1.57952309e-06, 0.939692616, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692616), |
820 | + | local FShedo = New("Part",chara,"FShedo",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(63.4999924, 14.1999693, -2.70000529, 1, 0, 0, 0, 1, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
821 | - | CFrame.new(-0.499998212, -2.00000095, 1.49011612e-06, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544), |
821 | + | local FMesh = New("SpecialMesh",FShedo,"Mesh",{Scale = Vector3.new(3, 3, 3),VertexColor = Vector3.new(1, 0, 0),MeshId = "http://www.roblox.com/asset/?id=18755442",TextureId = "http://www.roblox.com/asset/?id=65032890",MeshType = Enum.MeshType.FileMesh,}) |
822 | local FWeld = New("ManualWeld",FShedo,"FWeld",{Part0 = FShedo,Part1 = RightArm,C1 = CFrame.new(-1.46309662, -4.28805161, -0.213977814, 0.478137165, 0.217331067, -0.850971282, 0.74204433, -0.618283033, 0.259029716, -0.469845891, -0.755310178, -0.456893384),}) | |
823 | for i=0,4,.1 do | |
824 | swait() | |
825 | - | tr1.Enabled = true |
825 | + | |
826 | - | so(536642316,baton,1,1) |
826 | + | CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
827 | CFrame.new(0, 4.49995232, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
828 | CFrame.new(3.7809577, 2.70507407, -0.632092118, 0.478137165, 0.74204433, -0.469845891, 0.217331067, -0.618283033, -0.755310178, -0.850971282, 0.259029716, -0.456893384), | |
829 | CFrame.new(-4.89282131, 0.675060272, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
830 | - | CFrame.new(-0.0116844922, 0, -0.381816059, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992), |
830 | + | CFrame.new(1.50001168, -6, -1.01327896e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736), |
831 | - | CFrame.new(-0.0728889629, 1.49999714, 0.038963601, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992), |
831 | + | CFrame.new(-1.50001526, -6, 2.98023224e-07, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736), |
832 | - | CFrame.new(1.06065702, 1.09677029, -0.161810428, 0.400286436, 0.242276207, 0.88378346, 0.734158754, -0.661962748, -0.151050553, 0.548435688, 0.709300876, -0.442843854), |
832 | + | }, .15, false) |
833 | - | CFrame.new(-1.59605861, 0.10887894, 1.11486224e-06, 0.984807909, 0.173648059, -2.23517418e-06, -0.173648059, 0.984807849, 3.82394944e-07, 2.29477882e-06, 1.86264515e-08, 1), |
833 | + | |
834 | - | CFrame.new(0.685087919, -1.96527183, 0.0673596561, 0.92541647, -0.163175598, -0.342020869, 0.173647985, 0.984807849, 2.90093368e-07, 0.336824894, -0.0593915246, 0.939692438), |
834 | + | Fays.Texture = "rbxassetid://58425273" |
835 | - | CFrame.new(-0.499999702, -2.00000095, 8.68737698e-06, 0.766045451, 0, 0.642786503, 0, 1, 0, -0.642786503, 0, 0.766045511), |
835 | + | FShedo:Destroy() |
836 | Shedo.Transparency = 0 | |
837 | - | mdmg(baton,3,"Blunt") |
837 | + | Humanoid.WalkSpeed = 8 |
838 | Humanoid.JumpPower = 70 | |
839 | - | swait(5) |
839 | + | |
840 | - | bweld.Part0 = Torso |
840 | + | |
841 | - | bweld.C0 = bdefc0 |
841 | + | |
842 | - | Humanoid.WalkSpeed = 16 |
842 | + | -------------------------------------------------- |
843 | - | tr1.Enabled = false |
843 | + | |
844 | function smek() | |
845 | attack = true | |
846 | Humanoid.WalkSpeed = 2 | |
847 | - | function asmek() |
847 | + | Humanoid.JumpPower = 0 |
848 | for i=0,1,.1 do | |
849 | - | --local par |
849 | + | |
850 | - | --coroutine.wrap(function() |
850 | + | |
851 | - | --repeat swait() par = rayCast(RootPart.Position,Vector3.new(0,-1,0),3,chara) until par~=nil or Torso.Velocity.Y == 0 |
851 | + | CFrame.new(0, -1.73551273, -0.521830797, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
852 | - | --tr2.Enabled = false |
852 | + | CFrame.new(0, 4.41427088, -0.820159078, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438), |
853 | - | --attack = false |
853 | + | CFrame.new(4.73044586, 0.828796685, -7.02275031e-07, 0.939692616, -0.342020273, 4.69496833e-08, 0.342020273, 0.939692736, 5.36441803e-07, -2.38418579e-07, -5.06639481e-07, 1), |
854 | - | --end)() |
854 | + | CFrame.new(-4.85861921, 0.769028664, -6.75452611e-07, 0.939692616, 0.342020273, -4.69496833e-08, -0.342020273, 0.939692736, 5.36441803e-07, 2.38418579e-07, -5.06639481e-07, 1), |
855 | - | --for i=0,1,.2 do |
855 | + | CFrame.new(1.50001335, -5.50980282, 1.44903219, 1, 0, 0, 0, 0.866024911, 0.500000954, 0, -0.500000954, 0.866024852), |
856 | - | --swait() |
856 | + | CFrame.new(-1.50001526, -6.18578386, -0.968178153, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
857 | - | --PlayAnimationFromTable({ |
857 | + | }, .2, false) |
858 | - | --CFrame.new(0, -0.0460019112, -0.0689063296, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), |
858 | + | |
859 | - | --CFrame.new(0, 1.52556431, -0.222140759, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), |
859 | + | so(536642316,RightLeg,.7,3) |
860 | - | --CFrame.new(1.59158015, 0.575856388, 6.13234874e-07, 0.642787039, -0.766044974, -4.38231467e-07, 0.766045034, 0.642787039, 1.78813934e-07, 1.63912773e-07, -4.39584255e-07, 1.00000012), |
860 | + | |
861 | - | --CFrame.new(-1.59158027, 0.575856209, 6.13234988e-07, 0.642787039, 0.766044974, 4.38231467e-07, -0.766045034, 0.642787039, 1.78813934e-07, -1.63912773e-07, -4.39584255e-07, 1.00000012), |
861 | + | |
862 | - | --CFrame.new(0.499998927, -1.99999928, 3.81469772e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), |
862 | + | |
863 | - | --CFrame.new(-0.5, -1.41182017, 0.232474089, 1, 0, 0, 0, 0.642786622, 0.766045392, 0, -0.766045392, 0.642786622), |
863 | + | CFrame.new(3.32593254e-06, -2.006042, 0.596467078, 1.0000006, -1.04904484e-06, 1.25335964e-06, -1.25487554e-06, 0.939695835, -0.342022181, 7.73278657e-07, 0.342019588, 0.939695656), |
864 | - | --}, .3, false) |
864 | + | CFrame.new(-7.62939453e-06, 4.41428709, -0.820158899, 1, 0, 0, 0, 0.939692736, 0.342019916, 0, -0.342019886, 0.939692736), |
865 | CFrame.new(4.73044682, 0.788231254, 0.4500646, 0.939692736, -0.342019916, -1.53461215e-07, 0.29619807, 0.813797891, 0.499999791, -0.171009749, -0.469846129, 0.866025567), | |
866 | - | tr2.Enabled = true |
866 | + | CFrame.new(-4.82442522, 0.817862749, 0.432947218, 0.939691901, 0.342022151, -3.89083397e-07, -0.296199679, 0.813797176, 0.500000119, 0.171011403, -0.469845951, 0.866025388), |
867 | - | so(536642316,RightLeg,1,1) |
867 | + | CFrame.new(1.50002289, -5.89457655, -2.13732576, 1, 0, 0, 0, 0.766043544, -0.642788708, 0, 0.642788708, 0.766043544), |
868 | CFrame.new(-1.49999833, -5.95715237, 0.805552125, 1.0000006, -1.25487554e-06, 7.73278657e-07, -1.04904484e-06, 0.939695835, 0.342019588, 1.25335964e-06, -0.342022181, 0.939695656), | |
869 | }, .4, false) | |
870 | MagnitudeDmg(RightLeg,4,60,3,RootPart.CFrame.lookVector*50,true,"Blunt",.5) | |
871 | - | CFrame.new(0, -0.11843279, 0.00109164417, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414)*CFrame.Angles(math.rad(-360*i),0,0), |
871 | + | |
872 | - | CFrame.new(0, 1.36002374, -0.491580963, 1, 0, 0, 0, 0.642787457, 0.766044736, 0, -0.766044736, 0.642787457), |
872 | + | swait(20) |
873 | - | CFrame.new(1.59157825, 0.575854659, 4.30346518e-06, 0.64278698, -0.766045034, -1.0103544e-07, 0.766045094, 0.64278698, -5.36441803e-07, 5.06639481e-07, 2.98023224e-07, 1.00000012), |
873 | + | Humanoid.WalkSpeed = 8 |
874 | - | CFrame.new(-1.59158015, 0.575855613, 2.39611677e-06, 0.64278698, 0.766045034, 1.0103544e-07, -0.766045094, 0.64278698, -5.36441803e-07, -5.06639481e-07, 2.98023224e-07, 1.00000012), |
874 | + | Humanoid.JumpPower = 70 |
875 | - | CFrame.new(0.399999022, -1.92074621, -0.716740668, 1, 0, 0, 0, 0.766044736, -0.642787457, 0, 0.642787457, 0.766044736), |
875 | + | |
876 | - | CFrame.new(-0.5, -1.41181993, 0.232477784, 1, 0, 0, 0, 0.642787457, 0.766044736, 0, -0.766044736, 0.642787457), |
876 | + | |
877 | ||
878 | - | if i >= .4 then |
878 | + | xhold = false |
879 | - | mdmg(RightLeg,3.5,"Blunt") |
879 | + | function thesurou() |
880 | attack = true | |
881 | Humanoid.WalkSpeed = 2 | |
882 | - | tr2.Enabled = false |
882 | + | local grab = nil |
883 | local torsy = nil | |
884 | local hum = nil | |
885 | for i, v in pairs(FindNearestTorso((RootPart.Position-Vector3.new(0,5,0)), 6)) do | |
886 | - | local shots = 7 |
886 | + | if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then |
887 | - | zhold = true |
887 | + | hum = v:FindFirstChildOfClass("Humanoid") |
888 | - | function shoot() |
888 | + | torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso") |
889 | grab = v | |
890 | - | so(169799883,gun,1,1) |
890 | + | |
891 | end | |
892 | if grab ~= nil and torsy ~= nil then | |
893 | so(200632136,RootPart,.8,1) | |
894 | - | CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698), |
894 | + | for i = 0,1.5,.1 do |
895 | - | CFrame.new(-0.0421711877, 1.49999738, -0.0331315249, 0.852868021, -0.0612752885, -0.518518507, 0.17364794, 0.969846606, 0.171008661, 0.492404759, -0.235887513, 0.837791562), |
895 | + | |
896 | - | CFrame.new(0.611007333, -0.00932076573, -0.639356554, 0.653100669, 0.696805716, -0.296515375, -0.748181939, 0.533255994, -0.394793421, -0.116975725, 0.479687244, 0.869607329), |
896 | + | PlayAnimationFromTable({ |
897 | - | CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736), |
897 | + | CFrame.new(0, -3.15879345, -2.53031492, 1, 0, 0, 0, 0.500002086, 0.866031468, 0, -0.866031468, 0.500002086), |
898 | - | CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), |
898 | + | CFrame.new(0, 4.57667542, -0.666417062, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), |
899 | - | CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767), |
899 | + | CFrame.new(2.90267015, 1.56676149, -2.30737209, 0.793417096, 0.357805073, 0.492407322, 0.357833058, 0.380227387, -0.852867484, -0.492387056, 0.852879107, 0.173644423), |
900 | CFrame.new(-4.50001335, 1.20001578, 1.39186909e-07, 0.866023839, 0.500002861, -8.08226048e-07, -0.500002921, 0.866023898, -2.38418579e-06, -4.76837158e-07, 2.44379044e-06, 1.00000012), | |
901 | CFrame.new(1.50001526, -3.79331636, -2.24549532, 1, 0, 0, 0, 0.500002086, -0.866031468, 0, 0.866031468, 0.500002086), | |
902 | CFrame.new(-1.50001526, -6.19285679, -1.2660259, 1, 0, 0, 0, 0.866025031, -0.500000834, 0, 0.500000834, 0.866025031), | |
903 | - | local ref = Instance.new("Part",chara) |
903 | + | |
904 | end | |
905 | so(240429615,torsy,1,1) | |
906 | local ref = Instance.new("Part",Camera) | |
907 | ref.Size = Vector3.new(0,0,0) | |
908 | - | gweld.Part0 = RightArm |
908 | + | |
909 | - | gweld.C0 = CFrame.new(.1,-1.5,-.2)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-40)) |
909 | + | |
910 | ref.Transparency = .5 | |
911 | ref.BrickColor = BrickColor.Red() | |
912 | ref.Material = "Neon" | |
913 | - | CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
913 | + | local refm = Instance.new("SpecialMesh",ref) |
914 | - | CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), |
914 | + | refm.MeshType = "Sphere" |
915 | - | CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886), |
915 | + | refm.Scale = Vector3.new(20,20,20) |
916 | - | CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414), |
916 | + | |
917 | - | CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
917 | + | |
918 | - | CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), |
918 | + | |
919 | PlayAnimationFromTable({ | |
920 | CFrame.new(0, -2, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), | |
921 | - | swait(5) |
921 | + | CFrame.new(-0.150877535, 4.46522665, -0.12660107, 0.64278698, -0.133022159, 0.754407108, 0, 0.984807849, 0.173647985, -0.766044974, -0.11161866, 0.633021653), |
922 | CFrame.new(4.82286024, 2.39900613, 0.0232518315, 0.939692676, -0.296197921, 0.171010524, -0.171010047, -0.839912355, -0.515075624, 0.296198219, 0.4547683, -0.839912176), | |
923 | - | so(470245800,gun,1,1) |
923 | + | CFrame.new(-5.15264273, 1.06961691, 7.03156638e-06, 0.866025448, 0.500000119, -3.87430191e-07, -0.500000119, 0.866025388, -1.43057798e-06, -3.57627869e-07, 1.44541264e-06, 1), |
924 | CFrame.new(1.50001907, -6.00000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
925 | - | mdmg(ref,3,"Shot") |
925 | + | CFrame.new(-1.50001311, -6.00000048, 4.58955765e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698), |
926 | }, .3, false) | |
927 | - | hitpt.Size = Vector3.new(0,0,.3) |
927 | + | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0) |
928 | - | local bf = Instance.new("BodyVelocity",hitpt) |
928 | + | hum.PlatformStand = true |
929 | - | bf.P = 10000 |
929 | + | torsy.Velocity = Vector3.new() |
930 | - | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) |
930 | + | |
931 | - | game:service'Debris':AddItem(bf,.1) |
931 | + | until xhold == false |
932 | - | hitpt.CFrame = gun.CFrame * CFrame.new(0,-.5,.5) * CFrame.Angles(math.rad(90),0,0) |
932 | + | |
933 | - | bf.Velocity = Vector3.new(0,5,0) + RootPart.CFrame.rightVector*10 |
933 | + | so(200632136,RootPart,.9,1) |
934 | local pato = Instance.new("Part",torsy) | |
935 | - | hitm.MeshId = "http://www.roblox.com/asset/?id=94295100" |
935 | + | pato.CFrame = torsy.CFrame |
936 | - | hitm.TextureId = "http://www.roblox.com/asset/?id=94287792" |
936 | + | pato.Size = Vector3.new(4.1,6.1,1.1) |
937 | - | hitm.Scale = Vector3.new(3,3,3.5) |
937 | + | pato.Transparency = 1 |
938 | pato.CanCollide = false | |
939 | pato.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
940 | - | for i = 0,1.1 do |
940 | + | local werudo = Instance.new("Weld",pato) |
941 | werudo.Part0 = pato | |
942 | werudo.Part1 = torsy | |
943 | torsy.Velocity = (ref.Position-torsy.Position).unit*200+Vector3.new(0,30,0) | |
944 | torsy.RotVelocity = Vector3.new(10,10,10) | |
945 | coroutine.wrap(function() | |
946 | - | Effects.Block.Create(BrickColor.new("Bright yellow"), gun.CFrame*CFrame.new(0,.6,.3), 0,0,0,1,1,1, 0.05) |
946 | + | |
947 | - | shots = shots - 1 |
947 | + | |
948 | hum.PlatformStand = true | |
949 | end | |
950 | end) | |
951 | - | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
951 | + | pato.Touched:connect(function(hit) |
952 | - | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), |
952 | + | if hit:IsDescendantOf(chara)==false then |
953 | - | CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698), |
953 | + | pato:Destroy() |
954 | - | CFrame.new(-0.516991675, 0.65931946, -0.711421967, 0, -0.499999166, 0.866025925, 0.766044796, -0.556670487, -0.321393073, 0.642787218, 0.663414717, 0.383021772), |
954 | + | Dmg(grab,150,0,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*50,true,"Blunt",.3) |
955 | - | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
955 | + | so(260430079,torsy,1,5) |
956 | - | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), |
956 | + | MagnitudeDmg(torsy,6,50,3,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2) |
957 | end | |
958 | end) | |
959 | for i = 0,1,.1 do | |
960 | swait() | |
961 | PlayAnimationFromTable({ | |
962 | - | CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
962 | + | CFrame.new(0, -2, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987), |
963 | - | CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), |
963 | + | CFrame.new(0.142921209, 4.43258858, -0.122617245, 0.906121016, 0.296197981, -0.302012295, -0.219846055, 0.939692795, 0.262002379, 0.361403257, -0.17100969, 0.916593432), |
964 | - | CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886), |
964 | + | CFrame.new(2.78872228, 0.109098256, -2.12347674, 0.642787337, 0.719846368, 0.262003452, -0.262002051, 0.527982056, -0.807830453, -0.719846845, 0.450617731, 0.5279814), |
965 | - | CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414), |
965 | + | CFrame.new(-4.79283857, 1.09281766, -1.4803014e-05, 0.866025329, 0.500000238, -1.49011612e-07, -0.500000179, 0.866025388, 6.10661004e-07, 4.47034836e-07, -4.47034836e-07, 1), |
966 | - | CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
966 | + | CFrame.new(1.50002027, -6, -1.07288361e-06, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987), |
967 | - | CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), |
967 | + | CFrame.new(-1.50001907, -6, -3.81469727e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
968 | }, .3, false) | |
969 | end | |
970 | - | if shots == 0 then |
970 | + | |
971 | - | so(147323220,gun,1,1) |
971 | + | |
972 | - | for i=0,1.3,.1 do |
972 | + | Humanoid.WalkSpeed = 8 |
973 | end | |
974 | ||
975 | - | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
975 | + | function slam() |
976 | - | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), |
976 | + | |
977 | - | CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698), |
977 | + | |
978 | - | CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736), |
978 | + | Humanoid.JumpPower = 0 |
979 | - | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
979 | + | for i=0,2,.1 do |
980 | - | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), |
980 | + | |
981 | PlayAnimationFromTable({ | |
982 | CFrame.new(0, -1.93353117, 0.461958885, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736), | |
983 | - | local MagPartt = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000033, 0.399999976, 1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
983 | + | CFrame.new(0, 4.36522532, -0.370157003, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686), |
984 | - | MagPartt.CFrame = gun.CFrame * CFrame.new(0,-.5,-.5) * CFrame.Angles(0,0,0) |
984 | + | CFrame.new(2.71519423, 4.60478783, -1.48087042e-06, 0.766044319, 0.642787933, 2.9919768e-08, 0.642787993, -0.766044319, -3.87430191e-07, -1.93715096e-07, 2.83122063e-07, -1), |
985 | CFrame.new(-2.70285583, 4.46389866, 6.19620914e-06, 0.766044319, -0.642787933, -2.9919768e-08, -0.642787993, -0.766044319, -3.87430191e-07, 1.93715096e-07, 2.83122063e-07, -1), | |
986 | - | swait(5) |
986 | + | CFrame.new(1.50001526, -5.97923088, 0.956724763, 1, 0, 0, 0, 0.939692736, 0.342019916, 0, -0.342019886, 0.939692736), |
987 | - | MagPartt.CanCollide = true |
987 | + | CFrame.new(-1.50001526, -3.92088175, -1.2822783, 1, 0, 0, 0, 0.939692736, 0.342019916, 0, -0.342019886, 0.939692736), |
988 | }, .2, false) | |
989 | - | for i = 0,1.1 do |
989 | + | |
990 | so(536642316,RightLeg,.7,3) | |
991 | - | MagPartt.Transparency = i |
991 | + | |
992 | for i=0,1,.2 do | |
993 | - | MagPartt:Destroy() |
993 | + | |
994 | PlayAnimationFromTable({ | |
995 | CFrame.new(0, -5.00873852, -6.03775024, 1, 0, 0, 0, 0.342019022, 0.939693093, 0, -0.939693093, 0.342018992), | |
996 | - | local MagPart = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(.2,.4,1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
996 | + | CFrame.new(0, 4.36520767, -0.370157599, 1, 0, 0, 0, 0.866026223, 0.499998808, 0, -0.499998808, 0.866026223), |
997 | - | local Weld = New("ManualWeld",MagPart,"Weld",{Part0 = MagPart,Part1 = chara["Left Arm"],C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)*CFrame.Angles(math.rad(90),math.rad(90),math.rad(0)),C1 = CFrame.new(0.200001717, -1.20000005, -0.200000286, 1, 0, 0, 0, 0, 1, 0, -1, 0),}) |
997 | + | CFrame.new(2.71519065, 1.07650685, -2.54415894, 0.766043842, 0.642788351, 6.46188241e-08, -0.11161828, 0.133021355, -0.984808087, -0.633023024, 0.754406214, 0.173647106), |
998 | - | for i=0,1.4,.2 do |
998 | + | CFrame.new(-2.70285606, 1.10098004, -2.40540719, 0.766043842, -0.642788351, -6.46188241e-08, 0.11161828, 0.133021355, -0.984808087, 0.633023024, 0.754406214, 0.173647106), |
999 | CFrame.new(1.50001526, -5.95997667, -0.00628298474, 1, 0, 0, 0, 1.00000012, 2.98023224e-08, 0, 2.98023224e-08, 1.00000012), | |
1000 | CFrame.new(-1.50001621, -2.56001854, -1.60915279, 1, 0, 0, 0, 0.984807789, -0.173648238, 0, 0.173648268, 0.98480773), | |
1001 | - | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
1001 | + | }, .4, false) |
1002 | - | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), |
1002 | + | |
1003 | - | CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698), |
1003 | + | so(133680244,Torso,1,3) |
1004 | - | CFrame.new(-0.516991675, 0.65931946, -0.711421967, 0, -0.499999166, 0.866025925, 0.766044796, -0.556670487, -0.321393073, 0.642787218, 0.663414717, 0.383021772), |
1004 | + | CamShake(RightArm,10,.5,.5) |
1005 | - | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
1005 | + | MagnitudeDmg(RightArm,10,40,3,RootPart.CFrame.lookVector*30,true,"Blunt",.5) |
1006 | - | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), |
1006 | + | MagnitudeDmg(LeftArm,10,40,3,RootPart.CFrame.lookVector*30,true,"Blunt",.5) |
1007 | Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,-10),Vector3.new(),Vector3.new(1,1,1),"",10,false,.05) | |
1008 | Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,-10),Vector3.new(),Vector3.new(.5,2,.5),"",-10,false,.05) | |
1009 | - | MagPart:Destroy() |
1009 | + | |
1010 | - | swait(5) |
1010 | + | Humanoid.WalkSpeed = 8 |
1011 | Humanoid.JumpPower = 70 | |
1012 | attack = false | |
1013 | end | |
1014 | - | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
1014 | + | |
1015 | - | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), |
1015 | + | chold = false |
1016 | - | CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362), |
1016 | + | function headrip() |
1017 | - | CFrame.new(-0.629211903, 0.930547178, -0.87133497, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948), |
1017 | + | |
1018 | - | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
1018 | + | |
1019 | - | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), |
1019 | + | local grab = nil |
1020 | local torsy = nil | |
1021 | local hum = nil | |
1022 | - | so(506273075,gun,1,1) |
1022 | + | for i, v in pairs(FindNearestTorso((RootPart.Position-Vector3.new(0,5,0)), 6)) do |
1023 | if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then | |
1024 | hum = v:FindFirstChildOfClass("Humanoid") | |
1025 | torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso") | |
1026 | - | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
1026 | + | grab = v |
1027 | - | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), |
1027 | + | |
1028 | - | CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362), |
1028 | + | |
1029 | - | CFrame.new(-0.629361629, 0.793605626, -0.495871037, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948), |
1029 | + | if grab ~= nil and torsy ~= nil then |
1030 | - | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
1030 | + | so(200632136,RootPart,.8,1) |
1031 | - | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), |
1031 | + | for i = 0,1.5,.1 do |
1032 | swait() | |
1033 | PlayAnimationFromTable({ | |
1034 | CFrame.new(0, -3.15884066, -2.53038549, 1, 0, 0, 0, 0.500003159, 0.866033316, 0, -0.866033316, 0.500003159), | |
1035 | CFrame.new(0, 4.57682848, -0.666438639, 1, 0, 0, 0, 0.939708173, 0.342026293, 0, -0.342026293, 0.939708173), | |
1036 | CFrame.new(4.681849, 1.59641457, -0.711094618, 0.624222994, -0.751194239, 0.214599475, 0.684884727, 0.658341169, 0.31230849, -0.375883996, -0.0479742885, 0.925433218), | |
1037 | - | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
1037 | + | CFrame.new(-2.69011021, 1.89638007, -2.91367531, 0.754421711, -0.633005977, -0.173641309, -0.133027852, 0.111603782, -0.984817266, 0.642774224, 0.76606667, -1.10864639e-05), |
1038 | - | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), |
1038 | + | CFrame.new(1.50001526, -3.79332972, -2.24550533, 1, 0, 0, 0, 0.500003159, -0.866033316, 0, 0.866033316, 0.500003159), |
1039 | - | CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362), |
1039 | + | CFrame.new(-1.50001526, -6.19305992, -1.26607037, 1, 0, 0, 0, 0.866039395, -0.500009179, 0, 0.500009179, 0.866039395), |
1040 | - | CFrame.new(-0.629211903, 0.930547178, -0.87133497, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948), |
1040 | + | |
1041 | - | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
1041 | + | |
1042 | - | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), |
1042 | + | so(240429615,torsy,1,1) |
1043 | for i = 0,1.5,.1 do | |
1044 | swait() | |
1045 | - | shots = 7 |
1045 | + | PlayAnimationFromTable({ |
1046 | CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1047 | CFrame.new(0, 4.48268127, -0.632217944, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
1048 | CFrame.new(3.1680572, 1.46073127, -2.0815649, 0.866025388, 0.500000119, 5.45067223e-07, -0.0868230462, 0.150382936, -0.984807968, -0.492404222, 0.852868676, 0.173646957), | |
1049 | CFrame.new(-2.51076937, 2.25588131, -2.26415157, 0.103214003, -0.44736287, -0.888376772, -0.960965991, 0.185646102, -0.205133989, 0.256693006, 0.874872625, -0.410739183), | |
1050 | - | CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
1050 | + | CFrame.new(1.50001526, -6, 2.98023224e-07, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736), |
1051 | - | CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), |
1051 | + | CFrame.new(-1.50001431, -6, 3.12924385e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), |
1052 | - | CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886), |
1052 | + | |
1053 | - | CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414), |
1053 | + | torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0) |
1054 | - | CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
1054 | + | hum.PlatformStand = true |
1055 | - | CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), |
1055 | + | torsy.Velocity = Vector3.new() |
1056 | end | |
1057 | local armmod = Instance.new("Model",chara) | |
1058 | armmod.Name = grab.Name | |
1059 | - | until zhold == false |
1059 | + | Instance.new("Humanoid",armmod).Health = 0 |
1060 | - | swait(5) |
1060 | + | for i, v in pairs(grab:GetChildren()) do |
1061 | if v:IsA("Accoutrement") then | |
1062 | - | so(211134014,gun,1,1) |
1062 | + | v.Parent = armmod |
1063 | if v:FindFirstChild("Handle"):FindFirstChild("AccessoryWeld") then | |
1064 | v.Handle.AccessoryWeld.Part1 = nil | |
1065 | end | |
1066 | - | CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698), |
1066 | + | |
1067 | - | CFrame.new(-0.0421711877, 1.49999738, -0.0331315249, 0.852868021, -0.0612752885, -0.518518507, 0.17364794, 0.969846606, 0.171008661, 0.492404759, -0.235887513, 0.837791562), |
1067 | + | |
1068 | - | CFrame.new(0.611007333, -0.00932076573, -0.639356554, 0.653100669, 0.696805716, -0.296515375, -0.748181939, 0.533255994, -0.394793421, -0.116975725, 0.479687244, 0.869607329), |
1068 | + | local armp = grab:FindFirstChild("Head") |
1069 | - | CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736), |
1069 | + | Instance.new("BoolValue",grab).Name = "DEATHED" |
1070 | - | CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), |
1070 | + | grab:BreakJoints() |
1071 | - | CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767), |
1071 | + | armp.Parent = armmod |
1072 | for i, v in pairs(armmod:GetChildren()) do | |
1073 | if v:IsA("Accoutrement") then | |
1074 | - | gweld.Part0 = Torso |
1074 | + | if v:FindFirstChild("Handle"):FindFirstChild("AccessoryWeld") then |
1075 | - | gweld.C0 = gdefc0 |
1075 | + | v.Handle.AccessoryWeld.Part1 = armp |
1076 | - | Humanoid.WalkSpeed = 16 |
1076 | + | v.Parent = armmod |
1077 | end | |
1078 | end | |
1079 | end | |
1080 | - | local Jails = Instance.new("Model",chara) |
1080 | + | so(206082327,armp,1,5) |
1081 | - | Jails.Name = "Jails" |
1081 | + | local bledp = Instance.new("Part",grab) |
1082 | - | function arrest() |
1082 | + | bledp.Size = Vector3.new(0,0,0) |
1083 | bledp.Transparency = 1 | |
1084 | - | if Mouse.Target~= nil then |
1084 | + | bledp.CanCollide = false |
1085 | - | local dude = Mouse.Target.Parent |
1085 | + | local blpemit = Instance.new("ParticleEmitter") |
1086 | - | local ply = game:service'Players':GetPlayerFromCharacter(dude) |
1086 | + | blpemit.Color = ColorSequence.new(Color3.new(.5,0,0)) |
1087 | - | if dude:FindFirstChildOfClass("Humanoid") then |
1087 | + | blpemit.Texture = "rbxassetid://233069772" |
1088 | blpemit.Transparency = NumberSequence.new(0,1) | |
1089 | - | for i,v in pairs(dude:children()) do |
1089 | + | blpemit.Lifetime = NumberRange.new(1,3) |
1090 | - | if v:IsA("LocalScript") or v:IsA("Tool") then |
1090 | + | blpemit.Acceleration = Vector3.new(0,-10,0) |
1091 | blpemit.Enabled = true | |
1092 | blpemit.EmissionDirection = "Front" | |
1093 | blpemit.Speed = NumberRange.new(1,3) | |
1094 | - | local haed = dude:FindFirstChild("Head") |
1094 | + | blpemit.Size = NumberSequence.new(.5) |
1095 | - | local JailCell = New("Model",Jails,"JailCell",{}) |
1095 | + | blpemit.Rate = 1000 |
1096 | - | local SpawnPart = New("Part",JailCell,"SpawnPart",{Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(-76.1000137, 3.00000596, -1.99999905, 1, 0, 0, 0, 0, 1, 0, -1, 0),Anchored = true,CanCollide = false,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1096 | + | blpemit.RotSpeed = NumberRange.new(50) |
1097 | - | local removescriptspart = New("Part",JailCell,"removescriptspart",{Transparency = 1,Transparency = 1,Size = Vector3.new(16, 9, 13),CFrame = CFrame.new(-69.5999985, 5.5000062, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,CanCollide = false,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1097 | + | blpemit.Rotation = NumberRange.new(0,360) |
1098 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(6, 9, 1),CFrame = CFrame.new(-75.0999985, 5.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1098 | + | local blpe = blpemit:Clone() |
1099 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(19, 1, 16),CFrame = CFrame.new(-69.5999985, 0.50000602, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1099 | + | blpe.Parent = bledp |
1100 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-68.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1100 | + | blpe.EmissionDirection = "Top" |
1101 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1101 | + | blpe.VelocitySpread = 20 |
1102 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 9, 16),CFrame = CFrame.new(-78.5999985, 5.5000062, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1102 | + | local wel = Instance.new("Weld",armp) |
1103 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-77.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1103 | + | wel.Part0 = RightArm |
1104 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1104 | + | wel.Part1 = armp |
1105 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-69.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1105 | + | wel.C0 = CFrame.new(0,-3.5,0) * CFrame.Angles(math.rad(-90),0,0) |
1106 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1106 | + | local blape = bledp:Clone() |
1107 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-62.3000031, 2.70000601, 0.600000381, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1107 | + | blape.Parent = armmod |
1108 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.400000006, 0.200000003, 0.800000012),CFrame = CFrame.new(-61.5, 3.10000563, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,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),}) |
1108 | + | blape.ParticleEmitter.EmissionDirection = "Bottom" |
1109 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(35, 1, 6),CFrame = CFrame.new(-69.5999985, 0.50000602, 12, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1109 | + | local bledw = Instance.new("Weld",bledp) |
1110 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 2.50000572, 4.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1110 | + | bledw.Part0 = torsy |
1111 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.400000006, 0.400000006, 0.400000036),CFrame = CFrame.new(-61.2999992, 3.40000558, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,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),}) |
1111 | + | bledw.Part1 = bledp |
1112 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 5.5000062, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1112 | + | bledw.C0 = CFrame.new(0,1,0) |
1113 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 16),CFrame = CFrame.new(-85.0999985, 0.50000602, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1113 | + | local bledw2 = Instance.new("Weld",blape) |
1114 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-65.8999939, 2.10000563, -4.79999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1114 | + | bledw2.Part0 = armp |
1115 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 0.200000003, 2.00000024),CFrame = CFrame.new(-62.1000023, 2.30000591, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1115 | + | bledw2.Part1 = blape |
1116 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.19999993, 0.600000024, 0.400000036),CFrame = CFrame.new(-65.1000061, 2.10000563, -4.19999886, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1116 | + | bledw2.C0 = CFrame.new(0,-.5,0) |
1117 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 0.600000143, 0.400000155),CFrame = CFrame.new(-61.3000031, 2.70000529, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1117 | + | for i = 0,2,.1 do |
1118 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-62.3000031, 2.70000505, 2.19999886, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1118 | + | |
1119 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.Granite,Size = Vector3.new(1.19999981, 0.400000036, 1.20000005),CFrame = CFrame.new(-62.1000023, 2.60000587, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,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.0509804, 0.411765, 0.67451),}) |
1119 | + | PlayAnimationFromTable({ |
1120 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.Glass,Reflectance = 1,Size = Vector3.new(2, 2.80000019, 0.200000003),CFrame = CFrame.new(-61.1999969, 5.20000648, 1.40000057, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,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),}) |
1120 | + | CFrame.new(3.48687149e-06, -2.00000668, 8.1956324e-07, 0.999997258, -1.74343575e-06, -2.29477928e-06, -1.74343575e-06, 1.00000334, -4.0978162e-07, -2.29477928e-06, -4.0978162e-07, 1.00000334), |
1121 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Metal,Size = Vector3.new(0.599999964, 0.200000033, 0.200000003),CFrame = CFrame.new(-64.5999985, 3.70000505, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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),}) |
1121 | + | CFrame.new(-1.77990187e-05, 4.48271227, -0.632223666, 0.999997258, -8.47689194e-07, -2.76961782e-06, -1.74343575e-06, 0.939696074, 0.34202069, -2.29477928e-06, -0.342021465, 0.939695656), |
1122 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.39999998, 1.20000005, 1.39999998),CFrame = CFrame.new(-61.8000031, 1.6000061, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1122 | + | CFrame.new(5.08315945, 1.73977804, -0.499025792, 0.766043842, -0.642786205, -9.90775334e-07, 0.111617334, 0.133024782, -0.984809279, 0.633021057, 0.754409432, 0.173649535), |
1123 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.19999993, 0.600000024, 0.400000036),CFrame = CFrame.new(-62.9000015, 2.70000601, 1.3999958, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1123 | + | CFrame.new(-3.94786024, 2.2021482, -1.88751972, 0.103215352, 0.54567498, -0.831614494, -0.960967898, 0.270473748, 0.0582071356, 0.256692559, 0.793146551, 0.552295864), |
1124 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-71.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1124 | + | CFrame.new(1.50003362, -6.00004482, -2.68220901e-07, 0.939689338, -1.74343575e-06, -0.342021078, -1.76123024e-06, 1.00000334, 2.14558611e-07, 0.342018902, -4.0978162e-07, 0.939696491), |
1125 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1125 | + | CFrame.new(-1.49998772, -6.00003576, 1.09374523e-05, 0.984805524, -1.74343575e-06, 0.173645243, -1.66984103e-06, 1.00000334, -7.16618331e-07, -0.173650891, -4.0978162e-07, 0.98481071), |
1126 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 0.200000003, 2.00000024),CFrame = CFrame.new(-65.0999985, 1.70000601, -5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1126 | + | |
1127 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.39999998, 0.600000024, 1.39999998),CFrame = CFrame.new(-65.0999985, 1.30000627, -5.29999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1127 | + | torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0) |
1128 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-67.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1128 | + | hum.PlatformStand = true |
1129 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1129 | + | torsy.Velocity = Vector3.new() |
1130 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-74.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1130 | + | |
1131 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1131 | + | local ref = Instance.new("Part",Camera) |
1132 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-71.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1132 | + | |
1133 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1133 | + | |
1134 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(19, 1, 16),CFrame = CFrame.new(-69.5999985, 10.5000114, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1134 | + | |
1135 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.Granite,Size = Vector3.new(1.19999981, 0.400000036, 1.20000005),CFrame = CFrame.new(-65.0999985, 2.00000572, -5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.0509804, 0.411765, 0.67451),}) |
1135 | + | ref.Transparency = .5 |
1136 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-72.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1136 | + | ref.BrickColor = BrickColor.Red() |
1137 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1137 | + | ref.Material = "Neon" |
1138 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-76.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1138 | + | local refm = Instance.new("SpecialMesh",ref) |
1139 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1139 | + | refm.MeshType = "Sphere" |
1140 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-75.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1140 | + | refm.Scale = Vector3.new(20,20,20) |
1141 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1141 | + | |
1142 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.99999976, 0.400000095, 6),CFrame = CFrame.new(-76.1000137, 2.6000061, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1142 | + | |
1143 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 2.40000033, 0.400000155),CFrame = CFrame.new(-65.0999985, 3.00000525, -5.79999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1143 | + | |
1144 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-64.3000031, 2.10000491, -4.79999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1144 | + | PlayAnimationFromTable({ |
1145 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-81.0999985, 0.50000602, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1145 | + | CFrame.new(0, -2, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), |
1146 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-70.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1146 | + | CFrame.new(-0.150877535, 4.46522665, -0.12660107, 0.64278698, -0.133022159, 0.754407108, 0, 0.984807849, 0.173647985, -0.766044974, -0.11161866, 0.633021653), |
1147 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1147 | + | CFrame.new(4.82286024, 2.39900613, 0.0232518315, 0.939692676, -0.296197921, 0.171010524, -0.171010047, -0.839912355, -0.515075624, 0.296198219, 0.4547683, -0.839912176), |
1148 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-73.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1148 | + | CFrame.new(-5.15264273, 1.06961691, 7.03156638e-06, 0.866025448, 0.500000119, -3.87430191e-07, -0.500000119, 0.866025388, -1.43057798e-06, -3.57627869e-07, 1.44541264e-06, 1), |
1149 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1149 | + | CFrame.new(1.50001907, -6.00000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
1150 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(3.99999976, 0.400000036, 8),CFrame = CFrame.new(-76.1000137, 2.20000601, -2, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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),}) |
1150 | + | CFrame.new(-1.50001311, -6.00000048, 4.58955765e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698), |
1151 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 9, 16),CFrame = CFrame.new(-60.5999985, 5.5000062, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1151 | + | |
1152 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-77.5999985, 1.50000584, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1152 | + | torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0) |
1153 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1153 | + | hum.PlatformStand = true |
1154 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-70.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1154 | + | torsy.Velocity = Vector3.new() |
1155 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1155 | + | |
1156 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.99999976, 0.400000095, 2),CFrame = CFrame.new(-76.1000137, 2.6000061, -5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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),}) |
1156 | + | until chold == false |
1157 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 4.50000572, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1157 | + | |
1158 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 3.50000572, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1158 | + | so(200632136,RootPart,.9,1) |
1159 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 1.50000584, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1159 | + | wel:Destroy() |
1160 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 7.5000062, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1160 | + | armp.Velocity = (ref.Position-armp.Position).unit*200+Vector3.new(0,30,0) |
1161 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 6.5000062, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1161 | + | armp.RotVelocity = Vector3.new(10,10,10) |
1162 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 9.50000572, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1162 | + | armp.Touched:connect(function(hit) |
1163 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 3, 1),CFrame = CFrame.new(-81.0999985, 2.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1163 | + | if hit:IsDescendantOf(chara)==false and hit.Parent:FindFirstChildOfClass("Humanoid") and armp:FindFirstChild("HITA")==nil then |
1164 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-81.0999985, 0.50000602, 7.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1164 | + | Instance.new("BoolValue",armp).Name = "HITA" |
1165 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 3, 21),CFrame = CFrame.new(-86.5999985, 2.50000596, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1165 | + | MagnitudeDmg(armp,6,120,0,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2) |
1166 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 8.50000572, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1166 | + | so(386946017,armp,.95,5) |
1167 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(6, 9, 1),CFrame = CFrame.new(-64.0999985, 5.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1167 | + | |
1168 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(5, 3, 1),CFrame = CFrame.new(-69.5999985, 2.50000572, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1168 | + | for i=0,1,.05 do |
1169 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(5, 2, 1),CFrame = CFrame.new(-69.5999985, 9.00000572, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1169 | + | armp.Transparency = i |
1170 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 10.5000114, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1170 | + | |
1171 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-62.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1171 | + | |
1172 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1172 | + | armp.Parent:Destroy() |
1173 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-74.5999985, 1.50000584, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1173 | + | end |
1174 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1174 | + | |
1175 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-74.5999985, 1.50000584, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1175 | + | for i = 0,1,.1 do |
1176 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1176 | + | |
1177 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-77.5999985, 1.50000584, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1177 | + | PlayAnimationFromTable({ |
1178 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1178 | + | CFrame.new(0, -2, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987), |
1179 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-69.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1179 | + | CFrame.new(0.142921209, 4.43258858, -0.122617245, 0.906121016, 0.296197981, -0.302012295, -0.219846055, 0.939692795, 0.262002379, 0.361403257, -0.17100969, 0.916593432), |
1180 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1180 | + | CFrame.new(2.78872228, 0.109098256, -2.12347674, 0.642787337, 0.719846368, 0.262003452, -0.262002051, 0.527982056, -0.807830453, -0.719846845, 0.450617731, 0.5279814), |
1181 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-66.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1181 | + | CFrame.new(-4.79283857, 1.09281766, -1.4803014e-05, 0.866025329, 0.500000238, -1.49011612e-07, -0.500000179, 0.866025388, 6.10661004e-07, 4.47034836e-07, -4.47034836e-07, 1), |
1182 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1182 | + | CFrame.new(1.50002027, -6, -1.07288361e-06, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987), |
1183 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-67.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1183 | + | CFrame.new(-1.50001907, -6, -3.81469727e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
1184 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1184 | + | |
1185 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-65.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1185 | + | torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0) |
1186 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1186 | + | hum.PlatformStand = true |
1187 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-68.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1187 | + | torsy.Velocity = Vector3.new() |
1188 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1188 | + | |
1189 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-64.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1189 | + | |
1190 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1190 | + | |
1191 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-63.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1191 | + | Humanoid.WalkSpeed = 8 |
1192 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1192 | + | |
1193 | - | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-61.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,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.356863, 0.364706, 0.411765),}) |
1193 | + | |
1194 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),}) |
1194 | + | function stomp() |
1195 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 6.5000062, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1195 | + | |
1196 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 2.50000572, 4.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1196 | + | |
1197 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 10.5000114, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1197 | + | Humanoid.JumpPower = 0 |
1198 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 4.50000572, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1198 | + | for i=0,2,.1 do |
1199 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 3.50000572, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1199 | + | |
1200 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 8.50000572, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1200 | + | |
1201 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 9.50000572, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1201 | + | CFrame.new(0, -2, 0.499992371, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
1202 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 16),CFrame = CFrame.new(-54.0999985, 0.50000602, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1202 | + | CFrame.new(0, 4.42290688, -0.504058063, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
1203 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-58.0999985, 0.50000602, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1203 | + | CFrame.new(4.92942858, 1.05621195, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388, 0, 0, 0, 1), |
1204 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 5.5000062, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1204 | + | CFrame.new(-4.79283428, 1.09282625, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1), |
1205 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-58.0999985, 0.50000602, 7.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1205 | + | CFrame.new(1.2052269, -2.30000162, -2.06380463, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
1206 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 7.5000062, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1206 | + | CFrame.new(-1.50001597, -6, -0.499997646, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), |
1207 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 1.50000584, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1207 | + | }, .2, false) |
1208 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 3, 21),CFrame = CFrame.new(-52.5999985, 2.50000596, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1208 | + | |
1209 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 3, 1),CFrame = CFrame.new(-58.0999985, 2.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1209 | + | so(536642316,RightLeg,.7,3) |
1210 | - | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(35, 3, 1),CFrame = CFrame.new(-69.5999985, 2.50000596, 14.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
1210 | + | |
1211 | - | JailCell:MoveTo(pos) |
1211 | + | |
1212 | - | removescriptspart.Touched:connect(function(hit) |
1212 | + | |
1213 | - | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= chara then |
1213 | + | |
1214 | - | for i,v in pairs(hit.Parent:children()) do |
1214 | + | CFrame.new(0, -1.82004941, -0.371783257, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
1215 | - | if v:IsA("LocalScript") or v:IsA("Tool") then |
1215 | + | CFrame.new(0, 4.42290878, -0.504067779, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438), |
1216 | CFrame.new(4.92943096, 1.05621648, -6.17108253e-06, 0.86602509, -0.500000656, -3.33671437e-07, 0.500000715, 0.86602509, 2.08616257e-07, 1.78813934e-07, -3.87430191e-07, 1), | |
1217 | CFrame.new(-4.79283619, 1.09282386, -6.2277054e-06, 0.86602509, 0.500000656, 3.33671437e-07, -0.500000715, 0.86602509, 2.08616257e-07, -1.78813934e-07, -3.87430191e-07, 1), | |
1218 | CFrame.new(1.2052269, -5.38336658, -2.92564583, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
1219 | CFrame.new(-1.50000978, -6.05502558, -1.08027697, 0.984807849, 0, 0.173647985, 0.0593910702, 0.939692736, -0.33682391, -0.163175747, 0.342019886, 0.925416768), | |
1220 | }, .4, false) | |
1221 | - | for _, v in pairs(chara:children()) do |
1221 | + | |
1222 | - | if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then |
1222 | + | so(133680244,Torso,1,3) |
1223 | - | do |
1223 | + | CamShake(Torso,10,.5,.5) |
1224 | - | local p = v:clone() |
1224 | + | Effects.Wave(RootPart.CFrame*CFrame.new(1,-7,-2),Vector3.new(),Vector3.new(1,.2,1),"",10,false,.05) |
1225 | - | p.Name = "trail" |
1225 | + | for _, c in pairs(workspace:GetDescendants()) do |
1226 | - | p.Parent = workspace |
1226 | + | local hum = c:FindFirstChildOfClass("Humanoid") |
1227 | - | p.Transparency = 0.5 |
1227 | + | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then |
1228 | - | p.Anchored = true |
1228 | + | local head = GetDudesTorso(c) |
1229 | - | p.BrickColor = BrickColor.White() |
1229 | + | if head ~= nil then |
1230 | - | p.Material = "Neon" |
1230 | + | local targ = head.Position - RightLeg.Position |
1231 | - | p:BreakJoints() |
1231 | + | local mag = targ.magnitude |
1232 | - | p.CanCollide = false |
1232 | + | if 4 >= mag and c ~= chara then |
1233 | - | if v == chara.Head then |
1233 | + | so(206082327,head,1,3) |
1234 | - | for a, b in pairs(p:children()) do |
1234 | + | for ay,ee in pairs(c:children()) do |
1235 | - | if b:IsA("Sound") then |
1235 | + | if ee:IsA("BasePart") then |
1236 | - | b:Destroy() |
1236 | + | for i=1,5 do |
1237 | - | end |
1237 | + | local bl = Instance.new("Part",c) |
1238 | - | end |
1238 | + | bl.CFrame = ee.CFrame + Vector3.new(math.random(-10,10)/10,0,math.random(-10,10)/10) |
1239 | - | end |
1239 | + | local rand = math.random(2,7)/10 |
1240 | - | coroutine.resume(coroutine.create(function() |
1240 | + | bl.Size = Vector3.new(rand,rand,rand) |
1241 | - | for i = 1, 50 do |
1241 | + | bl.BrickColor = BrickColor.new("Maroon") |
1242 | - | swait() |
1242 | + | bl.Material = "Granite" |
1243 | - | p.Transparency = i / 50 |
1243 | + | ee:Destroy() |
1244 | - | end |
1244 | + | |
1245 | - | p:Destroy() |
1245 | + | |
1246 | - | end)) |
1246 | + | |
1247 | - | end |
1247 | + | |
1248 | - | end |
1248 | + | |
1249 | - | if v.className == "Accessory" then |
1249 | + | |
1250 | - | end |
1250 | + | |
1251 | swait(50) | |
1252 | - | so(1055279036,Torso,1,3) |
1252 | + | Humanoid.WalkSpeed = 8 |
1253 | - | if haed~=nil then |
1253 | + | Humanoid.JumpPower = 70 |
1254 | - | haed.Anchored = true |
1254 | + | |
1255 | - | Head.CFrame = haed.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(0,math.rad(180),0) |
1255 | + | |
1256 | ||
1257 | function pshoot() | |
1258 | attack = true | |
1259 | local ref = Instance.new("Part",Camera) | |
1260 | - | CFrame.new(0.174721688, 0, -0.147934705, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), |
1260 | + | |
1261 | - | CFrame.new(3.35276127e-06, 1.44895828, -0.0894558877, 0.939692616, 3.12924385e-07, -0.342020482, 0.0593909845, 0.98480773, 0.163176119, 0.336824477, -0.173648328, 0.925416529), |
1261 | + | |
1262 | - | CFrame.new(1.5, 0.499998093, -0.40000084, 0.939692676, -0.342020601, 0, 0, 0, -1, 0.342020601, 0.939692676, 0), |
1262 | + | |
1263 | - | CFrame.new(-1.52924228, 0.286380947, -3.51718177e-06, 0.939692855, 0.342019916, 2.08616257e-07, -0.342019856, 0.939692736, -1.5155652e-07, -2.08616257e-07, 8.94069672e-08, 1.00000024), |
1263 | + | |
1264 | - | CFrame.new(0.499998987, -2.00000095, -1.14738941e-06, 0.939692676, 0, -0.342020601, 0, 1, 0, 0.342020601, 0, 0.939692676), |
1264 | + | so(2920959,PHandaru,.8,3) |
1265 | - | CFrame.new(-0.499998212, -2.00000095, 1.90734909e-06, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), |
1265 | + | |
1266 | MagnitudeDmg(ref,3,40,2,RootPart.CFrame.lookVector*20,true,"Shot",.1) | |
1267 | local hitpt = Instance.new("Part",EffectModel) | |
1268 | - | chatfunc("You are under arrest! Now face your sentence!") |
1268 | + | hitpt.Size = Vector3.new(.3,.3,1) |
1269 | hitpt.CFrame = PBExit.CFrame * CFrame.Angles(math.rad(180),0,0) | |
1270 | - | local soaa = Instance.new("Sound",haed) |
1270 | + | hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0) |
1271 | - | soaa.Volume = 1 |
1271 | + | |
1272 | - | local cho = math.random(1,5) |
1272 | + | hitm.MeshId = "rbxassetid://94295100" |
1273 | - | if cho == 1 then |
1273 | + | hitm.TextureId = "rbxassetid://94287792" |
1274 | - | soaa.SoundId = "rbxassetid://111896685" |
1274 | + | hitm.Scale = Vector3.new(7,7,7) |
1275 | - | elseif cho == 2 then |
1275 | + | |
1276 | - | soaa.SoundId = "rbxassetid://535528169" |
1276 | + | |
1277 | - | elseif cho == 3 then |
1277 | + | for i = 0,1,.1 do |
1278 | - | soaa.SoundId = "rbxassetid://1080363252" |
1278 | + | |
1279 | - | elseif cho == 4 then |
1279 | + | |
1280 | - | soaa.SoundId = "rbxassetid://147758746" |
1280 | + | |
1281 | - | elseif cho == 5 then |
1281 | + | |
1282 | - | soaa.SoundId = "rbxassetid://626777433" |
1282 | + | |
1283 | - | soaa.Volume = .3 |
1283 | + | CamShake(PShot,10,.3,.2) |
1284 | - | soaa.TimePosition = 1 |
1284 | + | CamShake(ref,10,.3,.2) |
1285 | - | end |
1285 | + | Effects.Block(PShot.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.2,.2,.2),"Neon","Bright yellow",true,false,.1) |
1286 | - | game:service'Debris':AddItem(soaa,6) |
1286 | + | Effects.Block(ref.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.2,.2,.2),"Neon","Bright yellow",true,false,.1) |
1287 | - | soaa:Play() |
1287 | + | Effects.Block(CFrame.new((PShot.Position + ref.Position)/2,ref.Position),Vector3.new(1,1,(PShot.Position - ref.Position).magnitude),Vector3.new(1,1,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1) |
1288 | - | if haed~=nil then |
1288 | + | |
1289 | - | haed.Anchored = false |
1289 | + | |
1290 | swait() | |
1291 | - | Humanoid.WalkSpeed = 16 |
1291 | + | |
1292 | - | local jc = JailCell |
1292 | + | CFrame.new(0, -2.03907418, 0.246627718, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), |
1293 | - | if ply~=nil then |
1293 | + | CFrame.new(0, 4.27438593, -0.749499321, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686), |
1294 | - | local p = ply |
1294 | + | CFrame.new(4.50001526, 2.12096167, -0.0117100477, 1, 0, 0, 0, -0.500000715, -0.86602509, 0, 0.86602509, -0.500000715), |
1295 | CFrame.new(-3.79128671, -0.462022513, -0.54968375, 0.939692497, -0.336824238, -0.0593918264, 0.321393669, 0.928998291, -0.183489919, 0.11697875, 0.153335959, 0.981225848), | |
1296 | CFrame.new(1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
1297 | CFrame.new(-1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
1298 | - | if p~=nil and p.Character ~= nil and p.Character:FindFirstChild("Head") and jc ~= nil then |
1298 | + | |
1299 | - | if (p.Character:FindFirstChild("Head").Position - removescriptspart.Position).magnitude >= 10 then |
1299 | + | |
1300 | - | p.Character:FindFirstChild("Head").CFrame = SpawnPart.CFrame*CFrame.new(0,2,0) |
1300 | + | for i=0,2,.1 do |
1301 | swait() | |
1302 | - | elseif p==nil then |
1302 | + | |
1303 | - | jc:Destroy() |
1303 | + | CFrame.new(0, -2.03907442, 0.0466268957, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), |
1304 | - | break |
1304 | + | CFrame.new(0, 4.27438593, -0.749499321, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686), |
1305 | - | elseif jc==nil then |
1305 | + | CFrame.new(4.50001526, 0.888218164, -1.46819997, 1, 0, 0, 0, 0.342019796, -0.939692855, 0, 0.939692855, 0.342019796), |
1306 | - | break |
1306 | + | CFrame.new(-3.79128027, -0.462018341, -0.549682617, 0.939692497, -0.336824238, -0.0593918264, 0.321393669, 0.928998291, -0.183489919, 0.11697875, 0.153335959, 0.981225848), |
1307 | CFrame.new(1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
1308 | CFrame.new(-1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
1309 | }, .15, false) | |
1310 | end | |
1311 | attack = false | |
1312 | end | |
1313 | - | if p~=nil and p.Character ~= nil then |
1313 | + | |
1314 | - | for i,v in pairs(p.Character:children()) do |
1314 | + | function sshoot() |
1315 | - | if v:IsA("LocalScript") or v:IsA("Tool") then |
1315 | + | |
1316 | - | if v:IsA("LocalScript") then |
1316 | + | so(138083993,SHandaru,.8,3) |
1317 | - | v.Disabled = true |
1317 | + | CamShake(SHandaru,10,.5,.3) |
1318 | Effects.Block(SShot.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.25,.25,.25),"Neon","Bright yellow",true,false,.1) | |
1319 | for a=1,6 do | |
1320 | local ref = Instance.new("Part",Camera) | |
1321 | ref.Size = Vector3.new(0,0,0) | |
1322 | ref.Anchored = true | |
1323 | ref.CanCollide = false | |
1324 | ref.Transparency = 1 | |
1325 | - | p.CharacterAdded:connect(function() |
1325 | + | ref.CFrame = Mouse.Hit*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) |
1326 | - | if p~=nil and p.Character ~= nil and p.Character:FindFirstChild("Head") and jc~=nil then |
1326 | + | MagnitudeDmg(ref,7,50,2,RootPart.CFrame.lookVector*20,true,"Shot",0) |
1327 | - | p.Character:FindFirstChild("Head").CFrame = SpawnPart.CFrame*CFrame.new(0,2,0) |
1327 | + | CamShake(ref,10,.4,.3) |
1328 | Effects.Block(ref.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.2,.2,.2),"Neon","Bright yellow",true,false,.1) | |
1329 | Effects.Block(CFrame.new((SShot.Position + ref.Position)/2,ref.Position),Vector3.new(1,1,(SShot.Position - ref.Position).magnitude),Vector3.new(1,1,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1) | |
1330 | - | elseif ply == nil then |
1330 | + | |
1331 | end | |
1332 | - | local ch = dude |
1332 | + | for i=0,2,.1 do |
1333 | swait() | |
1334 | PlayAnimationFromTable({ | |
1335 | - | if ch ~= nil and ch:FindFirstChild("Head") and jc~=nil and jc:FindFirstChild("SpawnPart")~=nil then |
1335 | + | CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884), |
1336 | - | if (ch:FindFirstChild("Head").Position - removescriptspart.Position).magnitude >= 10 then |
1336 | + | CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715), |
1337 | - | ch:FindFirstChild("Head").CFrame = SpawnPart.CFrame*CFrame.new(0,2,0) |
1337 | + | CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945), |
1338 | CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091), | |
1339 | - | elseif ch.Parent==nil then |
1339 | + | CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464), |
1340 | - | jc:Destroy() |
1340 | + | CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884), |
1341 | - | break |
1341 | + | |
1342 | - | elseif jc.Parent==nil then |
1342 | + | |
1343 | - | break |
1343 | + | so(2697295,SHandaru,.4,3) |
1344 | for i=0,1,.1 do | |
1345 | swait() | |
1346 | PlayAnimationFromTable({ | |
1347 | CFrame.new(-1.44382084e-05, -2, -3.52843199e-05, 0.500002384, 7.21910419e-06, -0.866024017, -1.88881022e-05, 1, -2.56920703e-06, 0.866024017, 1.76421599e-05, 0.500002384), | |
1348 | CFrame.new(-0.547627807, 4.48263931, -0.316102535, 0.500002384, -0.296216011, 0.813789785, 7.21910419e-06, 0.939686358, 0.34203741, -0.866024017, -0.171013653, 0.46984759), | |
1349 | CFrame.new(1.81868255, -0.103687182, -2.3519392, 0.377200723, 0.740163803, -0.556666017, 0.111620866, -0.633017302, -0.766048193, -0.919380486, 0.226818368, -0.321392298), | |
1350 | CFrame.new(-3.0397644, 2.26208973, -1.6833154, 0.658552945, -0.00924476981, 0.752477705, 0.592071891, -0.610833943, -0.525673687, 0.46449858, 0.791704834, -0.396792918), | |
1351 | CFrame.new(1.76254702, -5.99993086, -0.252668977, 0.500002384, -1.88881022e-05, 0.866024017, 7.21910419e-06, 1, 1.76421599e-05, -0.866024017, -2.56920703e-06, 0.500002384), | |
1352 | CFrame.new(-1.16592002, -5.99993467, 0.0196563601, 0.500002384, -1.88881022e-05, 0.866024017, 7.21910419e-06, 1, 1.76421599e-05, -0.866024017, -2.56920703e-06, 0.500002384), | |
1353 | }, .2, false) | |
1354 | - | qhold = false |
1354 | + | |
1355 | - | justsprinted = false |
1355 | + | |
1356 | - | function sprint() |
1356 | + | hitpt.Size = Vector3.new(.7,.6,2.1) |
1357 | hitpt.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0) | |
1358 | - | --print("supurinto?") |
1358 | + | hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0) |
1359 | - | --justsprinted = true |
1359 | + | hitpt.BrickColor = BrickColor.Red() |
1360 | - | --coroutine.wrap(function() |
1360 | + | |
1361 | - | --swait(10) |
1361 | + | hitm.MeshId = "rbxassetid://94248124" |
1362 | - | --justsprinted = false |
1362 | + | hitm.Scale = Vector3.new(4,4,4) |
1363 | - | --end)() |
1363 | + | |
1364 | swait(30) | |
1365 | for i = 0,1,.1 do | |
1366 | swait() | |
1367 | - | CFrame.new(-2.4138464e-07, 0.123327732, -0.188363045, 1, -4.38293796e-07, 1.20420327e-06, 0, 0.939692736, 0.342019886, -1.28148622e-06, -0.342019916, 0.939692736) * CFrame.new(0, 0- .08 * math.cos((sine/2.5)), 0), |
1367 | + | |
1368 | - | CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
1368 | + | |
1369 | - | CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0, 0, -.6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0), |
1369 | + | |
1370 | - | CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, .6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0), |
1370 | + | |
1371 | - | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0), |
1371 | + | swait(15) |
1372 | - | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0), |
1372 | + | so(2697295,SHandaru,.5,3) |
1373 | for i=0,2,.1 do | |
1374 | - | Humanoid.WalkSpeed = 40 |
1374 | + | |
1375 | - | until qhold == false or Torso.Velocity == Vector3.new(0,0,0) |
1375 | + | |
1376 | - | --print'sutoppu' |
1376 | + | CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884), |
1377 | - | Humanoid.WalkSpeed = 16 |
1377 | + | CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715), |
1378 | CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945), | |
1379 | CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091), | |
1380 | CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464), | |
1381 | CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884), | |
1382 | - | function movejails() |
1382 | + | }, .15, false) |
1383 | - | pos = Mouse.Hit.p |
1383 | + | |
1384 | - | for i,v in pairs(Jails:children()) do |
1384 | + | |
1385 | - | swait(5) |
1385 | + | |
1386 | - | v:MoveTo(pos) |
1386 | + | |
1387 | slugged = false | |
1388 | function slugload() | |
1389 | attack = true | |
1390 | for i=0,1.5,.1 do | |
1391 | - | if attack == false then |
1391 | + | |
1392 | - | if Anim == "Jump" or Anim == "Fall" then |
1392 | + | |
1393 | - | asmek() |
1393 | + | CFrame.new(-7.16520026e-06, -2, -1.7398881e-05, 0.500000775, 3.58260013e-06, -0.866025031, -9.32523108e-06, 1, -1.24710277e-06, 0.866025031, 8.69944051e-06, 0.500000834), |
1394 | - | else |
1394 | + | CFrame.new(-0.547560275, 4.48266172, -0.316098541, 0.500000775, -0.296206981, 0.813794136, 3.58260013e-06, 0.939689577, 0.342028588, -0.866025031, -0.171011642, 0.469846636), |
1395 | - | smek() |
1395 | + | CFrame.new(1.79885161, 0.344982982, -2.3633914, 0.362167209, 0.825436056, -0.433004498, 0.0868273452, -0.492402256, -0.866019845, -0.928059697, 0.276049197, -0.249998987), |
1396 | - | end |
1396 | + | CFrame.new(-2.88378954, -0.377780259, 1.65731072, 0.242966965, -0.26283136, 0.933748841, 0.258929163, 0.945239484, 0.198690876, -0.934838533, 0.193499491, 0.297716707), |
1397 | - | end |
1397 | + | CFrame.new(1.26252019, -5.99994278, 0.147333026, 1.00000072, -7.54235225e-06, -9.83476639e-07, 2.53665348e-06, 0.999997318, -3.08799281e-06, 3.27825546e-07, 1.02932972e-06, 0.999999464), |
1398 | CFrame.new(-1.1659708, -5.99996805, 0.0196544528, 0.500000775, -9.32523108e-06, 0.866025031, 3.58260013e-06, 1, 8.69944051e-06, -0.866025031, -1.24710277e-06, 0.500000834), | |
1399 | }, .15, false) | |
1400 | end | |
1401 | local hitpt0 = Instance.new("Part",EffectModel) | |
1402 | hitpt0.Size = Vector3.new(.7,.6,2.1) | |
1403 | hitpt0.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0) | |
1404 | - | k = k:lower() |
1404 | + | hitpt0.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0) |
1405 | - | if k=='m' then |
1405 | + | local hitm0 = Instance.new("SpecialMesh",hitpt0) |
1406 | - | if mus.IsPlaying == true then |
1406 | + | hitm0.MeshId = "rbxassetid://94248124" |
1407 | - | mus:Stop() |
1407 | + | hitm0.TextureId = "rbxassetid://94219470" |
1408 | - | elseif mus.IsPaused == true then |
1408 | + | hitm0.Scale = Vector3.new(4,4,4) |
1409 | - | mus:Play() |
1409 | + | local hw = Instance.new("Weld",hitpt0) |
1410 | - | end |
1410 | + | hw.Part0 = hitpt0 |
1411 | - | end |
1411 | + | hw.Part1 = LeftArm |
1412 | - | if attack == false then |
1412 | + | hw.C0 = CFrame.new(-1,2.5,0) |
1413 | - | if k == 'q' then |
1413 | + | |
1414 | - | qhold = true |
1414 | + | |
1415 | - | sprint() |
1415 | + | |
1416 | - | elseif k == 'x' then |
1416 | + | CFrame.new(-1.44382084e-05, -2, -3.52843199e-05, 0.500002384, 7.21910419e-06, -0.866024017, -1.88881022e-05, 1, -2.56920703e-06, 0.866024017, 1.76421599e-05, 0.500002384), |
1417 | - | arrest() |
1417 | + | CFrame.new(-0.547627807, 4.48263931, -0.316102535, 0.500002384, -0.296216011, 0.813789785, 7.21910419e-06, 0.939686358, 0.34203741, -0.866024017, -0.171013653, 0.46984759), |
1418 | - | elseif k == 'z' then |
1418 | + | CFrame.new(1.81868255, -0.103687182, -2.3519392, 0.377200723, 0.740163803, -0.556666017, 0.111620866, -0.633017302, -0.766048193, -0.919380486, 0.226818368, -0.321392298), |
1419 | - | zhold = true |
1419 | + | CFrame.new(-3.0397644, 2.26208973, -1.6833154, 0.658552945, -0.00924476981, 0.752477705, 0.592071891, -0.610833943, -0.525673687, 0.46449858, 0.791704834, -0.396792918), |
1420 | - | shoot() |
1420 | + | CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464), |
1421 | - | elseif k == 'p' then |
1421 | + | CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884), |
1422 | - | movejails() |
1422 | + | }, .2, false) |
1423 | - | end |
1423 | + | |
1424 | - | end |
1424 | + | hitpt0:Destroy() |
1425 | so(2697295,SHandaru,.7,3) | |
1426 | swait(15) | |
1427 | for i=0,1,.1 do | |
1428 | swait() | |
1429 | - | k = k:lower() |
1429 | + | |
1430 | - | if k == 'q' then |
1430 | + | CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884), |
1431 | - | qhold = false |
1431 | + | CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715), |
1432 | - | elseif k == 'z' then |
1432 | + | CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945), |
1433 | - | zhold = false |
1433 | + | CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091), |
1434 | - | end |
1434 | + | CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464), |
1435 | CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884), | |
1436 | }, .2, false) | |
1437 | end | |
1438 | for i=0,1.5,.1 do | |
1439 | swait() | |
1440 | PlayAnimationFromTable({ | |
1441 | CFrame.new(-1.44382084e-05, -2, -3.52843199e-05, 0.500002384, 7.21910419e-06, -0.866024017, -1.88881022e-05, 1, -2.56920703e-06, 0.866024017, 1.76421599e-05, 0.500002384), | |
1442 | - | doe = doe + 2 |
1442 | + | CFrame.new(-0.547627807, 4.48263931, -0.316102535, 0.500002384, -0.296216011, 0.813789785, 7.21910419e-06, 0.939686358, 0.34203741, -0.866024017, -0.171013653, 0.46984759), |
1443 | CFrame.new(1.81868255, -0.103687182, -2.3519392, 0.377200723, 0.740163803, -0.556666017, 0.111620866, -0.633017302, -0.766048193, -0.919380486, 0.226818368, -0.321392298), | |
1444 | - | doe = 0 |
1444 | + | CFrame.new(-3.0397644, 2.26208973, -1.6833154, 0.658552945, -0.00924476981, 0.752477705, 0.592071891, -0.610833943, -0.525673687, 0.46449858, 0.791704834, -0.396792918), |
1445 | CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464), | |
1446 | CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884), | |
1447 | }, .15, false) | |
1448 | end | |
1449 | - | swait() |
1449 | + | |
1450 | - | for i, v in pairs(chara:GetChildren()) do |
1450 | + | hitpt.Size = Vector3.new(.7,.6,2.1) |
1451 | - | if v:IsA("Part") then |
1451 | + | hitpt.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0) |
1452 | - | v.Material = "SmoothPlastic" |
1452 | + | hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0) |
1453 | - | elseif v:IsA("Accessory") then |
1453 | + | hitpt.BrickColor = BrickColor.Red() |
1454 | - | v:WaitForChild("Handle").Material = "SmoothPlastic" |
1454 | + | |
1455 | - | end |
1455 | + | hitm.MeshId = "rbxassetid://94248124" |
1456 | - | end |
1456 | + | hitm.Scale = Vector3.new(4,4,4) |
1457 | coroutine.wrap(function() | |
1458 | swait(30) | |
1459 | - | if sprintt >= 1 then |
1459 | + | for i = 0,1,.1 do |
1460 | - | sprintt = sprintt - 1 |
1460 | + | |
1461 | - | end |
1461 | + | |
1462 | - | |
1462 | + | |
1463 | - | if Head:FindFirstChild("mus")==nil then |
1463 | + | |
1464 | - | mus = Instance.new("Sound",Head) |
1464 | + | |
1465 | - | mus.Name = "mus" |
1465 | + | swait(15) |
1466 | - | mus.SoundId = "rbxassetid://345868687" |
1466 | + | so(2697295,SHandaru,.5,3) |
1467 | - | mus.Looped = true |
1467 | + | for i=0,2,.1 do |
1468 | - | mus.Volume = 1 |
1468 | + | |
1469 | - | mus:Play() |
1469 | + | |
1470 | - | end |
1470 | + | CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884), |
1471 | - | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude |
1471 | + | CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715), |
1472 | - | velocity = RootPart.Velocity.y |
1472 | + | CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945), |
1473 | - | sine = sine + change |
1473 | + | CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091), |
1474 | - | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara) |
1474 | + | CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464), |
1475 | - | if RootPart.Velocity.y > 1 and hit == nil then |
1475 | + | CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884), |
1476 | - | Anim = "Jump" |
1476 | + | }, .15, false) |
1477 | - | if attack == false then |
1477 | + | |
1478 | - | PlayAnimationFromTable({ |
1478 | + | slugged = true |
1479 | - | CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), |
1479 | + | |
1480 | - | CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855), |
1480 | + | |
1481 | - | CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012), |
1481 | + | |
1482 | - | CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012), |
1482 | + | function slugshoot() |
1483 | - | CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), |
1483 | + | |
1484 | - | CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), |
1484 | + | so(138083993,SHandaru,.8,3) |
1485 | - | }, .3, false) |
1485 | + | CamShake(SHandaru,10,.5,.3) |
1486 | - | end |
1486 | + | Effects.Block(SShot.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.25,.25,.25),"Neon","Bright yellow",true,false,.1) |
1487 | - | elseif RootPart.Velocity.y < -1 and hit == nil then |
1487 | + | local ref = Instance.new("Part",Camera) |
1488 | - | Anim = "Fall" |
1488 | + | |
1489 | - | if attack == false then |
1489 | + | |
1490 | - | PlayAnimationFromTable({ |
1490 | + | |
1491 | - | CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), |
1491 | + | |
1492 | - | CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), |
1492 | + | |
1493 | - | CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012), |
1493 | + | MagnitudeDmg(ref,3,120,0,RootPart.CFrame.lookVector*70,true,"Shot",0) |
1494 | - | CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012), |
1494 | + | CamShake(ref,10,.4,.3) |
1495 | - | CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), |
1495 | + | Effects.Block(ref.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.2,.2,.2),"Neon","Bright yellow",true,false,.1) |
1496 | - | CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), |
1496 | + | Effects.Block(CFrame.new((SShot.Position + ref.Position)/2,ref.Position),Vector3.new(1,1,(SShot.Position - ref.Position).magnitude),Vector3.new(1,1,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1) |
1497 | - | }, .3, false) |
1497 | + | |
1498 | - | end |
1498 | + | for i=0,2,.1 do |
1499 | - | elseif Torsovelocity < 1 and hit ~= nil then |
1499 | + | |
1500 | - | Anim = "Idle" |
1500 | + | PlayAnimationFromTable({ |
1501 | - | if attack == false then |
1501 | + | CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884), |
1502 | - | change = 1 |
1502 | + | CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715), |
1503 | - | PlayAnimationFromTable({ |
1503 | + | CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945), |
1504 | - | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0), |
1504 | + | CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091), |
1505 | - | CFrame.new(0, 1.49999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
1505 | + | CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464), |
1506 | - | CFrame.new(0.89930898, -0.180769742, 0.30436784, 0.766043901, 0.642788172, 8.56792951e-07, -0.556670964, 0.663412929, 0.500000715, 0.321393967, -0.383022994, 0.866024971), |
1506 | + | CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884), |
1507 | - | CFrame.new(-0.899309754, -0.180769712, 0.304367989, 0.766043901, -0.642788172, -8.56792951e-07, 0.556670964, 0.663412929, 0.500000715, -0.321393967, -0.383022994, 0.866024971), |
1507 | + | |
1508 | - | CFrame.new(0.5, -1.99999893, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), |
1508 | + | |
1509 | - | CFrame.new(-0.5, -1.99999893, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), |
1509 | + | so(2697295,SHandaru,.4,3) |
1510 | - | }, .3, false) |
1510 | + | |
1511 | - | end |
1511 | + | |
1512 | - | elseif Torsovelocity > 2 and hit ~= nil then |
1512 | + | |
1513 | - | Anim = "Walk" |
1513 | + | CFrame.new(-1.44382084e-05, -2, -3.52843199e-05, 0.500002384, 7.21910419e-06, -0.866024017, -1.88881022e-05, 1, -2.56920703e-06, 0.866024017, 1.76421599e-05, 0.500002384), |
1514 | - | if attack == false then |
1514 | + | CFrame.new(-0.547627807, 4.48263931, -0.316102535, 0.500002384, -0.296216011, 0.813789785, 7.21910419e-06, 0.939686358, 0.34203741, -0.866024017, -0.171013653, 0.46984759), |
1515 | - | PlayAnimationFromTable({ |
1515 | + | CFrame.new(1.81868255, -0.103687182, -2.3519392, 0.377200723, 0.740163803, -0.556666017, 0.111620866, -0.633017302, -0.766048193, -0.919380486, 0.226818368, -0.321392298), |
1516 | - | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 3.5), 0) * CFrame.Angles(0, 0, 0), |
1516 | + | CFrame.new(-3.0397644, 2.26208973, -1.6833154, 0.658552945, -0.00924476981, 0.752477705, 0.592071891, -0.610833943, -0.525673687, 0.46449858, 0.791704834, -0.396792918), |
1517 | - | CFrame.new(-2.09923631e-14, 1.48262846, -0.0984891504, 1, -1.42108547e-14, 0, 0, 0.984807491, 0.173649743, 0, -0.173649758, 0.984807491), |
1517 | + | CFrame.new(1.76254702, -5.99993086, -0.252668977, 0.500002384, -1.88881022e-05, 0.866024017, 7.21910419e-06, 1, 1.76421599e-05, -0.866024017, -2.56920703e-06, 0.500002384), |
1518 | - | CFrame.new(0.89930898, -0.180769742, 0.30436784, 0.766043901, 0.642788172, 8.56792951e-07, -0.556670964, 0.663412929, 0.500000715, 0.321393967, -0.383022994, 0.866024971), |
1518 | + | CFrame.new(-1.16592002, -5.99993467, 0.0196563601, 0.500002384, -1.88881022e-05, 0.866024017, 7.21910419e-06, 1, 1.76421599e-05, -0.866024017, -2.56920703e-06, 0.500002384), |
1519 | - | CFrame.new(-0.899309754, -0.180769712, 0.304367989, 0.766043901, -0.642788172, -8.56792951e-07, 0.556670964, 0.663412929, 0.500000715, -0.321393967, -0.383022994, 0.866024971), |
1519 | + | }, .2, false) |
1520 | - | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0), |
1520 | + | |
1521 | - | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0), |
1521 | + | |
1522 | - | }, .3, false) |
1522 | + | hitpt.Size = Vector3.new(.7,.6,2.1) |
1523 | - | end |
1523 | + | hitpt.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0) |
1524 | - | end |
1524 | + | hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0) |
1525 | - | if 0 < #Effects then |
1525 | + | |
1526 | - | for e = 1, #Effects do |
1526 | + | hitm.MeshId = "rbxassetid://94248124" |
1527 | - | if Effects[e] ~= nil then |
1527 | + | hitm.TextureId = "rbxassetid://94219470" |
1528 | - | local Thing = Effects[e] |
1528 | + | hitm.Scale = Vector3.new(4,4,4) |
1529 | - | if Thing ~= nil then |
1529 | + | |
1530 | - | local Part = Thing[1] |
1530 | + | |
1531 | - | local Mode = Thing[2] |
1531 | + | for i = 0,1,.1 do |
1532 | - | local Delay = Thing[3] |
1532 | + | |
1533 | - | local IncX = Thing[4] |
1533 | + | |
1534 | - | local IncY = Thing[5] |
1534 | + | |
1535 | - | local IncZ = Thing[6] |
1535 | + | |
1536 | - | if Thing[2] == "Shoot" then |
1536 | + | |
1537 | - | local Look = Thing[1] |
1537 | + | swait(15) |
1538 | - | local move = 30 |
1538 | + | so(2697295,SHandaru,.5,3) |
1539 | - | if Thing[8] == 3 then |
1539 | + | for i=0,2,.1 do |
1540 | - | move = 10 |
1540 | + | |
1541 | - | end |
1541 | + | |
1542 | - | local hit, pos = rayCast(Thing[4], Thing[1], move, m) |
1542 | + | CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884), |
1543 | - | if Thing[10] ~= nil then |
1543 | + | CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715), |
1544 | - | da = pos |
1544 | + | CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945), |
1545 | - | cf2 = CFrame.new(Thing[4], Thing[10].Position) |
1545 | + | CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091), |
1546 | - | cfa = CFrame.new(Thing[4], pos) |
1546 | + | CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464), |
1547 | - | tehCF = cfa:lerp(cf2, 0.2) |
1547 | + | CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884), |
1548 | - | Thing[1] = tehCF.lookVector |
1548 | + | }, .15, false) |
1549 | - | end |
1549 | + | |
1550 | - | local mag = (Thing[4] - pos).magnitude |
1550 | + | slugged = false |
1551 | - | Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) |
1551 | + | |
1552 | - | if Thing[8] == 2 then |
1552 | + | |
1553 | - | Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1) |
1553 | + | |
1554 | - | end |
1554 | + | function equippist() |
1555 | - | Thing[4] = Thing[4] + Look * move |
1555 | + | |
1556 | - | Thing[3] = Thing[3] - 1 |
1556 | + | |
1557 | - | if 2 < Thing[5] then |
1557 | + | Humanoid.JumpPower = 0 |
1558 | - | Thing[5] = Thing[5] - 0.3 |
1558 | + | if CurrentWep == "Shotgun" then |
1559 | - | Thing[6] = Thing[6] - 0.3 |
1559 | + | for i=0,2,.1 do |
1560 | - | end |
1560 | + | |
1561 | - | if hit ~= nil then |
1561 | + | |
1562 | - | Thing[3] = 0 |
1562 | + | CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
1563 | - | if Thing[8] == 1 or Thing[8] == 3 then |
1563 | + | CFrame.new(-0.102602988, 4.45099878, 0.277624637, 0.939692736, -7.70138158e-08, -0.342019916, -0.0593909845, 0.984807849, -0.163175747, 0.33682391, 0.173647955, 0.925416648), |
1564 | - | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) |
1564 | + | CFrame.new(4.50001526, 2.68827057, 0.743782997, 1, 0, 0, 0, -0.866025388, 0.500000238, 0, -0.500000238, -0.866025388), |
1565 | - | else |
1565 | + | CFrame.new(-4.79884863, 0.640861034, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), |
1566 | - | if Thing[8] == 2 then |
1566 | + | CFrame.new(1.50001431, -6.00000048, 3.12924385e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), |
1567 | - | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) |
1567 | + | CFrame.new(-1.5000186, -6.00000048, 9.83476639e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), |
1568 | - | if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then |
1568 | + | }, .15, false) |
1569 | - | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) |
1569 | + | |
1570 | - | ref.Anchored = true |
1570 | + | SHandaru.Transparency = 1 |
1571 | - | ref.CFrame = CFrame.new(pos) |
1571 | + | HolShot.Transparency = 0 |
1572 | - | CFuncs["Sound"].Create("161006093", ref, 1, 1.2) |
1572 | + | |
1573 | - | game:GetService("Debris"):AddItem(ref, 0.2) |
1573 | + | |
1574 | - | Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2) |
1574 | + | |
1575 | - | Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1) |
1575 | + | CFrame.new(0, -2, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.1 * math.cos((sine)/10), 0), |
1576 | - | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) |
1576 | + | CFrame.new(0.147721067, 4.44785833, -0.255860269, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617), |
1577 | - | end |
1577 | + | CFrame.new(4.80713892, 0.709604442, -2.81296843e-06, 0.939692855, -0.342019916, 2.08616257e-07, 0.342019856, 0.939692736, 1.5155652e-07, -2.08616257e-07, -8.94069672e-08, 1.00000024), |
1578 | - | end |
1578 | + | CFrame.new(-4.50001621, 0.190193266, -0.9294222, 1.00000024, 0, -2.98023224e-08, 0, 0.86602515, -0.500000358, 0, 0.500000417, 0.866025329), |
1579 | - | end |
1579 | + | CFrame.new(1.50001502, -5.99999952, 5.36441803e-07, 0.766044557, 0, -0.642787695, 0, 1, 0, 0.642787695, 0, 0.766044557) * CFrame.new(0,-.1 * math.cos((sine)/10), 0), |
1580 | - | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) |
1580 | + | CFrame.new(-1.50001943, -5.99999952, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.1 * math.cos((sine)/10), 0), |
1581 | - | ref.Anchored = true |
1581 | + | |
1582 | - | ref.CFrame = CFrame.new(pos) |
1582 | + | |
1583 | - | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) |
1583 | + | |
1584 | - | game:GetService("Debris"):AddItem(ref, 1) |
1584 | + | for i=0,2,.1 do |
1585 | - | end |
1585 | + | |
1586 | - | if Thing[3] <= 0 then |
1586 | + | |
1587 | - | table.remove(Effects, e) |
1587 | + | CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), |
1588 | - | end |
1588 | + | CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), |
1589 | - | end |
1589 | + | CFrame.new(3.77304196, -0.53539288, 0.273614407, 0.939692736, 0.321393579, 0.116977744, -0.342019945, 0.883022368, 0.321393698, -8.56816769e-08, -0.342020065, 0.939692795), |
1590 | - | do |
1590 | + | CFrame.new(-4.64490843, 0.330175281, -1.53582289e-06, 0.984807849, 0.173648134, -3.13053391e-07, -0.173648164, 0.984807909, 2.68220901e-07, 3.50177288e-07, -1.78813934e-07, 1.00000012), |
1591 | - | do |
1591 | + | CFrame.new(1.50001884, -5.99037027, -0.421832889, 0.984807849, 0, -0.173647985, -0.0301536229, 0.984807849, -0.171009898, 0.171009898, 0.173647985, 0.969846487), |
1592 | - | if Thing[2] == "FireWave" then |
1592 | + | CFrame.new(-1.50002635, -5.99037027, -0.421831638, 0.984807849, 0, 0.173647985, 0.0301536229, 0.984807849, -0.171009898, -0.171009898, 0.173647985, 0.969846487), |
1593 | - | if Thing[3] <= Thing[4] then |
1593 | + | }, .15, false) |
1594 | - | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) |
1594 | + | |
1595 | - | Thing[3] = Thing[3] + 1 |
1595 | + | CurrentWep = "Pistol" |
1596 | - | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) |
1596 | + | PHandaru.Transparency = 0 |
1597 | - | else |
1597 | + | HolPist.Transparency = 1 |
1598 | - | Part.Parent = nil |
1598 | + | Humanoid.WalkSpeed = 8 |
1599 | - | table.remove(Effects, e) |
1599 | + | Humanoid.JumpPower = 70 |
1600 | - | end |
1600 | + | |
1601 | - | end |
1601 | + | |
1602 | - | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then |
1602 | + | |
1603 | - | if Thing[1].Transparency <= 1 then |
1603 | + | function equipshot() |
1604 | - | if Thing[2] == "Block1" then |
1604 | + | |
1605 | - | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) |
1605 | + | |
1606 | - | Mesh = Thing[7] |
1606 | + | Humanoid.JumpPower = 0 |
1607 | - | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) |
1607 | + | if CurrentWep == "Pistol" then |
1608 | - | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1608 | + | for i=0,2,.1 do |
1609 | - | else |
1609 | + | |
1610 | - | if Thing[2] == "Block2" then |
1610 | + | |
1611 | - | Thing[1].CFrame = Thing[1].CFrame |
1611 | + | CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), |
1612 | - | Mesh = Thing[7] |
1612 | + | CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), |
1613 | - | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) |
1613 | + | CFrame.new(3.77304196, -0.53539288, 0.273614407, 0.939692736, 0.321393579, 0.116977744, -0.342019945, 0.883022368, 0.321393698, -8.56816769e-08, -0.342020065, 0.939692795), |
1614 | - | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1614 | + | CFrame.new(-4.64490843, 0.330175281, -1.53582289e-06, 0.984807849, 0.173648134, -3.13053391e-07, -0.173648164, 0.984807909, 2.68220901e-07, 3.50177288e-07, -1.78813934e-07, 1.00000012), |
1615 | - | else |
1615 | + | CFrame.new(1.50001884, -5.99037027, -0.421832889, 0.984807849, 0, -0.173647985, -0.0301536229, 0.984807849, -0.171009898, 0.171009898, 0.173647985, 0.969846487), |
1616 | - | if Thing[2] == "Fire" then |
1616 | + | CFrame.new(-1.50002635, -5.99037027, -0.421831638, 0.984807849, 0, 0.173647985, 0.0301536229, 0.984807849, -0.171009898, -0.171009898, 0.173647985, 0.969846487), |
1617 | - | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) |
1617 | + | }, .15, false) |
1618 | - | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) |
1618 | + | |
1619 | - | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1619 | + | PHandaru.Transparency = 1 |
1620 | - | else |
1620 | + | HolPist.Transparency = 0 |
1621 | - | if Thing[2] == "Cylinder" then |
1621 | + | |
1622 | - | Mesh = Thing[7] |
1622 | + | |
1623 | - | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) |
1623 | + | |
1624 | - | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1624 | + | CFrame.new(0, -2, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.1 * math.cos((sine)/10), 0), |
1625 | - | else |
1625 | + | CFrame.new(0.147721067, 4.44785833, -0.255860269, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617), |
1626 | - | if Thing[2] == "Blood" then |
1626 | + | CFrame.new(4.80713892, 0.709604442, -2.81296843e-06, 0.939692855, -0.342019916, 2.08616257e-07, 0.342019856, 0.939692736, 1.5155652e-07, -2.08616257e-07, -8.94069672e-08, 1.00000024), |
1627 | - | Mesh = Thing[7] |
1627 | + | CFrame.new(-4.50001621, 0.190193266, -0.9294222, 1.00000024, 0, -2.98023224e-08, 0, 0.86602515, -0.500000358, 0, 0.500000417, 0.866025329), |
1628 | - | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) |
1628 | + | CFrame.new(1.50001502, -5.99999952, 5.36441803e-07, 0.766044557, 0, -0.642787695, 0, 1, 0, 0.642787695, 0, 0.766044557) * CFrame.new(0,-.1 * math.cos((sine)/10), 0), |
1629 | - | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) |
1629 | + | CFrame.new(-1.50001943, -5.99999952, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.1 * math.cos((sine)/10), 0), |
1630 | - | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1630 | + | |
1631 | - | else |
1631 | + | |
1632 | - | if Thing[2] == "Elec" then |
1632 | + | |
1633 | - | Mesh = Thing[10] |
1633 | + | for i=0,2,.1 do |
1634 | - | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) |
1634 | + | |
1635 | - | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1635 | + | |
1636 | - | else |
1636 | + | CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
1637 | - | if Thing[2] == "Disappear" then |
1637 | + | CFrame.new(-0.102602988, 4.45099878, 0.277624637, 0.939692736, -7.70138158e-08, -0.342019916, -0.0593909845, 0.984807849, -0.163175747, 0.33682391, 0.173647955, 0.925416648), |
1638 | - | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1638 | + | CFrame.new(4.50001526, 2.68827057, 0.743782997, 1, 0, 0, 0, -0.866025388, 0.500000238, 0, -0.500000238, -0.866025388), |
1639 | - | else |
1639 | + | CFrame.new(-4.79884863, 0.640861034, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), |
1640 | - | if Thing[2] == "Shatter" then |
1640 | + | CFrame.new(1.50001431, -6.00000048, 3.12924385e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), |
1641 | - | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1641 | + | CFrame.new(-1.5000186, -6.00000048, 9.83476639e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), |
1642 | - | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) |
1642 | + | }, .15, false) |
1643 | - | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) |
1643 | + | |
1644 | - | Thing[6] = Thing[6] + Thing[5] |
1644 | + | CurrentWep = "Shotgun" |
1645 | - | end |
1645 | + | SHandaru.Transparency = 0 |
1646 | - | end |
1646 | + | HolShot.Transparency = 1 |
1647 | - | end |
1647 | + | Humanoid.WalkSpeed = 8 |
1648 | - | end |
1648 | + | Humanoid.JumpPower = 70 |
1649 | - | end |
1649 | + | |
1650 | - | end |
1650 | + | |
1651 | - | end |
1651 | + | |
1652 | - | end |
1652 | + | function unequip() |
1653 | - | else |
1653 | + | |
1654 | - | Part.Parent = nil |
1654 | + | |
1655 | - | table.remove(Effects, e) |
1655 | + | Humanoid.JumpPower = 0 |
1656 | - | end |
1656 | + | if CurrentWep == "Pistol" then |
1657 | - | end |
1657 | + | for i=0,2,.1 do |
1658 | - | end |
1658 | + | |
1659 | - | end |
1659 | + | |
1660 | - | end |
1660 | + | CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), |
1661 | - | end |
1661 | + | CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), |
1662 | - | end |
1662 | + | CFrame.new(3.77304196, -0.53539288, 0.273614407, 0.939692736, 0.321393579, 0.116977744, -0.342019945, 0.883022368, 0.321393698, -8.56816769e-08, -0.342020065, 0.939692795), |
1663 | - | end |
1663 | + | CFrame.new(-4.64490843, 0.330175281, -1.53582289e-06, 0.984807849, 0.173648134, -3.13053391e-07, -0.173648164, 0.984807909, 2.68220901e-07, 3.50177288e-07, -1.78813934e-07, 1.00000012), |
1664 | CFrame.new(1.50001884, -5.99037027, -0.421832889, 0.984807849, 0, -0.173647985, -0.0301536229, 0.984807849, -0.171009898, 0.171009898, 0.173647985, 0.969846487), | |
1665 | CFrame.new(-1.50002635, -5.99037027, -0.421831638, 0.984807849, 0, 0.173647985, 0.0301536229, 0.984807849, -0.171009898, -0.171009898, 0.173647985, 0.969846487), | |
1666 | }, .15, false) | |
1667 | end | |
1668 | PHandaru.Transparency = 1 | |
1669 | HolPist.Transparency = 0 | |
1670 | elseif CurrentWep == "Shotgun" then | |
1671 | for i=0,2,.1 do | |
1672 | swait() | |
1673 | PlayAnimationFromTable({ | |
1674 | CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1675 | CFrame.new(-0.102602988, 4.45099878, 0.277624637, 0.939692736, -7.70138158e-08, -0.342019916, -0.0593909845, 0.984807849, -0.163175747, 0.33682391, 0.173647955, 0.925416648), | |
1676 | CFrame.new(4.50001526, 2.68827057, 0.743782997, 1, 0, 0, 0, -0.866025388, 0.500000238, 0, -0.500000238, -0.866025388), | |
1677 | CFrame.new(-4.79884863, 0.640861034, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
1678 | CFrame.new(1.50001431, -6.00000048, 3.12924385e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
1679 | CFrame.new(-1.5000186, -6.00000048, 9.83476639e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), | |
1680 | }, .15, false) | |
1681 | end | |
1682 | SHandaru.Transparency = 1 | |
1683 | HolShot.Transparency = 0 | |
1684 | end | |
1685 | CurrentWep = "CQC" | |
1686 | Humanoid.WalkSpeed = 8 | |
1687 | Humanoid.JumpPower = 70 | |
1688 | attack = false | |
1689 | end | |
1690 | ||
1691 | Mouse.Button1Down:connect(function() | |
1692 | if attack == false then | |
1693 | if CurrentWep == "Pistol" then | |
1694 | pshoot() | |
1695 | elseif CurrentWep == "Shotgun" then | |
1696 | if slugged == true then | |
1697 | slugshoot() | |
1698 | else | |
1699 | sshoot() | |
1700 | end | |
1701 | else | |
1702 | smek() | |
1703 | end | |
1704 | end | |
1705 | end) | |
1706 | ||
1707 | local sprintt = 0 | |
1708 | Mouse.KeyDown:connect(function(k) | |
1709 | k = k:lower() | |
1710 | if k=='m' then | |
1711 | if mus.IsPlaying == true then | |
1712 | mus:Stop() | |
1713 | elseif mus.IsPaused == true then | |
1714 | mus:Play() | |
1715 | end | |
1716 | end | |
1717 | if attack == false then | |
1718 | if k == 'z' then | |
1719 | if CurrentWep == "Shotgun" and slugged == false then | |
1720 | slugload() | |
1721 | elseif CurrentWep == "CQC" then | |
1722 | slam() | |
1723 | end | |
1724 | elseif k == 'f' then | |
1725 | smek() | |
1726 | elseif k == 'x' then | |
1727 | xhold = true | |
1728 | if CurrentWep == "CQC" then | |
1729 | thesurou() | |
1730 | end | |
1731 | elseif k == 'c' then | |
1732 | chold = true | |
1733 | if CurrentWep == "CQC" then | |
1734 | headrip() | |
1735 | end | |
1736 | elseif k == 'v' then | |
1737 | stomp() | |
1738 | elseif k == 't' then | |
1739 | if CurrentWep ~= "Pistol" then | |
1740 | equippist() | |
1741 | else | |
1742 | unequip() | |
1743 | end | |
1744 | elseif k == 'y' then | |
1745 | if CurrentWep ~= "Shotgun" then | |
1746 | equipshot() | |
1747 | else | |
1748 | unequip() | |
1749 | end | |
1750 | end | |
1751 | end | |
1752 | end) | |
1753 | ||
1754 | Mouse.KeyUp:connect(function(k) | |
1755 | if k == 'x' then | |
1756 | xhold = false | |
1757 | elseif k == 'c' then | |
1758 | chold = false | |
1759 | end | |
1760 | end) | |
1761 | ||
1762 | coroutine.wrap(function() | |
1763 | game:GetService("RunService").RenderStepped:connect(function() | |
1764 | for i,v in pairs(chara:GetDescendants()) do | |
1765 | if v:IsA("BasePart") and v.Parent.Name ~= "FakeHeadM" and v.Name ~= "Head" and v.Parent:IsA("Accessory") == false then | |
1766 | v.LocalTransparencyModifier = 0 | |
1767 | end | |
1768 | end | |
1769 | end) | |
1770 | end)() | |
1771 | ||
1772 | coroutine.wrap(function() | |
1773 | while 1 do | |
1774 | swait() | |
1775 | if doe <= 360 then | |
1776 | doe = doe + 2 | |
1777 | else | |
1778 | doe = 0 | |
1779 | end | |
1780 | end | |
1781 | end)() | |
1782 | while true do | |
1783 | swait() | |
1784 | while true do | |
1785 | swait() | |
1786 | Head.Transparency = 1 | |
1787 | if Head:FindFirstChild("face") then | |
1788 | Head:FindFirstChild("face").Transparency = 1 | |
1789 | end | |
1790 | Humanoid.MaxHealth = 1000 | |
1791 | if Humanoid.Health < 1000 then | |
1792 | Humanoid.Health = Humanoid.Health + 1 | |
1793 | end | |
1794 | if chara:FindFirstChild("mus")==nil then | |
1795 | mus = Instance.new("Sound",chara) | |
1796 | mus.Name = "mus" | |
1797 | mus.SoundId = "rbxassetid://142653441"--"rbxassetid://335204822" | |
1798 | mus.Looped = true | |
1799 | mus.Volume = 1 | |
1800 | mus:Play() | |
1801 | end | |
1802 | if sprintt >= 1 then | |
1803 | sprintt = sprintt - 1 | |
1804 | end | |
1805 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1806 | velocity = RootPart.Velocity.y | |
1807 | sine = sine + change | |
1808 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 12, chara) | |
1809 | if RootPart.Velocity.y > 1 and hit == nil then | |
1810 | Anim = "Jump" | |
1811 | if attack == false then | |
1812 | PlayAnimationFromTable({ | |
1813 | CFrame.new(0, 0.0294559821, -0.246550545, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
1814 | CFrame.new(0, 4.29474068, 0.563813269, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
1815 | CFrame.new(3.55814481, -0.469561696, -5.11224357e-07, 0.939692616, 0.342020273, -4.69496833e-08, -0.342020273, 0.939692736, 5.36441803e-07, 2.38418579e-07, -5.06639481e-07, 1), | |
1816 | CFrame.new(-3.56861424, -0.512341022, -1.44051228e-06, 0.939692616, -0.342020273, 4.69496833e-08, 0.342020273, 0.939692736, 5.36441803e-07, -2.38418579e-07, -5.06639481e-07, 1), | |
1817 | CFrame.new(1.50001526, -3.80000091, -1.39999759, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
1818 | CFrame.new(-1.50001621, -5.99999809, 1.13248825e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
1819 | }, .1, false) | |
1820 | end | |
1821 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1822 | Anim = "Fall" | |
1823 | if attack == false then | |
1824 | PlayAnimationFromTable({ | |
1825 | CFrame.new(-1.05621432e-07, -2.434778869, -0.0625008196, 1.00000024, 4.33864784e-08, -9.66617677e-07, 6.05497235e-07, 0.939693511, -0.342021585, 3.16162158e-07, 0.34202069, 0.939693451), | |
1826 | CFrame.new(1.90734863e-06, 4.4037199, -0.67802453, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686), | |
1827 | CFrame.new(4.85359192, 1.0866574, -1.10285725e-06, 0.866025507, -0.49999994, -1.54857389e-07, 0.5, 0.866025507, -1.1920929e-07, 1.78813934e-07, 2.98023224e-08, 1), | |
1828 | CFrame.new(-4.92668247, 0.72687763, 4.47010007e-06, 0.939692616, 0.342020273, 4.69496833e-08, -0.342020273, 0.939692736, -5.36441803e-07, -2.38418579e-07, 5.06639481e-07, 1), | |
1829 | CFrame.new(1.50001335, -3.80000305, -1.39999592, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1), | |
1830 | CFrame.new(-1.50002098, -6.00000477, 1.72853458e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1), | |
1831 | }, .1, false) | |
1832 | end | |
1833 | elseif Torsovelocity < 1 and hit ~= nil then | |
1834 | Anim = "Idle" | |
1835 | if attack == false then | |
1836 | change = 1 | |
1837 | if CurrentWep == "CQC" then | |
1838 | PlayAnimationFromTable({ | |
1839 | CFrame.new(0, -2, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.1 * math.cos((sine)/10), 0), | |
1840 | CFrame.new(0.147721067, 4.44785833, -0.255860269, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617), | |
1841 | CFrame.new(4.80713892, 0.709604442, -2.81296843e-06, 0.939692855, -0.342019916, 2.08616257e-07, 0.342019856, 0.939692736, 1.5155652e-07, -2.08616257e-07, -8.94069672e-08, 1.00000024), | |
1842 | CFrame.new(-4.50001621, 0.190193266, -0.9294222, 1.00000024, 0, -2.98023224e-08, 0, 0.86602515, -0.500000358, 0, 0.500000417, 0.866025329), | |
1843 | CFrame.new(1.50001502, -5.99999952, 5.36441803e-07, 0.766044557, 0, -0.642787695, 0, 1, 0, 0.642787695, 0, 0.766044557) * CFrame.new(0,-.1 * math.cos((sine)/10), 0), | |
1844 | CFrame.new(-1.50001943, -5.99999952, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.1 * math.cos((sine)/10), 0), | |
1845 | }, .3, false) | |
1846 | elseif CurrentWep == "Shotgun" then | |
1847 | PlayAnimationFromTable({ | |
1848 | CFrame.new(0, -2, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987) * CFrame.new(0,.1 * math.cos((sine)/10), 0), | |
1849 | CFrame.new(-0.547520339, 4.48267984, -0.316110164, 0.499998987, -0.29619813, 0.813798308, 0, 0.939692736, 0.342019886, -0.866025984, -0.171009615, 0.469845414), | |
1850 | CFrame.new(3.21991515, 0.397024989, -1.54293764, 0.344303846, 0.926736116, 0.150382981, -0.030152997, 0.17100893, -0.984807968, -0.938374043, 0.334538639, 0.0868228972), | |
1851 | CFrame.new(-3.26355648, -1.19176984, -1.47300911, 0.0174857043, 0.276001155, 0.960998297, 0.995382905, -0.0955301225, 0.00932515692, 0.0943780318, 0.956398189, -0.276397288), | |
1852 | CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464) * CFrame.new(0,-.1 * math.cos((sine)/10), 0), | |
1853 | CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884) * CFrame.new(0,-.1 * math.cos((sine)/10), 0), | |
1854 | }, .3, false) | |
1855 | elseif CurrentWep == "Pistol" then | |
1856 | PlayAnimationFromTable({ | |
1857 | CFrame.new(0, -2.03907442, 0.0466268957, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0,.1 * math.cos((sine)/10), 0), | |
1858 | CFrame.new(0, 4.27439117, -0.749502182, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686), | |
1859 | CFrame.new(4.50001526, 0.888218164, -1.46819997, 1, 0, 0, 0, 0.342019796, -0.939692855, 0, 0.939692855, 0.342019796), | |
1860 | CFrame.new(-3.79128027, -0.462018341, -0.549682617, 0.939692497, -0.336824238, -0.0593918264, 0.321393669, 0.928998291, -0.183489919, 0.11697875, 0.153335959, 0.981225848), | |
1861 | CFrame.new(1.50001526, -5.90884781, 0.64188838, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0,-.1 * math.cos((sine)/10), 0), | |
1862 | CFrame.new(-1.50001526, -5.90884781, 0.64188838, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0,-.1 * math.cos((sine)/10), 0), | |
1863 | }, .3, false) | |
1864 | end | |
1865 | end | |
1866 | elseif Torsovelocity > 2 and hit ~= nil then | |
1867 | Anim = "Walk" | |
1868 | if attack == false then | |
1869 | Humanoid.WalkSpeed = 8 | |
1870 | Humanoid.JumpPower = 70 | |
1871 | if CurrentWep == "CQC" then | |
1872 | PlayAnimationFromTable({ | |
1873 | CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, math.rad(0 + -5 * math.cos((sine) / 10)), 0), | |
1874 | CFrame.new(0, 4.41427088, -0.820159078, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438) * CFrame.Angles(0, math.rad(0 + 5 * math.cos((sine) / 10)), 0), | |
1875 | CFrame.new(4.50001478, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0- 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
1876 | CFrame.new(-4.50001478, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0+ 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
1877 | CFrame.new(1.50001502, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0+ 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
1878 | CFrame.new(-1.50001502, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0- 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
1879 | }, .3, false) | |
1880 | elseif CurrentWep == "Shotgun" then | |
1881 | PlayAnimationFromTable({ | |
1882 | CFrame.new(0, -2, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0), | |
1883 | CFrame.new(-0.547520339, 4.48267984, -0.316110164, 0.499998987, -0.29619813, 0.813798308, 0, 0.939692736, 0.342019886, -0.866025984, -0.171009615, 0.469845414), | |
1884 | CFrame.new(3.21991515, 0.397024989, -1.54293764, 0.344303846, 0.926736116, 0.150382981, -0.030152997, 0.17100893, -0.984807968, -0.938374043, 0.334538639, 0.0868228972), | |
1885 | CFrame.new(-3.26355648, -1.19176984, -1.47300911, 0.0174857043, 0.276001155, 0.960998297, 0.995382905, -0.0955301225, 0.00932515692, 0.0943780318, 0.956398189, -0.276397288), | |
1886 | CFrame.new(1.76242733, -6, -0.252659202, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987) * CFrame.new(0, 0, 0+ 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
1887 | CFrame.new(-1.16602993, -6, 0.0196474195, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987) * CFrame.new(0, 0, 0- 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
1888 | }, .3, false) | |
1889 | elseif CurrentWep == "Pistol" then | |
1890 | PlayAnimationFromTable({ | |
1891 | CFrame.new(0, -2.03907442, 0.0466268957, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0), | |
1892 | CFrame.new(0, 4.27439117, -0.749502182, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686), | |
1893 | CFrame.new(4.50001526, 0.888218164, -1.46819997, 1, 0, 0, 0, 0.342019796, -0.939692855, 0, 0.939692855, 0.342019796), | |
1894 | CFrame.new(-3.79128027, -0.462018341, -0.549682617, 0.939692497, -0.336824238, -0.0593918264, 0.321393669, 0.928998291, -0.183489919, 0.11697875, 0.153335959, 0.981225848), | |
1895 | CFrame.new(1.50001526, -5.90884781, 0.64188838, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0+ 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
1896 | CFrame.new(-1.50001526, -5.90884781, 0.64188838, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0- 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
1897 | }, .3, false) | |
1898 | end | |
1899 | end | |
1900 | end | |
1901 | end | |
1902 | end |