SHOW:
|
|
- or go back to the newest paste.
1 | - | --FRUIT-- |
1 | + | |
2 | - | --Converted with ttyyuu12345's model to script plugin v4 |
2 | + | |
3 | - | function sandbox(var,func) |
3 | + | |
4 | - | local env = getfenv(func) |
4 | + | |
5 | - | local newenv = setmetatable({},{ |
5 | + | |
6 | script.Parent = rp.Character | |
7 | - | if k=="script" then |
7 | + | |
8 | - | return var |
8 | + | |
9 | - | else |
9 | + | |
10 | - | return env[k] |
10 | + | |
11 | ||
12 | --Fake event to make stuff like Mouse.KeyDown work | |
13 | local function fakeEvent() | |
14 | - | setfenv(func,newenv) |
14 | + | |
15 | - | return func |
15 | + | |
16 | return t | |
17 | - | cors = {} |
17 | + | |
18 | - | mas = Instance.new("Model",game:GetService("Lighting")) |
18 | + | |
19 | - | Tool0 = Instance.new("Tool") |
19 | + | |
20 | - | Part1 = Instance.new("Part") |
20 | + | |
21 | - | Decal2 = Instance.new("Decal") |
21 | + | |
22 | - | Decal3 = Instance.new("Decal") |
22 | + | |
23 | - | Decal4 = Instance.new("Decal") |
23 | + | |
24 | - | Decal5 = Instance.new("Decal") |
24 | + | |
25 | - | Decal6 = Instance.new("Decal") |
25 | + | |
26 | - | Decal7 = Instance.new("Decal") |
26 | + | |
27 | - | SpecialMesh8 = Instance.new("SpecialMesh") |
27 | + | |
28 | - | Sound9 = Instance.new("Sound") |
28 | + | |
29 | - | LocalScript10 = Instance.new("LocalScript") |
29 | + | |
30 | - | LocalScript11 = Instance.new("LocalScript") |
30 | + | |
31 | - | HopperBin12 = Instance.new("HopperBin") |
31 | + | |
32 | - | LocalScript13 = Instance.new("LocalScript") |
32 | + | |
33 | - | BlockMesh14 = Instance.new("BlockMesh") |
33 | + | |
34 | - | Script15 = Instance.new("Script") |
34 | + | |
35 | - | Script16 = Instance.new("Script") |
35 | + | |
36 | - | HopperBin17 = Instance.new("HopperBin") |
36 | + | |
37 | - | LocalScript18 = Instance.new("LocalScript") |
37 | + | |
38 | - | HopperBin19 = Instance.new("HopperBin") |
38 | + | |
39 | - | LocalScript20 = Instance.new("LocalScript") |
39 | + | |
40 | - | BlockMesh21 = Instance.new("BlockMesh") |
40 | + | |
41 | - | Script22 = Instance.new("Script") |
41 | + | |
42 | - | Script23 = Instance.new("Script") |
42 | + | |
43 | - | Script24 = Instance.new("Script") |
43 | + | |
44 | - | StringValue25 = Instance.new("StringValue") |
44 | + | |
45 | - | Part26 = Instance.new("Part") |
45 | + | |
46 | - | SpecialMesh27 = Instance.new("SpecialMesh") |
46 | + | |
47 | - | Part28 = Instance.new("Part") |
47 | + | |
48 | - | SpecialMesh29 = Instance.new("SpecialMesh") |
48 | + | |
49 | - | Part30 = Instance.new("Part") |
49 | + | |
50 | - | SpecialMesh31 = Instance.new("SpecialMesh") |
50 | + | |
51 | - | Tool0.Name = "(Click to eat) Gomu Gomu no mi" |
51 | + | |
52 | - | Tool0.Parent = mas |
52 | + | |
53 | - | Tool0.Grip = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
53 | + | |
54 | - | Tool0.GripForward = Vector3.new(1, -0, -0) |
54 | + | |
55 | - | Tool0.GripRight = Vector3.new(0, 0, 1) |
55 | + | |
56 | - | Part1.Name = "Handle" |
56 | + | |
57 | - | Part1.Parent = Tool0 |
57 | + | |
58 | - | Part1.CFrame = CFrame.new(48.749485, 0.503547013, 19.1430969, -0.999999523, -0.000978620723, 1.05401614e-05, -0.000978537253, 0.999980748, 0.00612961594, -1.66846348e-05, 0.0061296029, -0.999981225) |
58 | + | |
59 | - | Part1.Orientation = Vector3.new(-0.349999994, 180, -0.0599999987) |
59 | + | |
60 | - | Part1.Position = Vector3.new(48.749485, 0.503547013, 19.1430969) |
60 | + | |
61 | - | Part1.Rotation = Vector3.new(-179.649994, 0, 179.940002) |
61 | + | |
62 | - | Part1.Color = Color3.new(0.972549, 0.85098, 0.427451) |
62 | + | |
63 | - | Part1.Size = Vector3.new(1, 1, 1) |
63 | + | |
64 | - | Part1.BottomSurface = Enum.SurfaceType.Smooth |
64 | + | |
65 | - | Part1.BrickColor = BrickColor.new("Daisy orange") |
65 | + | |
66 | - | Part1.Material = Enum.Material.SmoothPlastic |
66 | + | |
67 | - | Part1.TopSurface = Enum.SurfaceType.Smooth |
67 | + | |
68 | - | Part1.brickColor = BrickColor.new("Daisy orange") |
68 | + | |
69 | - | Part1.FormFactor = Enum.FormFactor.Symmetric |
69 | + | |
70 | - | Part1.formFactor = Enum.FormFactor.Symmetric |
70 | + | |
71 | - | Decal2.Parent = Part1 |
71 | + | |
72 | - | Decal2.Texture = "rbxassetid://114369508" |
72 | + | |
73 | - | Decal2.Transparency = 0.5 |
73 | + | |
74 | - | Decal3.Parent = Part1 |
74 | + | |
75 | - | Decal3.Texture = "rbxassetid://114369508" |
75 | + | |
76 | - | Decal3.Transparency = 0.5 |
76 | + | |
77 | - | Decal3.Face = Enum.NormalId.Left |
77 | + | |
78 | - | Decal4.Parent = Part1 |
78 | + | |
79 | - | Decal4.Texture = "rbxassetid://114369508" |
79 | + | |
80 | - | Decal4.Transparency = 0.5 |
80 | + | |
81 | - | Decal4.Face = Enum.NormalId.Back |
81 | + | |
82 | - | Decal5.Parent = Part1 |
82 | + | |
83 | - | Decal5.Texture = "rbxassetid://114369508" |
83 | + | |
84 | - | Decal5.Transparency = 0.5 |
84 | + | |
85 | - | Decal5.Face = Enum.NormalId.Right |
85 | + | |
86 | - | Decal6.Parent = Part1 |
86 | + | |
87 | - | Decal6.Texture = "rbxassetid://114369508" |
87 | + | |
88 | - | Decal6.Transparency = 0.5 |
88 | + | |
89 | - | Decal6.Face = Enum.NormalId.Top |
89 | + | |
90 | - | Decal7.Parent = Part1 |
90 | + | |
91 | - | Decal7.Texture = "rbxassetid://114369508" |
91 | + | |
92 | - | Decal7.Transparency = 0.5 |
92 | + | |
93 | - | Decal7.Face = Enum.NormalId.Bottom |
93 | + | |
94 | - | SpecialMesh8.Parent = Part1 |
94 | + | |
95 | - | SpecialMesh8.Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995) |
95 | + | |
96 | - | SpecialMesh8.MeshType = Enum.MeshType.Sphere |
96 | + | |
97 | - | Sound9.Name = "Eat" |
97 | + | |
98 | - | Sound9.Parent = Part1 |
98 | + | |
99 | - | Sound9.Looped = true |
99 | + | |
100 | - | Sound9.Pitch = 1.1000000238419 |
100 | + | |
101 | - | Sound9.PlaybackSpeed = 1.1000000238419 |
101 | + | |
102 | - | Sound9.SoundId = "rbxassetid://161190414" |
102 | + | |
103 | - | LocalScript10.Name = "InstaWeld" |
103 | + | |
104 | - | LocalScript10.Parent = Tool0 |
104 | + | |
105 | - | table.insert(cors,sandbox(LocalScript10,function() |
105 | + | |
106 | - | local currentwelds = {} |
106 | + | |
107 | ||
108 | - | function Weld(x,y) |
108 | + | |
109 | - | local W = Instance.new("Weld") |
109 | + | |
110 | - | W.Part0 = x |
110 | + | |
111 | - | W.Part1 = y |
111 | + | |
112 | - | local CJ = CFrame.new(x.Position) |
112 | + | |
113 | - | local C0 = x.CFrame:inverse()*CJ |
113 | + | |
114 | - | local C1 = y.CFrame:inverse()*CJ |
114 | + | |
115 | - | W.C0 = C0 |
115 | + | |
116 | - | W.C1 = C1 |
116 | + | |
117 | - | W.Parent = x |
117 | + | |
118 | - | currentwelds[#currentwelds+1] = W |
118 | + | |
119 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
120 | g.service = g.GetService | |
121 | - | function Get(A) |
121 | + | |
122 | - | if A:IsA("BasePart") then |
122 | + | |
123 | - | Weld(script.Parent.Handle, A) |
123 | + | |
124 | - | A.Anchored = false |
124 | + | |
125 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
126 | - | local C = A:GetChildren() |
126 | + | |
127 | - | for i=1, #C do |
127 | + | |
128 | - | Get(C[i]) |
128 | + | |
129 | end, | |
130 | },"RunService") | |
131 | ||
132 | setmetatable(g,{ | |
133 | - | function Finale() |
133 | + | |
134 | - | currentwelds = {} |
134 | + | |
135 | - | Get(script.Parent) |
135 | + | |
136 | end, | |
137 | - | wait(0.1) |
137 | + | |
138 | - | local toolparts = script.Parent:GetChildren() |
138 | + | |
139 | - | for h = 1, #toolparts do |
139 | + | |
140 | - | local c = toolparts[h]:GetChildren() |
140 | + | |
141 | - | for j = 1, #c do |
141 | + | |
142 | - | if c[j]:IsA("Weld") then |
142 | + | |
143 | - | local stop = false |
143 | + | |
144 | - | for k = 1, #currentwelds do |
144 | + | |
145 | - | if c[j] == currentwelds[k] then |
145 | + | |
146 | - | stop = true |
146 | + | |
147 | - | end |
147 | + | |
148 | Character = Player.Character | |
149 | - | if not stop then |
149 | + | |
150 | - | c[j]:Destroy() |
150 | + | |
151 | RootPart = Character["HumanoidRootPart"] | |
152 | Torso = Character["Torso"] | |
153 | Head = Character["Head"] | |
154 | RightArm = Character["Right Arm"] | |
155 | LeftArm = Character["Left Arm"] | |
156 | RightLeg = Character["Right Leg"] | |
157 | LeftLeg = Character["Left Leg"] | |
158 | - | script.Parent.Equipped:connect(Finale) |
158 | + | |
159 | - | script.Parent.Unequipped:connect(Finale) |
159 | + | |
160 | - | Finale() |
160 | + | |
161 | LeftShoulder = Torso["Left Shoulder"] | |
162 | - | LocalScript11.Name = "EatScript" |
162 | + | |
163 | - | LocalScript11.Parent = Tool0 |
163 | + | |
164 | - | table.insert(cors,sandbox(LocalScript11,function() |
164 | + | |
165 | removeuseless = game:GetService("Debris") | |
166 | laff = Instance.new("Sound",Head) | |
167 | - | local tool = script.Parent |
167 | + | |
168 | - | local player = owner |
168 | + | |
169 | Humanoid = Character.Humanoid | |
170 | - | defaultholdingpos = tool.GripPos |
170 | + | |
171 | - | eaten = false |
171 | + | |
172 | - | equipped = false |
172 | + | |
173 | - | cancelled = false |
173 | + | |
174 | - | tool.Equipped:connect(function() |
174 | + | |
175 | - | equipped = true |
175 | + | |
176 | - | script.Parent.Activated:connect(function() |
176 | + | |
177 | - | if not eaten then |
177 | + | |
178 | - | cancelled = false |
178 | + | |
179 | - | tool.GripPos = Vector3.new(0.8, -0.5, 1.5) |
179 | + | |
180 | - | tool.Handle.Eat:Play() |
180 | + | |
181 | - | wait(1.4) |
181 | + | |
182 | - | tool.Handle.Eat:Stop() |
182 | + | |
183 | - | if equipped and not cancelled then |
183 | + | |
184 | - | local currentsavedgear = player:FindFirstChild("StarterGear"):GetChildren() |
184 | + | |
185 | - | local hasdf = false |
185 | + | |
186 | - | if #currentsavedgear > 0 then |
186 | + | |
187 | - | for i = 1, #currentsavedgear do |
187 | + | |
188 | - | if currentsavedgear[i]:FindFirstChild("DevilFruitAbility") then |
188 | + | |
189 | - | currentsavedgear[i]:Destroy() |
189 | + | |
190 | - | hasdf = true |
190 | + | |
191 | - | end |
191 | + | |
192 | RootJoint = RootPart["RootJoint"] | |
193 | Neck = Torso["Neck"] | |
194 | - | if not hasdf then |
194 | + | |
195 | - | local dftools = script:GetChildren() |
195 | + | |
196 | - | for i = 1, #dftools do |
196 | + | |
197 | - | local df_tag = Instance.new("StringValue") |
197 | + | |
198 | - | df_tag.Name = "DevilFruitAbility" |
198 | + | |
199 | - | df_tag.Value = tool.DevilFruitType.Value |
199 | + | local Orin = "http://www.roblox.com/asset/?id=0" |
200 | - | df_tag.Parent = dftools[i] |
200 | + | |
201 | - | dftools[i]:clone().Parent = player:FindFirstChild("Backpack") |
201 | + | |
202 | - | dftools[i]:clone().Parent = player:FindFirstChild("StarterGear") |
202 | + | |
203 | w.Part0 = a | |
204 | - | tool:Destroy() |
204 | + | |
205 | - | elseif hasdf then |
205 | + | |
206 | - | if player.Character then |
206 | + | |
207 | - | if player.Character:FindFirstChild("Humanoid") then |
207 | + | |
208 | - | player.Character:BreakJoints() |
208 | + | |
209 | - | player.Character:FindFirstChild("Humanoid").Health = 0 |
209 | + | |
210 | - | end |
210 | + | |
211 | naeeym2.Size = UDim2.new(5,35,2,35) | |
212 | - | tool:Destroy() |
212 | + | |
213 | naeeym2.Adornee = hed | |
214 | naeeym2.Name = "Name" | |
215 | ||
216 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
217 | tecks2.BackgroundTransparency = 1 | |
218 | tecks2.TextScaled = true | |
219 | - | tool.Unequipped:connect(function() |
219 | + | |
220 | - | tool.Handle.Eat:Stop() |
220 | + | |
221 | - | cancelled = true |
221 | + | |
222 | - | equipped = false |
222 | + | |
223 | - | if not eaten then |
223 | + | |
224 | - | tool.GripPos = defaultholdingpos |
224 | + | tecks2.TextColor3 = BrickColor.new('Royal purple').Color |
225 | tecks2.TextStrokeColor3 = BrickColor.new('Black').Color | |
226 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
227 | tecks2.Parent = naeeym2 | |
228 | - | table.insert(cors,sandbox(LocalScript13,function() |
228 | + | |
229 | - | COOLDOWN = 1 |
229 | + | |
230 | tecks2.Text = "script by xdielivex" | |
231 | - | MAX_VELOCITY = 475 |
231 | + | |
232 | - | MIN_VELOCITY = 400 |
232 | + | |
233 | coroutine.resume(coroutine.create(function() | |
234 | - | AUTOFIRE = false |
234 | + | |
235 | swait() | |
236 | - | SPREAD = 2 |
236 | + | |
237 | - | ORIGIN_SPREAD = 0 |
237 | + | |
238 | - | LOCK_FORWARD = false |
238 | + | |
239 | end)) | |
240 | - | ANTI_GRAVITY = 1 |
240 | + | |
241 | wait(0.2) | |
242 | - | FIRE_SOUND = "http://www.roblox.com/asset/?id=93011731" |
242 | + | |
243 | local char = plr.Character | |
244 | - | DESPAWN_TIME = 1 |
244 | + | |
245 | local hed = char.Head | |
246 | local root = char.HumanoidRootPart | |
247 | local rootj = root.RootJoint | |
248 | - | ------------------------------ |
248 | + | |
249 | - | missile = Instance.new("Part") |
249 | + | |
250 | - | missile.Name = "Gomu" |
250 | + | |
251 | - | missile.Transparency = 0 |
251 | + | |
252 | - | missile.Reflectance = 0 |
252 | + | |
253 | - | missile.CanCollide = false |
253 | + | |
254 | - | missile.Shape = "Block" |
254 | + | |
255 | - | missile.FormFactor = "Custom" |
255 | + | |
256 | - | missile.Size = Vector3.new(2, 2, 2) |
256 | + | |
257 | - | missile.Elasticity = 0 |
257 | + | |
258 | - | missile.TopSurface = 0 |
258 | + | |
259 | - | missile.BottomSurface = 0 |
259 | + | |
260 | ------------------------------------------------------- | |
261 | - | while script:FindFirstChild("Mesh") == nil do wait() end |
261 | + | |
262 | - | script.Mesh:clone().Parent = missile |
262 | + | |
263 | cam = game.Workspace.CurrentCamera | |
264 | - | force = Instance.new("BodyForce") |
264 | + | |
265 | - | force.force = Vector3.new(0,missile:GetMass() * 196.2 * ANTI_GRAVITY) |
265 | + | |
266 | - | force.Parent = missile |
266 | + | |
267 | Euler = CFrame.fromEulerAnglesXYZ | |
268 | - | scriptName = "ArrowScript" |
268 | + | |
269 | - | while script:FindFirstChild(scriptName) == nil do wait() end |
269 | + | |
270 | - | script:FindFirstChild(scriptName):clone().Parent = missile |
270 | + | |
271 | Cos = math.cos | |
272 | - | ------------------------------ |
272 | + | |
273 | Sin = math.sin | |
274 | Asin = math.asin | |
275 | - | Tool = script.Parent |
275 | + | |
276 | - | player = owner |
276 | + | |
277 | - | while player.Character == nil do wait() end |
277 | + | |
278 | - | char = player.Character |
278 | + | |
279 | --End Good Stuff-- | |
280 | - | function hidePart(part) |
280 | + | |
281 | - | if part:FindFirstChild("AttackHide") == nil then |
281 | + | |
282 | - | local hide = Instance.new("SpecialMesh") |
282 | + | |
283 | - | hide.Name = "AttackHide" |
283 | + | |
284 | - | hide.MeshType = "FileMesh" |
284 | + | |
285 | - | hide.Scale = Vector3.new(0, 0, 0) |
285 | + | |
286 | - | hide.Parent = part |
286 | + | |
287 | - | game.Debris:AddItem(hide, DESPAWN_TIME/2) |
287 | + | |
288 | frame = 1 / 60 | |
289 | tf = 0 | |
290 | allowframeloss = false | |
291 | - | shooting = false |
291 | + | |
292 | - | function fire(v) |
292 | + | |
293 | - | if choosehand == 1 then |
293 | + | |
294 | - | choosehand = 2 |
294 | + | |
295 | - | arm = char:FindFirstChild("Right Arm") |
295 | + | |
296 | ||
297 | - | choosehand = 1 |
297 | + | |
298 | - | arm = char:FindFirstChild("Left Arm") |
298 | + | |
299 | tf = tf + s | |
300 | - | if arm == nil then return end |
300 | + | |
301 | - | hidePart(arm) |
301 | + | |
302 | script.Heartbeat:Fire() | |
303 | - | if not LOCK_FORWARD then |
303 | + | |
304 | - | v_spreadx = math.random(-SPREAD, SPREAD) |
304 | + | |
305 | - | v_spready = math.random(-SPREAD, SPREAD) |
305 | + | |
306 | - | v_spreadz = math.random(-SPREAD, SPREAD) |
306 | + | |
307 | - | v = v + Vector3.new(v_spreadx, v_spready, v_spreadz) |
307 | + | |
308 | - | v = (v - arm.Position).unit |
308 | + | |
309 | end | |
310 | - | v = char:FindFirstChild("Torso").CFrame.lookVector |
310 | + | |
311 | - | end |
311 | + | |
312 | else | |
313 | - | o_spreadx = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD) |
313 | + | |
314 | - | o_spready = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD) |
314 | + | |
315 | - | o_spreadz = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD) |
315 | + | |
316 | - | local spawnPos = arm.Position + Vector3.new(o_spreadx, o_spready, o_spreadz) |
316 | + | |
317 | - | spawnPos = spawnPos + (v * 1) |
317 | + | |
318 | --End HeartBeat-- | |
319 | - | shot = missile:clone() |
319 | + | |
320 | - | shot.BrickColor = arm.BrickColor |
320 | + | |
321 | - | shot.Velocity = v * math.random(MIN_VELOCITY, MAX_VELOCITY) |
321 | + | |
322 | - | local launch = spawnPos + 2 * v |
322 | + | |
323 | - | shot.CFrame = CFrame.new(launch, launch + v) |
323 | + | |
324 | function swait(num) | |
325 | - | local creator_tag = Instance.new("ObjectValue") |
325 | + | |
326 | - | creator_tag.Value = player |
326 | + | |
327 | - | creator_tag.Name = "creator" |
327 | + | |
328 | - | creator_tag.Parent = shot |
328 | + | |
329 | game:service("RunService").Stepped:wait(0) | |
330 | - | local firesound = Instance.new("Sound") |
330 | + | |
331 | - | firesound.Name = "FiredSound" |
331 | + | |
332 | - | firesound.SoundId = FIRE_SOUND |
332 | + | |
333 | - | firesound.Volume = 1 |
333 | + | |
334 | - | firesound.Pitch = math.random(8, 14)/10 |
334 | + | |
335 | - | firesound.Parent = shot |
335 | + | |
336 | function clerp(a, b, t) | |
337 | - | shot.Parent = game.Workspace |
337 | + | |
338 | - | game.Debris:AddItem(shot, DESPAWN_TIME) |
338 | + | |
339 | - | shot:FindFirstChild(scriptName).Disabled = false |
339 | + | |
340 | local qb = { | |
341 | QuaternionFromCFrame(b) | |
342 | } | |
343 | - | enabled = true |
343 | + | |
344 | - | gatlingmode = false |
344 | + | |
345 | local _t = 1 - t | |
346 | - | function onButtonUp() |
346 | + | |
347 | - | shooting = false |
347 | + | |
348 | function QuaternionFromCFrame(cf) | |
349 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
350 | - | function onDeselect() |
350 | + | |
351 | - | stopped = true |
351 | + | |
352 | local s = math.sqrt(1 + trace) | |
353 | local recip = 0.5 / s | |
354 | - | function gatlingOFF() |
354 | + | |
355 | - | gatlingmode = false -- its not gatling ya know |
355 | + | |
356 | - | COOLDOWN = 2 |
356 | + | |
357 | - | MAX_VELOCITY = 250 |
357 | + | |
358 | - | MIN_VELOCITY = 200 |
358 | + | |
359 | - | AUTOFIRE = false |
359 | + | |
360 | - | SPREAD = 3 |
360 | + | |
361 | - | ORIGIN_SPREAD = 3 |
361 | + | |
362 | - | DESPAWN_TIME = 0.9 |
362 | + | |
363 | - | missile.Transparency = 0.4 |
363 | + | |
364 | - | LOCK_FORWARD = true |
364 | + | |
365 | local recip = 0.5 / s | |
366 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
367 | - | function gatlingON() |
367 | + | |
368 | - | gatlingmode = true -- its one shot |
368 | + | |
369 | - | COOLDOWN = 2 |
369 | + | |
370 | - | MAX_VELOCITY = 475 |
370 | + | |
371 | - | MIN_VELOCITY = 400 |
371 | + | |
372 | - | AUTOFIRE = false |
372 | + | |
373 | - | SPREAD = 2 |
373 | + | |
374 | - | ORIGIN_SPREAD = 0 |
374 | + | |
375 | - | DESPAWN_TIME = 1 |
375 | + | |
376 | - | missile.Transparency = 0 |
376 | + | |
377 | - | LOCK_FORWARD = false |
377 | + | |
378 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
379 | local xs, ys, zs = x + x, y + y, z + z | |
380 | - | function onSelected(mouse) |
380 | + | |
381 | - | gatlingmode = false |
381 | + | |
382 | - | gatlingOFF() |
382 | + | |
383 | - | mouse.Icon = "rbxasset://textures\\GunCursor.png" |
383 | + | |
384 | - | mouse.Button1Down:connect(function() |
384 | + | |
385 | local yz = y * zs | |
386 | - | if not enabled then return end |
386 | + | |
387 | - | mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" |
387 | + | |
388 | - | enabled = false |
388 | + | |
389 | - | shooting = true |
389 | + | |
390 | - | stopped = false |
390 | + | |
391 | - | while shooting do |
391 | + | |
392 | - | hum = char:FindFirstChild("Humanoid") |
392 | + | |
393 | - | if hum == nil then else |
393 | + | |
394 | - | if hum.Health <= 0 then shooting = false end |
394 | + | |
395 | - | fire(mouse.Hit.p) |
395 | + | |
396 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
397 | - | wait(COOLDOWN) |
397 | + | |
398 | - | if not AUTOFIRE then |
398 | + | |
399 | - | shooting = false |
399 | + | |
400 | finishInterp = t | |
401 | end | |
402 | - | if AUTOFIRE then |
402 | + | |
403 | - | wait(COOLDOWN) |
403 | + | |
404 | local invSinTheta = 1 / Sin(theta) | |
405 | - | if mouse then |
405 | + | |
406 | - | mouse.Icon = "rbxasset://textures\\GunCursor.png" |
406 | + | |
407 | else | |
408 | - | enabled = true |
408 | + | |
409 | finishInterp = t | |
410 | end | |
411 | - | mouse.Button1Up:connect(function() onButtonUp() end) |
411 | + | |
412 | - | mouse.KeyDown:connect(function(key2) |
412 | + | |
413 | - | local key=string.byte(key2) |
413 | + | |
414 | - | if key==string.byte("g") then |
414 | + | |
415 | - | if gatlingmode == false then |
415 | + | |
416 | - | gatlingON() |
416 | + | |
417 | - | else |
417 | + | |
418 | - | gatlingOFF() |
418 | + | |
419 | ------------------------------------------------------- | |
420 | --Start Damage Function-- | |
421 | ------------------------------------------------------- | |
422 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
423 | if hit.Parent == nil then | |
424 | - | script.Parent.Selected:connect(onSelected) |
424 | + | |
425 | - | script.Parent.Deselected:connect(onDeselected) |
425 | + | |
426 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
427 | for _, v in pairs(hit.Parent:children()) do | |
428 | if v:IsA("Humanoid") then | |
429 | h = v | |
430 | end | |
431 | - | BlockMesh14.Parent = LocalScript13 |
431 | + | |
432 | - | Script15.Name = "Stretch" |
432 | + | |
433 | - | Script15.Parent = BlockMesh14 |
433 | + | |
434 | - | table.insert(cors,sandbox(Script15,function() |
434 | + | |
435 | - | local missile = script.Parent.Parent |
435 | + | |
436 | - | if missile:IsA("Part") then |
436 | + | |
437 | - | origPos = missile.Position |
437 | + | |
438 | - | m = script.Parent |
438 | + | |
439 | - | for i = 1, 10 do |
439 | + | |
440 | - | script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 0.8 |
440 | + | |
441 | - | dist = (origPos - missile.Position).magnitude |
441 | + | |
442 | - | m.Scale = Vector3.new(0.5, 0.5, dist/2) |
442 | + | |
443 | - | m.Offset = Vector3.new(0.5, 0.5, dist/2) |
443 | + | |
444 | - | wait() |
444 | + | |
445 | end | |
446 | - | wait(0.1) |
446 | + | |
447 | - | script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * -0.6 |
447 | + | |
448 | - | while true do |
448 | + | |
449 | - | script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 1.15 |
449 | + | |
450 | - | dist = (origPos - missile.Position).magnitude |
450 | + | |
451 | - | m.Scale = Vector3.new(0.5, 0.5, dist/2) |
451 | + | |
452 | - | m.Offset = Vector3.new(0.5, 0.5, dist/2) |
452 | + | |
453 | - | wait() |
453 | + | |
454 | end | |
455 | local Damage = math.random(minim, maxim) | |
456 | local blocked = false | |
457 | - | Script16.Name = "ArrowScript" |
457 | + | |
458 | - | Script16.Parent = LocalScript13 |
458 | + | |
459 | - | table.insert(cors,sandbox(Script16,function() |
459 | + | |
460 | - | arrow = script.Parent |
460 | + | |
461 | blocked = true | |
462 | - | local hitsound = Instance.new("Sound") |
462 | + | |
463 | - | hitsound.SoundId = "http://www.roblox.com/asset/?id=137579113" |
463 | + | |
464 | - | hitsound.Volume = 0.3 |
464 | + | |
465 | - | hitsound.Pitch = math.random(11, 17)/10 |
465 | + | |
466 | - | hitsound.Parent = arrow |
466 | + | |
467 | if blocked == false then | |
468 | - | if arrow:FindFirstChild("creator") == nil then |
468 | + | |
469 | - | arrow:WaitForChild("creator") |
469 | + | |
470 | else | |
471 | h.Health = h.Health - (Damage / 2) | |
472 | - | damage = 25 |
472 | + | |
473 | - | if arrow.Transparency ~= 0 then |
473 | + | |
474 | - | damage = 25 |
474 | + | |
475 | local hum = hit.Parent.Humanoid | |
476 | hum.PlatformStand = true | |
477 | - | local tag = arrow:FindFirstChild("creator") |
477 | + | |
478 | - | local ourguy = tag.Value.Character:FindFirstChild("Humanoid") |
478 | + | swait() |
479 | HHumanoid.PlatformStand = false | |
480 | end), hum) | |
481 | - | function onTouched(hit) |
481 | + | |
482 | - | humanoid = nil |
482 | + | |
483 | - | if tag ~= nil and ourguy ~= nil then |
483 | + | |
484 | - | if hit.Parent == nil then return end |
484 | + | |
485 | - | if hit.Parent:findFirstChild("Humanoid") then |
485 | + | |
486 | - | humanoid = hit.Parent:findFirstChild("Humanoid") |
486 | + | |
487 | - | elseif hit.Parent.Parent:findFirstChild("Humanoid") then |
487 | + | |
488 | - | humanoid = hit.Parent.Parent:findFirstChild("Humanoid") |
488 | + | |
489 | - | end |
489 | + | |
490 | - | if humanoid ~= nil then |
490 | + | |
491 | - | if humanoid ~= ourguy then |
491 | + | |
492 | - | stop = false |
492 | + | |
493 | - | local ph = hit.Parent:FindFirstChild("PunchHurt") |
493 | + | |
494 | - | if (ph ~= nil) then |
494 | + | |
495 | - | if ph.Value == false then |
495 | + | |
496 | - | stop = true |
496 | + | |
497 | local vp = Create("BodyVelocity"){ | |
498 | P = 500, | |
499 | - | if stop == false then |
499 | + | |
500 | - | hitsound:Play() |
500 | + | |
501 | - | tagHumanoid(humanoid, vPlayer) |
501 | + | |
502 | - | humanoid:TakeDamage(damage) |
502 | + | |
503 | - | arrow:Destroy() |
503 | + | |
504 | end | |
505 | game:GetService("Debris"):AddItem(vp, .5) | |
506 | - | elseif hit.Anchored == true and hit.CanCollide == true then |
506 | + | |
507 | - | arrow:Destroy() |
507 | + | |
508 | velocity = Vector3.new(0, 20, 0), | |
509 | P = 5000, | |
510 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
511 | Parent = hit, | |
512 | - | function tagHumanoid(humanoid) |
512 | + | |
513 | - | local tag = arrow:findFirstChild("creator") |
513 | + | |
514 | - | if tag ~= nil then |
514 | + | |
515 | - | local new_tag = tag:clone() |
515 | + | |
516 | - | new_tag.Parent = humanoid |
516 | + | |
517 | - | game.Debris:AddItem(new_tag, 1) |
517 | + | |
518 | Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
519 | end | |
520 | end)) | |
521 | - | arrow.Touched:connect(onTouched) |
521 | + | |
522 | velocity = Vector3.new(0, 20, 0), | |
523 | P = 5000, | |
524 | - | if arrow:FindFirstChild("FiredSound") then |
524 | + | |
525 | - | arrow:FindFirstChild("FiredSound"):Play() |
525 | + | |
526 | } | |
527 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
528 | - | wait(10) |
528 | + | |
529 | - | arrow:Destroy() |
529 | + | |
530 | P = 2000, | |
531 | - | Script16.Disabled = true |
531 | + | |
532 | - | table.insert(cors,sandbox(LocalScript18,function() |
532 | + | |
533 | - | bin = script.Parent |
533 | + | |
534 | - | player = script.Parent.Parent.Parent |
534 | + | |
535 | - | me = script.Parent.Parent.Parent |
535 | + | |
536 | game:GetService("Debris"):AddItem(bp, 1) | |
537 | - | enabled = true |
537 | + | |
538 | local BodPos = Create("BodyPosition"){ | |
539 | - | function Talk(msg) |
539 | + | |
540 | - | game:GetService("Chat"):Chat(player.Character.Head, msg, Enum.ChatColor.Blue) |
540 | + | |
541 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
542 | position = hit.Parent.Torso.Position, | |
543 | - | function onButton1Down(mouse) |
543 | + | |
544 | - | if not enabled then |
544 | + | |
545 | local BodGy = Create("BodyGyro") { | |
546 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
547 | P = 20e+003, | |
548 | - | local player = owner |
548 | + | |
549 | - | if player == nil then return end |
549 | + | |
550 | } | |
551 | - | enabled = false |
551 | + | |
552 | - | RightShoulder = me.Character.Torso["Right Shoulder"] |
552 | + | |
553 | - | LeftShoulder = me.Character.Torso["Left Shoulder"] |
553 | + | swait() |
554 | - | Run = game:GetService("RunService") |
554 | + | |
555 | - | for i = 1, 3 do |
555 | + | |
556 | - | LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 1) |
556 | + | |
557 | - | RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -1) |
557 | + | |
558 | - | RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 1.1, 0) |
558 | + | |
559 | - | LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -1.1, 0) |
559 | + | |
560 | - | Run.Stepped:wait(0.005) |
560 | + | |
561 | Parent = hit.Parent, | |
562 | - | ------------------------------------------------------------------------------- |
562 | + | |
563 | - | |
563 | + | |
564 | - | --EDIT HERE-- |
564 | + | |
565 | - | Talk("Gear Second!")-- you can change Gear Second or Gear 2nd |
565 | + | |
566 | - | gg = Instance.new("Part") |
566 | + | |
567 | - | gg.Anchored = true |
567 | + | |
568 | - | gg.Shape = "Ball" --THIS ball will appear when transforming |
568 | + | |
569 | - | gg.TopSurface = "Smooth" |
569 | + | |
570 | - | gg.BottomSurface = "Smooth" |
570 | + | |
571 | - | gg.BrickColor = BrickColor.new("Persimmon")--color of the bode when transforming |
571 | + | |
572 | - | gg.CanCollide = false |
572 | + | |
573 | - | gg.Parent = Workspace |
573 | + | |
574 | - | gg.Size = Vector3.new(6, 6, 6) |
574 | + | |
575 | - | p = Instance.new("PointLight", gg) |
575 | + | |
576 | - | p.Brightness = 10 |
576 | + | |
577 | - | p.Range = 10 |
577 | + | |
578 | - | p.Color = Color3.new(255, 0, 0) |
578 | + | |
579 | - | gg.CFrame = me.Character.Torso.CFrame*CFrame.new(0, 0, 0) |
579 | + | |
580 | - | qq = Instance.new("SpecialMesh") |
580 | + | |
581 | - | qq.Parent = gg |
581 | + | |
582 | - | qq.Scale = Vector3.new(6, 6, 6) |
582 | + | |
583 | - | qq.MeshType = ("Sphere") |
583 | + | |
584 | - | for i = 1,6 do |
584 | + | |
585 | - | qq.Scale = qq.Scale -Vector3.new(1 ,1 ,1) |
585 | + | |
586 | - | wait(0.01) |
586 | + | |
587 | EffectPart.Anchored = true | |
588 | - | gg:remove() |
588 | + | |
589 | - | Hardening = me.Character["Body Colors"] |
589 | + | |
590 | - | Hardening.LeftArmColor = BrickColor.new("Persimmon") --color |
590 | + | |
591 | - | Hardening.RightArmColor = BrickColor.new("Persimmon")--of |
591 | + | |
592 | - | Hardening.RightLegColor = BrickColor.new("Persimmon")--the |
592 | + | |
593 | - | Hardening.LeftLegColor = BrickColor.new("Persimmon")--body |
593 | + | |
594 | - | Hardening.TorsoColor = BrickColor.new("Persimmon")--when |
594 | + | |
595 | - | Hardening. HeadColor = BrickColor.new("Persimmon")--transforming |
595 | + | |
596 | - | j = me.Character.Head |
596 | + | |
597 | - | k = me.Character.Torso |
597 | + | |
598 | - | q = me.Character["Left Arm"] |
598 | + | |
599 | - | w = me.Character["Left Leg"] |
599 | + | |
600 | - | e = me.Character["Right Arm"] |
600 | + | |
601 | - | r = me.Character["Right Leg"] |
601 | + | |
602 | - | |
602 | + | |
603 | - | me.Character.Humanoid.MaxHealth = 500-- 500 - 550 Health of human when transformed |
603 | + | |
604 | - | me.Character.Humanoid.Health = 500----- SAME ONE |
604 | + | |
605 | - | me.Character.Humanoid.WalkSpeed = 0 |
605 | + | |
606 | - | wait(1.5) |
606 | + | |
607 | - | me.Character.Humanoid.WalkSpeed = 20 --edit 17 - 100 it will increase speed |
607 | + | |
608 | wait(Rate) | |
609 | local Percent = (Frame / Frames) | |
610 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
611 | TextLabel.TextTransparency = Percent | |
612 | - | for i = 1, 3 do |
612 | + | |
613 | - | LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 1.1, 0) |
613 | + | |
614 | - | RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -1.1, 0) |
614 | + | |
615 | - | LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -1) |
615 | + | |
616 | - | RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 1) |
616 | + | |
617 | - | Run.Stepped:wait(0.01) |
617 | + | |
618 | ------------------------------------------------------- | |
619 | - | wait(20) |
619 | + | |
620 | - | enabled = true |
620 | + | |
621 | ||
622 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
623 | for _, c in pairs(workspace:children()) do | |
624 | - | enabled = true |
624 | + | |
625 | - | function onS(mouse) |
625 | + | |
626 | - | mouse.Button1Down:connect(function() onButton1Down(mouse) end) |
626 | + | |
627 | - | end |
627 | + | |
628 | - | bin.Selected:connect(onS) |
628 | + | |
629 | local mag = targ.magnitude | |
630 | if magni >= mag and c.Name ~= plr.Name then | |
631 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
632 | - | table.insert(cors,sandbox(LocalScript20,function() |
632 | + | |
633 | - | COOLDOWN = 2 |
633 | + | |
634 | end | |
635 | - | MAX_VELOCITY = 475 |
635 | + | |
636 | - | MIN_VELOCITY = 400 |
636 | + | |
637 | ||
638 | - | AUTOFIRE = false |
638 | + | |
639 | CFuncs = { | |
640 | - | SPREAD = 2 |
640 | + | |
641 | - | ORIGIN_SPREAD = 0 |
641 | + | |
642 | - | LOCK_FORWARD = false |
642 | + | |
643 | Parent = Parent, | |
644 | - | ANTI_GRAVITY = 1 |
644 | + | |
645 | Transparency = Transparency, | |
646 | - | FIRE_SOUND = "http://www.roblox.com/asset/?id=93011731" |
646 | + | |
647 | Locked = true, | |
648 | - | DESPAWN_TIME = 1 |
648 | + | |
649 | Name = Name, | |
650 | Size = Size, | |
651 | Material = Material | |
652 | - | ------------------------------ |
652 | + | |
653 | - | missile = Instance.new("Part") |
653 | + | |
654 | - | missile.Name = "Gomu" |
654 | + | |
655 | - | missile.Transparency = 0 |
655 | + | |
656 | - | missile.Reflectance = 0 |
656 | + | |
657 | - | missile.CanCollide = false |
657 | + | |
658 | - | missile.Shape = "Block" |
658 | + | |
659 | - | missile.FormFactor = "Custom" |
659 | + | |
660 | - | missile.Size = Vector3.new(2, 2, 2) |
660 | + | |
661 | - | missile.Elasticity = 0 |
661 | + | |
662 | - | missile.TopSurface = 0 |
662 | + | |
663 | - | missile.BottomSurface = 0 |
663 | + | |
664 | if Mesh == "SpecialMesh" then | |
665 | - | while script:FindFirstChild("Mesh") == nil do wait() end |
665 | + | |
666 | - | script.Mesh:clone().Parent = missile |
666 | + | |
667 | end | |
668 | - | force = Instance.new("BodyForce") |
668 | + | |
669 | - | force.force = Vector3.new(0,missile:GetMass() * 196.2 * ANTI_GRAVITY) |
669 | + | |
670 | - | force.Parent = missile |
670 | + | |
671 | Mesh = { | |
672 | - | scriptName = "ArrowScript" |
672 | + | |
673 | - | while script:FindFirstChild(scriptName) == nil do wait() end |
673 | + | |
674 | - | script:FindFirstChild(scriptName):clone().Parent = missile |
674 | + | |
675 | Offset = OffSet, | |
676 | - | ------------------------------ |
676 | + | |
677 | }) | |
678 | if Mesh == "SpecialMesh" then | |
679 | - | Tool = script.Parent |
679 | + | |
680 | - | player = owner |
680 | + | |
681 | - | while player.Character == nil do wait() end |
681 | + | |
682 | - | char = player.Character |
682 | + | |
683 | end | |
684 | - | function hidePart(part) |
684 | + | |
685 | - | if part:FindFirstChild("AttackHide") == nil then |
685 | + | |
686 | - | local hide = Instance.new("SpecialMesh") |
686 | + | |
687 | - | hide.Name = "AttackHide" |
687 | + | |
688 | - | hide.MeshType = "FileMesh" |
688 | + | |
689 | - | hide.Scale = Vector3.new(0, 0, 0) |
689 | + | |
690 | - | hide.Parent = part |
690 | + | |
691 | - | game.Debris:AddItem(hide, DESPAWN_TIME/2) |
691 | + | |
692 | C1 = C1 | |
693 | }) | |
694 | return Weld | |
695 | - | shooting = false |
695 | + | |
696 | - | function fire(v) |
696 | + | |
697 | - | if choosehand == 1 then |
697 | + | |
698 | - | choosehand = 2 |
698 | + | |
699 | - | arm = char:FindFirstChild("Right Arm") |
699 | + | |
700 | local S = Create("Sound")({ | |
701 | - | choosehand = 1 |
701 | + | |
702 | - | arm = char:FindFirstChild("Left Arm") |
702 | + | |
703 | SoundId = id, | |
704 | - | if arm == nil then return end |
704 | + | |
705 | - | hidePart(arm) |
705 | + | |
706 | wait() | |
707 | - | if not LOCK_FORWARD then |
707 | + | |
708 | - | v_spreadx = math.random(-SPREAD, SPREAD) |
708 | + | |
709 | - | v_spready = math.random(-SPREAD, SPREAD) |
709 | + | |
710 | - | v_spreadz = math.random(-SPREAD, SPREAD) |
710 | + | |
711 | - | v = v + Vector3.new(v_spreadx, v_spready, v_spreadz) |
711 | + | |
712 | - | v = (v - arm.Position).unit |
712 | + | |
713 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
714 | - | v = char:FindFirstChild("Torso").CFrame.lookVector |
714 | + | |
715 | - | end |
715 | + | |
716 | Color = ColorSequence.new(Color1, Color2), | |
717 | - | o_spreadx = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD) |
717 | + | |
718 | - | o_spready = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD) |
718 | + | |
719 | - | o_spreadz = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD) |
719 | + | |
720 | - | local spawnPos = arm.Position + Vector3.new(o_spreadx, o_spready, o_spreadz) |
720 | + | |
721 | - | spawnPos = spawnPos + (v * 1) |
721 | + | |
722 | Acceleration = Accel, | |
723 | - | shot = missile:clone() |
723 | + | |
724 | - | shot.BrickColor = arm.BrickColor |
724 | + | |
725 | - | shot.Velocity = v * math.random(MIN_VELOCITY, MAX_VELOCITY) |
725 | + | |
726 | - | local launch = spawnPos + 2 * v |
726 | + | |
727 | - | shot.CFrame = CFrame.new(launch, launch + v) |
727 | + | |
728 | Lifetime = LifeTime, | |
729 | - | local creator_tag = Instance.new("ObjectValue") |
729 | + | |
730 | - | creator_tag.Value = player |
730 | + | |
731 | - | creator_tag.Name = "creator" |
731 | + | |
732 | - | creator_tag.Parent = shot |
732 | + | |
733 | VelocitySpread = VelocitySpread | |
734 | - | local firesound = Instance.new("Sound") |
734 | + | |
735 | - | firesound.Name = "FiredSound" |
735 | + | |
736 | - | firesound.SoundId = FIRE_SOUND |
736 | + | |
737 | - | firesound.Volume = 1 |
737 | + | |
738 | - | firesound.Pitch = math.random(8, 14)/10 |
738 | + | |
739 | - | firesound.Parent = shot |
739 | + | |
740 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
741 | - | shot.Parent = game.Workspace |
741 | + | |
742 | - | game.Debris:AddItem(shot, DESPAWN_TIME) |
742 | + | |
743 | - | shot:FindFirstChild(scriptName).Disabled = false |
743 | + | |
744 | formFactor = FormFactor, | |
745 | Parent = Parent, | |
746 | Reflectance = Reflectance, | |
747 | - | enabled = true |
747 | + | |
748 | - | gatlingmode = false |
748 | + | |
749 | Locked = true, | |
750 | - | function onButtonUp() |
750 | + | |
751 | - | shooting = false |
751 | + | |
752 | Size = Size, | |
753 | Material = Material | |
754 | - | function onDeselect() |
754 | + | |
755 | - | stopped = true |
755 | + | |
756 | return Part | |
757 | end | |
758 | - | function gatlingON() |
758 | + | |
759 | - | gatlingmode = true --if gatling mode |
759 | + | |
760 | - | COOLDOWN = 0 |
760 | + | |
761 | - | MAX_VELOCITY = 250 |
761 | + | |
762 | - | MIN_VELOCITY = 200 |
762 | + | |
763 | - | AUTOFIRE = true --it means if you click one time it will repeat |
763 | + | |
764 | - | SPREAD = 3 |
764 | + | |
765 | - | ORIGIN_SPREAD = 3 |
765 | + | |
766 | - | DESPAWN_TIME = 0.9 |
766 | + | |
767 | - | missile.Transparency = 0.4 |
767 | + | |
768 | - | LOCK_FORWARD = true --change it to false if you want to back attack |
768 | + | |
769 | end | |
770 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
771 | - | function gatlingOFF() |
771 | + | |
772 | - | gatlingmode = false -- if one shot mode |
772 | + | |
773 | - | COOLDOWN = 0.4 |
773 | + | |
774 | - | MAX_VELOCITY = 475 |
774 | + | |
775 | - | MIN_VELOCITY = 400 |
775 | + | |
776 | - | AUTOFIRE = true --it means if you click one time it will repeat |
776 | + | |
777 | - | SPREAD = 2 |
777 | + | |
778 | - | ORIGIN_SPREAD = 0 |
778 | + | |
779 | - | DESPAWN_TIME = 1 |
779 | + | |
780 | - | missile.Transparency = 0 |
780 | + | |
781 | - | LOCK_FORWARD = false |
781 | + | |
782 | ||
783 | ------------------------------------------------------- | |
784 | - | function onSelected(mouse) |
784 | + | |
785 | - | gatlingmode = true |
785 | + | |
786 | - | gatlingON() |
786 | + | |
787 | - | mouse.Icon = "rbxasset://textures\\GunCursor.png" |
787 | + | |
788 | - | mouse.Button1Down:connect(function() |
788 | + | |
789 | NSound = IT("Sound", PARENT) | |
790 | - | if not enabled then return end |
790 | + | |
791 | - | mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" |
791 | + | |
792 | - | enabled = false |
792 | + | |
793 | - | shooting = true |
793 | + | |
794 | - | stopped = false |
794 | + | |
795 | - | while shooting do |
795 | + | |
796 | - | hum = char:FindFirstChild("Humanoid") |
796 | + | |
797 | - | if hum == nil then else |
797 | + | |
798 | - | if hum.Health <= 0 then shooting = false end |
798 | + | |
799 | - | fire(mouse.Hit.p) |
799 | + | |
800 | coroutine.resume(coroutine.create(function() | |
801 | - | wait(COOLDOWN) |
801 | + | |
802 | - | if not AUTOFIRE then |
802 | + | |
803 | - | shooting = false |
803 | + | |
804 | swait() | |
805 | intensity = intensity - 0.05 * Intensity / Length | |
806 | - | if AUTOFIRE then |
806 | + | |
807 | - | wait(COOLDOWN) |
807 | + | |
808 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
809 | - | if mouse then |
809 | + | |
810 | - | mouse.Icon = "rbxasset://textures\\GunCursor.png" |
810 | + | |
811 | end)) | |
812 | - | enabled = true |
812 | + | |
813 | ------------------------------------------------------- | |
814 | --End Important Functions-- | |
815 | - | mouse.Button1Up:connect(function() onButtonUp() end) |
815 | + | |
816 | - | mouse.KeyDown:connect(function(key2) |
816 | + | |
817 | - | local key=string.byte(key2) |
817 | + | |
818 | - | if key==string.byte("g") then |
818 | + | |
819 | - | if gatlingmode == false then |
819 | + | |
820 | - | gatlingON() |
820 | + | |
821 | - | else |
821 | + | |
822 | - | gatlingOFF() |
822 | + | |
823 | for i,v in next,(...) do | |
824 | Obj[i] = v | |
825 | end | |
826 | return Obj | |
827 | end | |
828 | - | script.Parent.Selected:connect(onSelected) |
828 | + | |
829 | - | script.Parent.Deselected:connect(onDeselected) |
829 | + | |
830 | ||
831 | local Reaper = AddInstance("Part",{ | |
832 | Parent = hed, | |
833 | CFrame = hed.CFrame, | |
834 | formFactor = "Symmetric", | |
835 | Size = Vector3.new(1, 1, 1), | |
836 | CanCollide = false, | |
837 | - | BlockMesh21.Parent = LocalScript20 |
837 | + | |
838 | - | Script22.Name = "Stretch" |
838 | + | |
839 | - | Script22.Parent = BlockMesh21 |
839 | + | |
840 | - | table.insert(cors,sandbox(Script22,function() |
840 | + | |
841 | - | local missile = script.Parent.Parent |
841 | + | |
842 | - | if missile:IsA("Part") then |
842 | + | |
843 | - | origPos = missile.Position |
843 | + | |
844 | - | m = script.Parent |
844 | + | |
845 | - | for i = 1, 10 do |
845 | + | |
846 | - | script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 0.8 |
846 | + | |
847 | - | dist = (origPos - missile.Position).magnitude |
847 | + | |
848 | - | m.Scale = Vector3.new(0.5, 0.5, dist/2) |
848 | + | |
849 | - | m.Offset = Vector3.new(0.5, 0.5, dist/2) |
849 | + | |
850 | - | wait() |
850 | + | |
851 | Scale = Vector3.new(0.85,0.85,0.85), | |
852 | - | wait(0.1) |
852 | + | |
853 | - | script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * -0.6 |
853 | + | |
854 | - | while true do |
854 | + | |
855 | - | script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 1.15 |
855 | + | |
856 | - | dist = (origPos - missile.Position).magnitude |
856 | + | |
857 | - | m.Scale = Vector3.new(0.5, 0.5, dist/2) |
857 | + | |
858 | - | m.Offset = Vector3.new(0.5, 0.5, dist/2) |
858 | + | |
859 | - | wait() |
859 | + | |
860 | C3 = Color3.new | |
861 | UD2 = UDim2.new | |
862 | BRICKC = BrickColor.new | |
863 | - | Script23.Name = "ArrowScript" |
863 | + | |
864 | - | Script23.Parent = LocalScript20 |
864 | + | |
865 | - | table.insert(cors,sandbox(Script23,function() |
865 | + | |
866 | - | arrow = script.Parent |
866 | + | |
867 | SIN = math.sin | |
868 | - | local hitsound = Instance.new("Sound") |
868 | + | |
869 | - | hitsound.SoundId = "http://www.roblox.com/asset/?id=137579113" |
869 | + | |
870 | - | hitsound.Volume = 0.3 |
870 | + | |
871 | - | hitsound.Pitch = math.random(11, 17)/10 |
871 | + | |
872 | - | hitsound.Parent = arrow |
872 | + | |
873 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
874 | - | if arrow:FindFirstChild("creator") == nil then |
874 | + | |
875 | - | arrow:WaitForChild("creator") |
875 | + | |
876 | label.Size = UD2(1, 0, 1, 0) | |
877 | label.Position = UD2(0, 0, 0, 0) | |
878 | - | damage = 40 |
878 | + | |
879 | - | if arrow.Transparency ~= 0 then |
879 | + | |
880 | - | damage = 40 |
880 | + | |
881 | label.FontSize = TEXTFONTSIZE | |
882 | label.Font = TEXTFONT | |
883 | - | local tag = arrow:FindFirstChild("creator") |
883 | + | |
884 | - | local ourguy = tag.Value.Character:FindFirstChild("Humanoid") |
884 | + | |
885 | label.Text = TEXT | |
886 | label.Name = NAME | |
887 | - | function onTouched(hit) |
887 | + | |
888 | - | humanoid = nil |
888 | + | |
889 | - | if tag ~= nil and ourguy ~= nil then |
889 | + | |
890 | - | if hit.Parent == nil then return end |
890 | + | |
891 | - | if hit.Parent:findFirstChild("Humanoid") then |
891 | + | |
892 | - | humanoid = hit.Parent:findFirstChild("Humanoid") |
892 | + | |
893 | - | elseif hit.Parent.Parent:findFirstChild("Humanoid") then |
893 | + | |
894 | - | humanoid = hit.Parent.Parent:findFirstChild("Humanoid") |
894 | + | |
895 | - | end |
895 | + | |
896 | - | if humanoid ~= nil then |
896 | + | |
897 | - | if humanoid ~= ourguy then |
897 | + | |
898 | - | stop = false |
898 | + | |
899 | - | local ph = hit.Parent:FindFirstChild("PunchHurt") |
899 | + | |
900 | - | if (ph ~= nil) then |
900 | + | |
901 | - | if ph.Value == false then |
901 | + | |
902 | - | stop = true |
902 | + | |
903 | Hehe.BorderSizePixel = 0 | |
904 | Hehe.Text = "" | |
905 | - | if stop == false then |
905 | + | |
906 | - | hitsound:Play() |
906 | + | |
907 | - | tagHumanoid(humanoid, vPlayer) |
907 | + | |
908 | - | humanoid:TakeDamage(damage) |
908 | + | |
909 | - | arrow:Destroy() |
909 | + | |
910 | while Hehe ~= nil do | |
911 | swait() | |
912 | - | elseif hit.Anchored == true and hit.CanCollide == true then |
912 | + | |
913 | - | arrow:Destroy() |
913 | + | |
914 | Hehe.TextColor3 = Color3.new(220, 188, 129) | |
915 | Hehe.TextStrokeColor3 = Color3.new(107, 50, 124) | |
916 | end | |
917 | end)) | |
918 | - | function tagHumanoid(humanoid) |
918 | + | |
919 | - | local tag = arrow:findFirstChild("creator") |
919 | + | |
920 | - | if tag ~= nil then |
920 | + | |
921 | - | local new_tag = tag:clone() |
921 | + | |
922 | - | new_tag.Parent = humanoid |
922 | + | |
923 | - | game.Debris:AddItem(new_tag, 1) |
923 | + | |
924 | swait() | |
925 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
926 | Hehe.TextStrokeTransparency = i | |
927 | - | arrow.Touched:connect(onTouched) |
927 | + | |
928 | end | |
929 | Bill:Destroy() | |
930 | - | if arrow:FindFirstChild("FiredSound") then |
930 | + | |
931 | - | arrow:FindFirstChild("FiredSound"):Play() |
931 | + | |
932 | end | |
933 | ||
934 | - | wait(10) |
934 | + | |
935 | - | arrow:Destroy() |
935 | + | |
936 | end | |
937 | - | Script23.Disabled = true |
937 | + | |
938 | - | Script24.Name = "DevilFruitAttributes" |
938 | + | |
939 | - | Script24.Parent = LocalScript11 |
939 | + | |
940 | - | table.insert(cors,sandbox(Script24,function() |
940 | + | |
941 | local Hair = AddInstance("Part",{ | |
942 | - | if script.Parent then |
942 | + | |
943 | - | if not script.Parent:IsA("Script") or not script.Parent.Name == "StarterGear" then |
943 | + | |
944 | - | local debris = game:GetService("Debris") |
944 | + | |
945 | - | local backpack = script.Parent |
945 | + | |
946 | - | local player = backpack.Parent |
946 | + | |
947 | - | while player.Character == nil do wait() end |
947 | + | |
948 | - | local character = player.Character |
948 | + | |
949 | - | if character then |
949 | + | |
950 | - | while character:FindFirstChild("Humanoid") == nil do wait() end |
950 | + | |
951 | - | local hum = character:FindFirstChild("Humanoid") |
951 | + | |
952 | Parent = Hair, | |
953 | - | -- Logia |
953 | + | |
954 | - | local charparts = character:GetChildren() |
954 | + | C0 = CFrame.new(-0.15, 0.6, -0.1)*CFrame.Angles(0, 0, 0), |
955 | - | for i = 1, #charparts do |
955 | + | |
956 | - | local charpart = charparts[i] |
956 | + | |
957 | - | if charpart:IsA("BasePart") then |
957 | + | |
958 | - | charpart.Touched:connect(function(hit) |
958 | + | |
959 | - | if charpart:FindFirstChild("Hide") then return end |
959 | + | MeshId = "rbxassetid://3928761212", |
960 | - | local stop = true |
960 | + | |
961 | - | if hit ~= nil then |
961 | + | Scale = Vector3.new(0.3, 0.3, 0.3), |
962 | - | if hit.Parent ~= nil then |
962 | + | |
963 | - | if hit:FindFirstChild("creator") or hit.Parent:FindFirstChild("creator") then |
963 | + | |
964 | - | stop = false |
964 | + | |
965 | - | elseif hit.Parent:FindFirstChild("Humanoid") then |
965 | + | |
966 | - | if hit.Parent:FindFirstChild("Humanoid") ~= hum then |
966 | + | |
967 | - | stop = false |
967 | + | |
968 | - | end |
968 | + | |
969 | - | end |
969 | + | |
970 | - | end |
970 | + | |
971 | - | end |
971 | + | |
972 | - | if stop then return end |
972 | + | |
973 | - | local hidemesh = Instance.new("SpecialMesh") |
973 | + | |
974 | - | hidemesh.Name = "Hide" |
974 | + | |
975 | - | hidemesh.MeshType = "FileMesh" |
975 | + | |
976 | - | hidemesh.MeshId = "" |
976 | + | |
977 | - | hidemesh.Scale = Vector3.new(0, 0, 0) |
977 | + | |
978 | - | hidemesh.Parent = charpart |
978 | + | |
979 | - | debris:AddItem(hidemesh, 1.5) |
979 | + | |
980 | bdycolors.HeadColor3 = whitecolor | |
981 | - | local bodyeffect = Instance.new("Part") |
981 | + | |
982 | - | bodyeffect.Name = "BodyEffect" |
982 | + | |
983 | - | bodyeffect.Transparency = 0.3 |
983 | + | |
984 | - | bodyeffect.CanCollide = false |
984 | + | |
985 | - | bodyeffect.FormFactor = "Custom" |
985 | + | |
986 | - | bodyeffect.Size = Vector3.new(0.2, 0.2, 0.2) |
986 | + | |
987 | - | bodyeffect.TopSurface = "Smooth" |
987 | + | |
988 | - | bodyeffect.BottomSurface = "Smooth" |
988 | + | |
989 | - | bodyeffect.CFrame = charpart.CFrame |
989 | + | |
990 | end | |
991 | - | local mesh = Instance.new("SpecialMesh") |
991 | + | |
992 | - | mesh.MeshId = "http://www.roblox.com/asset?id=165709404" |
992 | + | |
993 | - | mesh.TextureId = "http://www.roblox.com/asset?id=165709478" |
993 | + | BC.HeadColor = BrickColor.new("Grey") |
994 | - | mesh.Scale = Vector3.new(3, 3, 3) |
994 | + | BC.LeftArmColor = BrickColor.new("Grey") |
995 | - | mesh.Parent = bodyeffect |
995 | + | BC.LeftLegColor = BrickColor.new("Grey") |
996 | BC.RightArmColor = BrickColor.new("Grey") | |
997 | - | local sound = Instance.new("Sound") |
997 | + | BC.RightLegColor = BrickColor.new("Grey") |
998 | - | sound.SoundId = "http://www.roblox.com/asset/?id=31759626" |
998 | + | BC.TorsoColor = BrickColor.new("Grey") |
999 | - | sound.Volume = 0.3 |
999 | + | |
1000 | - | sound.Pitch = math.random(9, 11)/10 |
1000 | + | |
1001 | - | sound.Parent = bodyeffect |
1001 | + | |
1002 | ||
1003 | - | local light = Instance.new("PointLight") |
1003 | + | |
1004 | - | light.Range = 5 |
1004 | + | |
1005 | - | light.Color = Color3.new(1, 1, 0) |
1005 | + | |
1006 | - | light.Parent = bodyeffect |
1006 | + | |
1007 | ||
1008 | - | bodyeffect.Parent = charpart.Parent |
1008 | + | |
1009 | Press=Press:lower() | |
1010 | - | sound:Play() |
1010 | + | |
1011 | id = 0 | |
1012 | - | local weld = Instance.new("ManualWeld") |
1012 | + | |
1013 | - | weld.Part0 = bodyeffect |
1013 | + | |
1014 | - | weld.Part1 = charpart |
1014 | + | |
1015 | - | weld.C1 = charpart.CFrame:inverse() * bodyeffect.CFrame |
1015 | + | |
1016 | - | weld.Parent = bodyeffect |
1016 | + | |
1017 | mouse.KeyDown:connect(function(Press) | |
1018 | - | debris:AddItem(bodyeffect, 1.5) |
1018 | + | |
1019 | - | end) |
1019 | + | |
1020 | id = 743334292 | |
1021 | theme.SoundId = "rbxassetid://"..id | |
1022 | theme:Play() | |
1023 | end | |
1024 | end) | |
1025 | ||
1026 | - | StringValue25.Name = "DevilFruitType" |
1026 | + | |
1027 | - | StringValue25.Parent = Tool0 |
1027 | + | |
1028 | - | StringValue25.Value = "Rubber" |
1028 | + | |
1029 | - | Part26.Name = "Leafs" |
1029 | + | id = 712235862 |
1030 | - | Part26.Parent = Tool0 |
1030 | + | |
1031 | - | Part26.CFrame = CFrame.new(48.6795959, 1.326491, 19.1532822, -4.4091145e-08, -7.30506144e-08, -1, 1, -4.51691449e-08, -4.36030163e-08, -4.23751771e-08, -1, -7.30506144e-08) |
1031 | + | |
1032 | - | Part26.Orientation = Vector3.new(0, -90, 90) |
1032 | + | |
1033 | - | Part26.Position = Vector3.new(48.6795959, 1.326491, 19.1532822) |
1033 | + | |
1034 | - | Part26.Rotation = Vector3.new(-90, -90, 0) |
1034 | + | |
1035 | - | Part26.Color = Color3.new(1, 0.34902, 0.34902) |
1035 | + | |
1036 | - | Part26.Size = Vector3.new(0.410000086, 0.329999983, 0.200000048) |
1036 | + | |
1037 | - | Part26.Anchored = true |
1037 | + | |
1038 | - | Part26.BrickColor = BrickColor.new("Persimmon") |
1038 | + | |
1039 | - | Part26.Material = Enum.Material.SmoothPlastic |
1039 | + | |
1040 | - | Part26.brickColor = BrickColor.new("Persimmon") |
1040 | + | |
1041 | - | Part26.FormFactor = Enum.FormFactor.Custom |
1041 | + | |
1042 | - | Part26.formFactor = Enum.FormFactor.Custom |
1042 | + | |
1043 | - | SpecialMesh27.Parent = Part26 |
1043 | + | |
1044 | - | SpecialMesh27.Scale = Vector3.new(1, 0.200000003, 0.200000003) |
1044 | + | |
1045 | - | SpecialMesh27.MeshType = Enum.MeshType.Cylinder |
1045 | + | |
1046 | - | Part28.Name = "Leafs" |
1046 | + | |
1047 | - | Part28.Parent = Tool0 |
1047 | + | |
1048 | - | Part28.CFrame = CFrame.new(48.6795998, 1.51648796, 19.1482849, -1.16759111e-07, 4.34269509e-10, -1, -1.52271241e-07, -1, 1.92770244e-11, -1, 1.49477273e-07, -2.93402991e-08) |
1048 | + | id = 1429031002 |
1049 | - | Part28.Orientation = Vector3.new(0, -90, -180) |
1049 | + | |
1050 | - | Part28.Position = Vector3.new(48.6795998, 1.51648796, 19.1482849) |
1050 | + | |
1051 | - | Part28.Rotation = Vector3.new(180, -90, 0) |
1051 | + | |
1052 | - | Part28.Color = Color3.new(0.411765, 0.25098, 0.156863) |
1052 | + | end) |