SHOW:
|
|
- or go back to the newest paste.
1 | - | --FRUIT-- |
1 | + | |
2 | - | --Converted with ttyyuu12345's model to script plugin v4 |
2 | + | --//xdielivex's universal loader\\-- |
3 | - | function sandbox(var,func) |
3 | + | |
4 | - | local env = getfenv(func) |
4 | + | |
5 | - | local newenv = setmetatable({},{ |
5 | + | |
6 | local Player,game,owner = owner,game | |
7 | - | if k=="script" then |
7 | + | |
8 | - | return var |
8 | + | |
9 | - | else |
9 | + | |
10 | - | return env[k] |
10 | + | |
11 | ||
12 | --RemoteEvent for communicating | |
13 | local Event = Instance.new("RemoteEvent") | |
14 | - | setfenv(func,newenv) |
14 | + | |
15 | - | return func |
15 | + | |
16 | --Fake event to make stuff like Mouse.KeyDown work | |
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 | local function FakeService(t,RealService) | |
108 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
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 | },"Players"), | |
120 | UserInputService = FakeService(UIS,"UserInputService"), | |
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 | ||
126 | - | local C = A:GetChildren() |
126 | + | |
127 | - | for i=1, #C do |
127 | + | |
128 | - | Get(C[i]) |
128 | + | |
129 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
130 | end, | |
131 | UnbindFromRenderStep = function(self,name) | |
132 | self._btrs[name]:Disconnect() | |
133 | - | function Finale() |
133 | + | |
134 | - | currentwelds = {} |
134 | + | |
135 | - | Get(script.Parent) |
135 | + | |
136 | setmetatable(g,{ | |
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 | Player = owner | |
149 | - | if not stop then |
149 | + | |
150 | - | c[j]:Destroy() |
150 | + | |
151 | Backpack = Player.Backpack | |
152 | Character = Player.Character | |
153 | Humanoid = Character.Humanoid | |
154 | Mouse = Player:GetMouse() | |
155 | RootPart = Character["HumanoidRootPart"] | |
156 | Torso = Character["Torso"] | |
157 | Head = Character["Head"] | |
158 | - | script.Parent.Equipped:connect(Finale) |
158 | + | |
159 | - | script.Parent.Unequipped:connect(Finale) |
159 | + | |
160 | - | Finale() |
160 | + | |
161 | LeftLeg = Character["Left Leg"] | |
162 | - | LocalScript11.Name = "EatScript" |
162 | + | |
163 | - | LocalScript11.Parent = Tool0 |
163 | + | |
164 | - | table.insert(cors,sandbox(LocalScript11,function() |
164 | + | |
165 | LeftShoulder = Torso["Left Shoulder"] | |
166 | RightHip = Torso["Right Hip"] | |
167 | - | local tool = script.Parent |
167 | + | |
168 | - | local player = owner |
168 | + | |
169 | removeuseless = game:GetService("Debris") | |
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 | RightArm = Character["Right Arm"] | |
193 | LeftArm = Character["Left Arm"] | |
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 | + | |
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 | local Orin = "http://www.roblox.com/asset/?id=1065951398" | |
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 | -------------------------------- | |
212 | - | tool:Destroy() |
212 | + | |
213 | -------------------------------- | |
214 | local naeeym2 = Instance.new("BillboardGui",char) | |
215 | naeeym2.AlwaysOnTop = true | |
216 | naeeym2.Size = UDim2.new(5,35,2,35) | |
217 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
218 | naeeym2.Adornee = hed | |
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 | + | |
225 | tecks2.Text = "" | |
226 | tecks2.Font = "Fantasy" | |
227 | tecks2.TextSize = 30 | |
228 | - | table.insert(cors,sandbox(LocalScript13,function() |
228 | + | |
229 | - | COOLDOWN = 1 |
229 | + | |
230 | tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color | |
231 | - | MAX_VELOCITY = 475 |
231 | + | |
232 | - | MIN_VELOCITY = 400 |
232 | + | |
233 | textfag = tecks2 | |
234 | - | AUTOFIRE = false |
234 | + | |
235 | tecks2.Text = "script by xdielivex" | |
236 | - | SPREAD = 2 |
236 | + | |
237 | - | ORIGIN_SPREAD = 0 |
237 | + | |
238 | - | LOCK_FORWARD = false |
238 | + | |
239 | while textfag ~= nil do | |
240 | - | ANTI_GRAVITY = 1 |
240 | + | |
241 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
242 | - | FIRE_SOUND = "http://www.roblox.com/asset/?id=93011731" |
242 | + | |
243 | end | |
244 | - | DESPAWN_TIME = 1 |
244 | + | |
245 | ------------------------------------------------------- | |
246 | wait(0.2) | |
247 | - | wait(1) |
247 | + | |
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 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
261 | - | while script:FindFirstChild("Mesh") == nil do wait() end |
261 | + | |
262 | - | script.Mesh:clone().Parent = missile |
262 | + | |
263 | local maincolor = BrickColor.new("Plum") | |
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 | ------------------------------------------------------- | |
268 | - | scriptName = "ArrowScript" |
268 | + | |
269 | - | while script:FindFirstChild(scriptName) == nil do wait() end |
269 | + | |
270 | - | script:FindFirstChild(scriptName):clone().Parent = missile |
270 | + | |
271 | attack = false | |
272 | - | ------------------------------ |
272 | + | |
273 | Rad = math.rad | |
274 | IT = Instance.new | |
275 | - | Tool = script.Parent |
275 | + | |
276 | - | player = owner |
276 | + | |
277 | - | while player.Character == nil do wait() end |
277 | + | |
278 | - | char = player.Character |
278 | + | |
279 | Asin = math.asin | |
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 | ------------------------------------------------------- | |
289 | ArtificialHB = Instance.new("BindableEvent", script) | |
290 | ArtificialHB.Name = "Heartbeat" | |
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 | tossremainder = false | |
297 | - | choosehand = 1 |
297 | + | |
298 | - | arm = char:FindFirstChild("Left Arm") |
298 | + | |
299 | lastframe = tick() | |
300 | - | if arm == nil then return end |
300 | + | |
301 | - | hidePart(arm) |
301 | + | |
302 | ||
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 | else | |
310 | - | v = char:FindFirstChild("Torso").CFrame.lookVector |
310 | + | |
311 | - | end |
311 | + | |
312 | end | |
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 | tf = tf - frame * math.floor(tf / frame) | |
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 | ------------------------------------------------------- | |
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 | function swait(num) | |
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 | end | |
337 | - | shot.Parent = game.Workspace |
337 | + | |
338 | - | game.Debris:AddItem(shot, DESPAWN_TIME) |
338 | + | |
339 | - | shot:FindFirstChild(scriptName).Disabled = false |
339 | + | |
340 | end | |
341 | function clerp(a, b, t) | |
342 | local qa = { | |
343 | - | enabled = true |
343 | + | |
344 | - | gatlingmode = false |
344 | + | |
345 | local qb = { | |
346 | - | function onButtonUp() |
346 | + | |
347 | - | shooting = false |
347 | + | |
348 | local ax, ay, az = a.x, a.y, a.z | |
349 | local bx, by, bz = b.x, b.y, b.z | |
350 | - | function onDeselect() |
350 | + | |
351 | - | stopped = true |
351 | + | |
352 | end | |
353 | function QuaternionFromCFrame(cf) | |
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 | if m22 > (i == 0 and m00 or m11) then | |
366 | i = 2 | |
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 | local recip = 0.5 / s | |
379 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
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 wx, wy, wz = w * xs, w * ys, w * 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 | local startInterp, finishInterp | |
397 | - | wait(COOLDOWN) |
397 | + | |
398 | - | if not AUTOFIRE then |
398 | + | |
399 | - | shooting = false |
399 | + | |
400 | local invSinTheta = 1 / Sin(theta) | |
401 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
402 | - | if AUTOFIRE then |
402 | + | |
403 | - | wait(COOLDOWN) |
403 | + | |
404 | startInterp = 1 - t | |
405 | - | if mouse then |
405 | + | |
406 | - | mouse.Icon = "rbxasset://textures\\GunCursor.png" |
406 | + | |
407 | elseif 1 + cosTheta > 1.0E-4 then | |
408 | - | enabled = true |
408 | + | |
409 | local invSinTheta = 1 / Sin(theta) | |
410 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
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 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
420 | end | |
421 | local RbxUtility = LoadLibrary("RbxUtility") | |
422 | local Create = RbxUtility.Create | |
423 | ||
424 | - | script.Parent.Selected:connect(onSelected) |
424 | + | |
425 | - | script.Parent.Deselected:connect(onDeselected) |
425 | + | |
426 | ------------------------------------------------------- | |
427 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
428 | if hit.Parent == nil then | |
429 | return | |
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 | return | |
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 | Parent = h, | |
455 | } | |
456 | game:GetService("Debris"):AddItem(c, .5) | |
457 | - | Script16.Name = "ArrowScript" |
457 | + | |
458 | - | Script16.Parent = LocalScript13 |
458 | + | |
459 | - | table.insert(cors,sandbox(Script16,function() |
459 | + | |
460 | - | arrow = script.Parent |
460 | + | |
461 | local blocked = false | |
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 | block.Value = block.Value - 1 | |
468 | - | if arrow:FindFirstChild("creator") == nil then |
468 | + | |
469 | - | arrow:WaitForChild("creator") |
469 | + | |
470 | end | |
471 | end | |
472 | - | damage = 25 |
472 | + | |
473 | - | if arrow.Transparency ~= 0 then |
473 | + | |
474 | - | damage = 25 |
474 | + | |
475 | else | |
476 | h.Health = h.Health - (Damage / 2) | |
477 | - | local tag = arrow:FindFirstChild("creator") |
477 | + | |
478 | - | local ourguy = tag.Value.Character:FindFirstChild("Humanoid") |
478 | + | |
479 | if Type == "Knockdown" then | |
480 | local hum = hit.Parent.Humanoid | |
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 | Parent = hit, | |
498 | } | |
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 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
505 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
506 | - | elseif hit.Anchored == true and hit.CanCollide == true then |
506 | + | |
507 | - | arrow:Destroy() |
507 | + | |
508 | vp.Parent = hit.Parent.Torso | |
509 | end | |
510 | game:GetService("Debris"):AddItem(vp, .5) | |
511 | elseif Type == "Up" then | |
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 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
519 | elseif Type == "DarkUp" then | |
520 | coroutine.resume(coroutine.create(function() | |
521 | - | arrow.Touched:connect(onTouched) |
521 | + | |
522 | swait() | |
523 | Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
524 | - | if arrow:FindFirstChild("FiredSound") then |
524 | + | |
525 | - | arrow:FindFirstChild("FiredSound"):Play() |
525 | + | |
526 | local bodyVelocity = Create("BodyVelocity"){ | |
527 | velocity = Vector3.new(0, 20, 0), | |
528 | - | wait(10) |
528 | + | |
529 | - | arrow:Destroy() |
529 | + | |
530 | Parent = hit, | |
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 | D = 100, | |
537 | - | enabled = true |
537 | + | |
538 | position = hit.Parent.Torso.Position, | |
539 | - | function Talk(msg) |
539 | + | |
540 | - | game:GetService("Chat"):Chat(player.Character.Head, msg, Enum.ChatColor.Blue) |
540 | + | |
541 | game:GetService("Debris"):AddItem(bp, 1) | |
542 | elseif Type == "Freeze" then | |
543 | - | function onButton1Down(mouse) |
543 | + | |
544 | - | if not enabled then |
544 | + | |
545 | D = 1000, | |
546 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
547 | position = hit.Parent.Torso.Position, | |
548 | - | local player = owner |
548 | + | |
549 | - | if player == nil then return end |
549 | + | |
550 | local BodGy = Create("BodyGyro") { | |
551 | - | enabled = false |
551 | + | |
552 | - | RightShoulder = me.Character.Torso["Right Shoulder"] |
552 | + | |
553 | - | LeftShoulder = me.Character.Torso["Left Shoulder"] |
553 | + | |
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 | game:GetService("Debris"):AddItem(BodPos, 3) | |
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 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
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 | game.Debris:AddItem(EffectPart, (Time)) | |
609 | EffectPart.Parent = game:GetService("Workspace") | |
610 | delay(0, function() | |
611 | local Frames = (Time / Rate) | |
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 | if EffectPart and EffectPart.Parent then | |
619 | - | wait(20) |
619 | + | |
620 | - | enabled = true |
620 | + | |
621 | end) | |
622 | end | |
623 | ------------------------------------------------------- | |
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 hum = c:findFirstChild("Humanoid") | |
630 | if hum ~= nil then | |
631 | local head = c:findFirstChild("Head") | |
632 | - | table.insert(cors,sandbox(LocalScript20,function() |
632 | + | |
633 | - | COOLDOWN = 2 |
633 | + | |
634 | local mag = targ.magnitude | |
635 | - | MAX_VELOCITY = 475 |
635 | + | |
636 | - | MIN_VELOCITY = 400 |
636 | + | |
637 | end | |
638 | - | AUTOFIRE = false |
638 | + | |
639 | end | |
640 | - | SPREAD = 2 |
640 | + | |
641 | - | ORIGIN_SPREAD = 0 |
641 | + | |
642 | - | LOCK_FORWARD = false |
642 | + | |
643 | ||
644 | - | ANTI_GRAVITY = 1 |
644 | + | |
645 | Part = { | |
646 | - | FIRE_SOUND = "http://www.roblox.com/asset/?id=93011731" |
646 | + | |
647 | local Part = Create("Part")({ | |
648 | - | DESPAWN_TIME = 1 |
648 | + | |
649 | Reflectance = Reflectance, | |
650 | Transparency = Transparency, | |
651 | - | wait(1) |
651 | + | |
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 | local Msh = Create(Mesh)({ | |
665 | - | while script:FindFirstChild("Mesh") == nil do wait() end |
665 | + | |
666 | - | script.Mesh:clone().Parent = missile |
666 | + | |
667 | Scale = Scale | |
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 | Msh.MeshId = MeshId | |
672 | - | scriptName = "ArrowScript" |
672 | + | |
673 | - | while script:FindFirstChild(scriptName) == nil do wait() end |
673 | + | |
674 | - | script:FindFirstChild(scriptName):clone().Parent = missile |
674 | + | |
675 | }, | |
676 | - | ------------------------------ |
676 | + | |
677 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
678 | local Msh = Create(Mesh)({ | |
679 | - | Tool = script.Parent |
679 | + | |
680 | - | player = owner |
680 | + | |
681 | - | while player.Character == nil do wait() end |
681 | + | |
682 | - | char = player.Character |
682 | + | |
683 | if Mesh == "SpecialMesh" then | |
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 | local Weld = Create("Weld")({ | |
693 | Parent = Parent, | |
694 | Part0 = Part0, | |
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 | end | |
701 | - | choosehand = 1 |
701 | + | |
702 | - | arm = char:FindFirstChild("Left Arm") |
702 | + | |
703 | Create = function(id, par, vol, pit) | |
704 | - | if arm == nil then return end |
704 | + | |
705 | - | hidePart(arm) |
705 | + | |
706 | Volume = vol, | |
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 | game:GetService("Debris"):AddItem(S, 6) | |
714 | - | v = char:FindFirstChild("Torso").CFrame.lookVector |
714 | + | |
715 | - | end |
715 | + | |
716 | }, | |
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 | LightEmission = LightEmission, | |
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 | Drag = Drag, | |
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 | Lifetime = LifeTime, | |
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 | return fp | |
741 | - | shot.Parent = game.Workspace |
741 | + | |
742 | - | game.Debris:AddItem(shot, DESPAWN_TIME) |
742 | + | |
743 | - | shot:FindFirstChild(scriptName).Disabled = false |
743 | + | |
744 | function RemoveOutlines(part) | |
745 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
746 | end | |
747 | - | enabled = true |
747 | + | |
748 | - | gatlingmode = false |
748 | + | |
749 | formFactor = FormFactor, | |
750 | - | function onButtonUp() |
750 | + | |
751 | - | shooting = false |
751 | + | |
752 | Transparency = Transparency, | |
753 | CanCollide = false, | |
754 | - | function onDeselect() |
754 | + | |
755 | - | stopped = true |
755 | + | |
756 | Name = Name, | |
757 | Size = Size, | |
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 | if Mesh == "SpecialMesh" then | |
770 | Msh.MeshType = MeshType | |
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 | return Weld | |
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 | --End Effect Function-- | |
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 | game:GetService("Debris"):AddItem(NSound, 50) | |
801 | - | wait(COOLDOWN) |
801 | + | |
802 | - | if not AUTOFIRE then |
802 | + | |
803 | - | shooting = false |
803 | + | |
804 | function CameraEnshaking(Length, Intensity) | |
805 | coroutine.resume(coroutine.create(function() | |
806 | - | if AUTOFIRE then |
806 | + | |
807 | - | wait(COOLDOWN) |
807 | + | |
808 | for i = 0, Length, 0.1 do | |
809 | - | if mouse then |
809 | + | |
810 | - | mouse.Icon = "rbxasset://textures\\GunCursor.png" |
810 | + | |
811 | rotM = rotM - 5.0E-4 * Intensity / Length | |
812 | - | enabled = true |
812 | + | |
813 | 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) | |
814 | end | |
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 | hum.WalkSpeed = 20 | |
824 | hum.JumpPower = 60 | |
825 | ---------------------------------------------------------------------------------- | |
826 | local AddInstance = function(Object, ...) | |
827 | local Obj = Instance.new(Object) | |
828 | - | script.Parent.Selected:connect(onSelected) |
828 | + | |
829 | - | script.Parent.Deselected:connect(onDeselected) |
829 | + | |
830 | end | |
831 | return Obj | |
832 | end | |
833 | ---------------------------------------------------- | |
834 | ||
835 | ||
836 | local Reaper = AddInstance("Part",{ | |
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 | }) | |
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 | ------------------------------------------------------- | |
861 | IT = Instance.new | |
862 | CF = CFrame.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 | BRICKC = BrickColor.new | |
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 | ASIN = math.asin | |
874 | - | if arrow:FindFirstChild("creator") == nil then |
874 | + | |
875 | - | arrow:WaitForChild("creator") |
875 | + | |
876 | FLOOR = math.floor | |
877 | ||
878 | - | damage = 40 |
878 | + | |
879 | - | if arrow.Transparency ~= 0 then |
879 | + | |
880 | - | damage = 40 |
880 | + | |
881 | label.Size = UD2(1, 0, 1, 0) | |
882 | label.Position = UD2(0, 0, 0, 0) | |
883 | - | local tag = arrow:FindFirstChild("creator") |
883 | + | |
884 | - | local ourguy = tag.Value.Character:FindFirstChild("Humanoid") |
884 | + | |
885 | label.TextTransparency = TRANSPARENCY | |
886 | label.FontSize = TEXTFONTSIZE | |
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 | Bill.StudsOffset = Vector3.new(0,3,0) | |
904 | Bill.Adornee = Character.Head | |
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 | Hehe.Font = "Bodoni" | |
911 | Hehe.TextSize = 40 | |
912 | - | elseif hit.Anchored == true and hit.CanCollide == true then |
912 | + | |
913 | - | arrow:Destroy() |
913 | + | |
914 | coroutine.resume(coroutine.create(function() | |
915 | while Hehe ~= nil do | |
916 | swait() | |
917 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
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 | Hehe.Text = string.sub(text,1,i) | |
926 | end | |
927 | - | arrow.Touched:connect(onTouched) |
927 | + | |
928 | for i = 0, 1, .025 do | |
929 | swait() | |
930 | - | if arrow:FindFirstChild("FiredSound") then |
930 | + | |
931 | - | arrow:FindFirstChild("FiredSound"):Play() |
931 | + | |
932 | Hehe.TextTransparency = i | |
933 | end | |
934 | - | wait(10) |
934 | + | |
935 | - | arrow:Destroy() |
935 | + | |
936 | chat() | |
937 | - | Script23.Disabled = true |
937 | + | |
938 | - | Script24.Name = "DevilFruitAttributes" |
938 | + | |
939 | - | Script24.Parent = LocalScript11 |
939 | + | |
940 | - | table.insert(cors,sandbox(Script24,function() |
940 | + | |
941 | end | |
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 | BottomSurface = "Smooth", | |
953 | - | -- Logia |
953 | + | |
954 | - | local charparts = character:GetChildren() |
954 | + | |
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 | + | |
960 | - | local stop = true |
960 | + | |
961 | - | if hit ~= nil then |
961 | + | |
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 | bWeld.Part0 = char.Head | |
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 | normal = true | |
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 | + | |
994 | - | mesh.Scale = Vector3.new(3, 3, 3) |
994 | + | |
995 | - | mesh.Parent = bodyeffect |
995 | + | |
996 | local shirt = Instance.new("Shirt",char) | |
997 | - | local sound = Instance.new("Sound") |
997 | + | |
998 | - | sound.SoundId = "http://www.roblox.com/asset/?id=31759626" |
998 | + | |
999 | - | sound.Volume = 0.3 |
999 | + | |
1000 | - | sound.Pitch = math.random(9, 11)/10 |
1000 | + | |
1001 | - | sound.Parent = bodyeffect |
1001 | + | |
1002 | bdycolors.LeftArmColor3 = whitecolor | |
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 | for i,v in pairs(char:GetChildren()) do | |
1008 | - | bodyeffect.Parent = charpart.Parent |
1008 | + | |
1009 | v:Destroy() | |
1010 | - | sound:Play() |
1010 | + | |
1011 | end | |
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 | BC.RightArmColor = BrickColor.new("Flame yellowish orange") | |
1018 | - | debris:AddItem(bodyeffect, 1.5) |
1018 | + | |
1019 | - | end) |
1019 | + | |
1020 | --music time-- | |
1021 | ||
1022 | print("Made by xdielivex.") | |
1023 | ||
1024 | print("xdielivex's sound loader") | |
1025 | ||
1026 | - | StringValue25.Name = "DevilFruitType" |
1026 | + | print("play (ID) [Changes song]") |
1027 | - | StringValue25.Parent = Tool0 |
1027 | + | |
1028 | - | StringValue25.Value = "Rubber" |
1028 | + | print("pitch (#) [normal pitch is '10'][THIS IS FIXED AAAAAAAAAAAAAAAAAA, Sound.Pitch was Depreciated and never knew, hence why it never worked]") |
1029 | - | Part26.Name = "Leafs" |
1029 | + | |
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 | + | local Player = owner |
1033 | - | Part26.Position = Vector3.new(48.6795959, 1.326491, 19.1532822) |
1033 | + | |
1034 | - | Part26.Rotation = Vector3.new(-90, -90, 0) |
1034 | + | local Character = Player.Character |
1035 | - | Part26.Color = Color3.new(1, 0.34902, 0.34902) |
1035 | + | |
1036 | - | Part26.Size = Vector3.new(0.410000086, 0.329999983, 0.200000048) |
1036 | + | local H = Character["Head"] |
1037 | - | Part26.Anchored = true |
1037 | + | |
1038 | - | Part26.BrickColor = BrickColor.new("Persimmon") |
1038 | + | local multiplier = 4 |
1039 | - | Part26.Material = Enum.Material.SmoothPlastic |
1039 | + | |
1040 | - | Part26.brickColor = BrickColor.new("Persimmon") |
1040 | + | local ltdb = false |
1041 | - | Part26.FormFactor = Enum.FormFactor.Custom |
1041 | + | |
1042 | - | Part26.formFactor = Enum.FormFactor.Custom |
1042 | + | local Cloud = Instance.new('Part',Character) |
1043 | - | SpecialMesh27.Parent = Part26 |
1043 | + | |
1044 | - | SpecialMesh27.Scale = Vector3.new(1, 0.200000003, 0.200000003) |
1044 | + | Cloud.Size = Vector3.new(1,1,1) |
1045 | - | SpecialMesh27.MeshType = Enum.MeshType.Cylinder |
1045 | + | |
1046 | - | Part28.Name = "Leafs" |
1046 | + | Cloud.Anchored = true |
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 | + | Cloud.CanCollide = false |
1049 | - | Part28.Orientation = Vector3.new(0, -90, -180) |
1049 | + | |
1050 | - | Part28.Position = Vector3.new(48.6795998, 1.51648796, 19.1482849) |
1050 | + | Cloud.Transparency = 0 |
1051 | - | Part28.Rotation = Vector3.new(180, -90, 0) |
1051 | + | |
1052 | - | Part28.Color = Color3.new(0.411765, 0.25098, 0.156863) |
1052 | + | |
1053 | - | Part28.Size = Vector3.new(0.640000045, 0.329999983, 0.200000048) |
1053 | + | |
1054 | - | Part28.Anchored = true |
1054 | + | local CloudMesh = Instance.new('SpecialMesh',Cloud) |
1055 | - | Part28.BrickColor = BrickColor.new("Reddish brown") |
1055 | + | |
1056 | - | Part28.Material = Enum.Material.SmoothPlastic |
1056 | + | CloudMesh.Scale = Vector3.new(5,1,5) |
1057 | - | Part28.brickColor = BrickColor.new("Reddish brown") |
1057 | + | |
1058 | - | Part28.FormFactor = Enum.FormFactor.Custom |
1058 | + | CloudMesh.MeshId = "http://www.roblox.com/asset/?id=0" |
1059 | - | Part28.formFactor = Enum.FormFactor.Custom |
1059 | + | |
1060 | - | SpecialMesh29.Parent = Part28 |
1060 | + | CloudMesh.Offset = Vector3.new(0,1,0) |
1061 | - | SpecialMesh29.Scale = Vector3.new(1, 0.200000003, 0.200000003) |
1061 | + | |
1062 | - | SpecialMesh29.MeshType = Enum.MeshType.Cylinder |
1062 | + | |
1063 | - | Part30.Name = "Leafs" |
1063 | + | local loudness = 0 |
1064 | - | Part30.Parent = Tool0 |
1064 | + | |
1065 | - | Part30.CFrame = CFrame.new(48.6795998, 1.543787, 18.7326698, -1.14498107e-07, -1.83335942e-08, -1, 0.258818775, -0.965925932, -1.1264305e-08, -0.965925932, -0.258818686, -3.08291419e-08) |
1065 | + | |
1066 | - | Part30.Orientation = Vector3.new(0, -90, 165) |
1066 | + | |
1067 | - | Part30.Position = Vector3.new(48.6795998, 1.543787, 18.7326698) |
1067 | + | local S = Instance.new('Sound',Cloud) |
1068 | - | Part30.Rotation = Vector3.new(-165, -90, 0) |
1068 | + | |
1069 | - | Part30.Color = Color3.new(0.411765, 0.25098, 0.156863) |
1069 | + | S.SoundId = "rbxassetid://0" |
1070 | - | Part30.Size = Vector3.new(0.200000077, 0.329999983, 0.200000048) |
1070 | + | |
1071 | - | Part30.Anchored = true |
1071 | + | S.Looped = true |
1072 | - | Part30.BrickColor = BrickColor.new("Reddish brown") |
1072 | + | |
1073 | - | Part30.Material = Enum.Material.SmoothPlastic |
1073 | + | S.Volume = 8 |
1074 | - | Part30.brickColor = BrickColor.new("Reddish brown") |
1074 | + | |
1075 | - | Part30.FormFactor = Enum.FormFactor.Custom |
1075 | + | S.PlaybackSpeed = 1 |
1076 | - | Part30.formFactor = Enum.FormFactor.Custom |
1076 | + | |
1077 | - | SpecialMesh31.Parent = Part30 |
1077 | + | S.MaxDistance = 100 |
1078 | - | SpecialMesh31.Scale = Vector3.new(1, 0.200000003, 0.200000003) |
1078 | + | |
1079 | - | SpecialMesh31.MeshType = Enum.MeshType.Cylinder |
1079 | + | S:Play() |
1080 | - | for i,v in pairs(mas:GetChildren()) do |
1080 | + | |
1081 | - | v.Parent = workspace |
1081 | + | |
1082 | - | pcall(function() v:MakeJoints() end) |
1082 | + | local Volume = 5 |
1083 | ||
1084 | - | for i,v in pairs(cors) do |
1084 | + | |
1085 | - | spawn(function() |
1085 | + | |
1086 | - | pcall(v) |
1086 | + | local Rain = Instance.new('ParticleEmitter',Cloud) |
1087 | ||
1088 | Rain.Color = ColorSequence.new(Color3.new(1,1,1),Color3.fromRGB(175,255,255)) | |
1089 | ||
1090 | Rain.Size = NumberSequence.new(.5) | |
1091 | - | --//Budha-Budha no mi\\-- |
1091 | + | |
1092 | Rain.Texture = "http://www.roblox.com/asset/?id=241876428" | |
1093 | ||
1094 | Rain.Transparency = NumberSequence.new(0,.6) | |
1095 | ||
1096 | Rain.Acceleration = Vector3.new(0,-150,0) | |
1097 | ||
1098 | Rain.Lifetime = NumberRange.new(5,10) | |
1099 | ||
1100 | Rain.Rate = 100 | |
1101 | ||
1102 | ||
1103 | ||
1104 | local Shade = Instance.new('PointLight',Cloud) | |
1105 | ||
1106 | Shade.Range = 10 | |
1107 | ||
1108 | Shade.Color = Color3.fromRGB(50,50,50) | |
1109 | ||
1110 | Shade.Enabled = true | |
1111 | ||
1112 | Shade.Shadows = true | |
1113 | ||
1114 | ||
1115 | ||
1116 | local rad = math.rad | |
1117 | ||
1118 | local sin = math.sin | |
1119 | ||
1120 | local tan = math.tan | |
1121 | ||
1122 | local cos = math.cos | |
1123 | ||
1124 | Player.Chatted:connect(function(m) | |
1125 | ||
1126 | if m:match("play%s%d+") then | |
1127 | ||
1128 | S:Stop() | |
1129 | ||
1130 | S.SoundId = "rbxassetid://"..m:match("play%s(%d+)") | |
1131 | ||
1132 | S:Play() | |
1133 | ||
1134 | elseif m:match("volume%s%d+") then | |
1135 | ||
1136 | S.Volume = m:match("volume%s(%d+)") | |
1137 | ||
1138 | Volume = m:match("volume%s(%d+)") | |
1139 | ||
1140 | elseif m:match("pitch%s%d+") then | |
1141 | ||
1142 | S.PlaybackSpeed = m:match("pitch%s(%d+)")/10 | |
1143 | ||
1144 | elseif m:match("snow") then | |
1145 | ||
1146 | Rain.Texture = "http://www.roblox.com/asset/?id=605668174" | |
1147 | ||
1148 | Rain.Acceleration = Vector3.new(0,-10,0) | |
1149 | ||
1150 | Rain.Lifetime = NumberRange.new(15,20) | |
1151 | ||
1152 | Rain.Size = NumberSequence.new(.2) | |
1153 | ||
1154 | elseif m:match("rain") then | |
1155 | ||
1156 | Rain.Texture = "http://www.roblox.com/asset/?id=241876428" | |
1157 | ||
1158 | Rain.Acceleration = Vector3.new(0,-150,0) | |
1159 | ||
1160 | Rain.Lifetime = NumberRange.new(5,10) | |
1161 | ||
1162 | Rain.Size = NumberSequence.new(.5) | |
1163 | ||
1164 | elseif m:match("rate%s%d+") then | |
1165 | ||
1166 | multiplier = m:match("rate%s(%d+)") | |
1167 | ||
1168 | elseif m:match("rr") then | |
1169 | ||
1170 | print(Rain.Rate) | |
1171 | ||
1172 | elseif m:match("pbs") then | |
1173 | ||
1174 | print(S.PlaybackSpeed) | |
1175 | ||
1176 | elseif m:match("rot") then | |
1177 | ||
1178 | print(Cloud.Rotation) | |
1179 | ||
1180 | end | |
1181 | end) | |
1182 | ||
1183 | ||
1184 | ||
1185 | function Weld(x,y) | |
1186 | ||
1187 | local w = Instance.new("Weld") | |
1188 | ||
1189 | w.Part0 = x | |
1190 | ||
1191 | w.Part1 = y | |
1192 | ||
1193 | w.Name = tostring(y.Name).."_Weld" | |
1194 | ||
1195 | w.Parent = x | |
1196 | ||
1197 | return w | |
1198 | ||
1199 | end | |
1200 | ||
1201 | ||
1202 | ||
1203 | function Clerp(start,destination,increment) | |
1204 | ||
1205 | local function slerp(a,b,c)return (1-c)*a+(c*b)end | |
1206 | ||
1207 | local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()} | |
1208 | ||
1209 | local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()} | |
1210 | ||
1211 | for i,v in pairs(c1)do c1[i] = slerp(v,c2[i],increment)end | |
1212 | ||
1213 | return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6]) | |
1214 | ||
1215 | end | |
1216 | ||
1217 | ||
1218 | ||
1219 | DrawLightning = function(Start,End,Times,Offset,Color,Thickness) | |
1220 | ||
1221 | if Start.y>End.y then | |
1222 | ||
1223 | local magz = (Start - End).magnitude | |
1224 | ||
1225 | local curpos = Start | |
1226 | ||
1227 | local trz = {-Offset,Offset} | |
1228 | ||
1229 | for i=1,Times do | |
1230 | ||
1231 | local li = Instance.new("Part",workspace) | |
1232 | ||
1233 | li.TopSurface =10 | |
1234 | ||
1235 | li.BottomSurface = 10 | |
1236 | ||
1237 | li.Anchored = true | |
1238 | ||
1239 | li.Transparency = 0 | |
1240 | ||
1241 | li.BrickColor = Color | |
1242 | ||
1243 | li.formFactor = "Custom" | |
1244 | ||
1245 | li.CanCollide = false | |
1246 | ||
1247 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
1248 | ||
1249 | local lt=Instance.new("SpotLight",li) | |
1250 | ||
1251 | lt.Range=16 | |
1252 | ||
1253 | lt.Brightness=5 | |
1254 | ||
1255 | lt.Shadows=true | |
1256 | ||
1257 | lt.Angle=45 | |
1258 | ||
1259 | lt.Face="Top" | |
1260 | ||
1261 | lt.Color=li.BrickColor.Color | |
1262 | ||
1263 | local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
1264 | ||
1265 | local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz | |
1266 | ||
1267 | if Times == i then | |
1268 | ||
1269 | local magz2 = (curpos - End).magnitude | |
1270 | ||
1271 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
1272 | ||
1273 | li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2) | |
1274 | ||
1275 | else | |
1276 | ||
1277 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
1278 | ||
1279 | end | |
1280 | ||
1281 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,5 do wait() li.Transparency = li.Transparency+.2 end li:Destroy() end) | |
1282 | ||
1283 | end | |
1284 | ||
1285 | for i,x in pairs(workspace:GetChildren()) do if x:IsA'Model' and x:findFirstChild('Head') and x~=Character and x.Name~="Zuu_Roku" then | |
1286 | ||
1287 | for a,v in pairs(x:GetChildren()) do if v:IsA'Humanoid' then if (x.Head.CFrame.p-End).magnitude<10 then x:BreakJoints() end end end end end | |
1288 | ||
1289 | end | |
1290 | ||
1291 | end | |
1292 | ||
1293 | ||
1294 | ||
1295 | Mouse.Button1Down:connect(function() | |
1296 | ||
1297 | if ltdb==false then | |
1298 | ||
1299 | ltdb=true | |
1300 | ||
1301 | DrawLightning(Cloud.CFrame.p,Mouse.Hit.p,5,.5,BrickColor.new("New Yeller"),.2) | |
1302 | ||
1303 | wait() | |
1304 | ||
1305 | ltdb=false | |
1306 | ||
1307 | end | |
1308 | ||
1309 | end) | |
1310 | ||
1311 | local Spinny = 0 | |
1312 | ||
1313 | local NoU = 0 | |
1314 | ||
1315 | while true do | |
1316 | ||
1317 | Rain.Rate = (S.PlaybackLoudness + 1) * multiplier/5 | |
1318 | ||
1319 | game:GetService('RunService').RenderStepped:wait() | |
1320 | ||
1321 | local HP = H.CFrame.p | |
1322 | ||
1323 | local sizer = S.PlaybackLoudness/55 + 5 | |
1324 | ||
1325 | Cloud.Size = Vector3.new(sizer,1,sizer) | |
1326 | ||
1327 | Shade.Range = sizer | |
1328 | ||
1329 | CloudMesh.Scale = Vector3.new(sizer,5,sizer) | |
1330 | ||
1331 | Cloud.CFrame = Clerp(Cloud.CFrame, CFrame.new(HP + Vector3.new(0,4,0))*CFrame.Angles(0,rad(90),0), .1) | |
1332 | ||
1333 | Cloud.BrickColor = BrickColor.new(Color3.fromRGB(255 - S.PlaybackLoudness/2, 255-S.PlaybackLoudness/2, 255-S.PlaybackLoudness/2)) | |
1334 | end |