This repository has been archived by the owner on Jun 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
112591865.rbxmx
executable file
·320 lines (292 loc) · 10 KB
/
112591865.rbxmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
<External>null</External>
<External>nil</External>
<Item class="Tool" referent="RBX0">
<Properties>
<bool name="CanBeDropped">true</bool>
<bool name="Enabled">true</bool>
<CoordinateFrame name="Grip">
<X>0</X>
<Y>0.100000113</Y>
<Z>0.399999946</Z>
<R00>0.999999881</R00>
<R01>8.8817842e-016</R01>
<R02>0</R02>
<R10>8.8817842e-016</R10>
<R11>1</R11>
<R12>0</R12>
<R20>0</R20>
<R21>0</R21>
<R22>0.999999881</R22>
</CoordinateFrame>
<string name="Name">Beach Ball</string>
<Content name="TextureId"><url>http://www.roblox.com/asset/?id=112501760</url></Content>
<string name="ToolTip">Beach Ball</string>
</Properties>
<Item class="NumberValue" referent="RBX1">
<Properties>
<string name="Name">LastUse</string>
<double name="Value">1344965325.2392712</double>
</Properties>
</Item>
<Item class="LocalScript" referent="RBX2">
<Properties>
<bool name="Disabled">false</bool>
<Content name="LinkedSource"><null></null></Content>
<string name="Name">LocalScript</string>
<ProtectedString name="Source">--Made by Stickmasterluke
sp=script.Parent
cooldown=20
StandTime=60*2
floatieness=.618
debris=game:GetService("Debris")
check=true
function waitfor(parent,name)
	while parent:FindFirstChild(name)==nil do
		wait()
	end
	return parent:FindFirstChild(name)
end
lastuse=sp:WaitForChild("LastUse")
handle=sp:WaitForChild("Handle")
handlemesh=handle:WaitForChild("Mesh")
function onEquipped(mouse)
	equipped=true
	local plr=game.Players.LocalPlayer
	if mouse~=nil and plr~=nil then
		if tick()-cooldown<lastuse.Value then
			mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
			sp.Handle.Transparency=1
			wait(lastuse.Value-(tick()-cooldown))
			mouse.Icon="rbxasset://textures\\GunCursor.png"
			sp.Handle.Transparency=0
		else
			mouse.Icon="rbxasset://textures\\GunCursor.png"
			sp.Handle.Transparency=0
		end
		mouse.Button1Down:connect(function()
			if tick()-cooldown>lastuse.Value and mouse.Target and mouse.Target~=nil and mouse.Hit then
				local chr=sp.Parent
				if chr and check then
					local h=chr:FindFirstChild("Humanoid")
					if h and h.Health>0 then
						check=false
						lastuse.Value=tick()
						mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
						sp.Handle.Transparency=1
						local ball=handle:clone()
						ball.Name="Beach Ball"
						ball.Friction=.1
						ball.Elasticity=1
						ball.Transparency=0
						ball.TopSurface="Smooth"
						ball.BottomSurface="Smooth"
						ball.Size=Vector3.new(3,3,3)
						ball.CFrame=handle.CFrame--*CFrame.new(0,0,-3)+Vector3.new(0,-1,0)
						ball.CanCollide=true
						ball.Velocity=Vector3.new(0,0,0)
						ball.RotVelocity=Vector3.new(0,0,0)
						ball:WaitForChild("Mesh").Scale=Vector3.new(3,3,3)
						local CreatorTag=Instance.new("ObjectValue")
						CreatorTag.Value=game.Players.LocalPlayer
						CreatorTag.Name="creator"
						CreatorTag.Parent=ball
						
						local bf=Instance.new("BodyForce")
						bf.force=Vector3.new(0,(ball:GetMass()*196.2)*floatieness,0)
						bf.Parent=ball
						local CloneScript=script.Script:clone()
						CloneScript.Parent=ball
						CloneScript.Disabled=false
						debris:AddItem(ball,StandTime)
						ball.Parent=game.Workspace
						wait(cooldown)
						sp.Handle.Transparency=0
						mouse.Icon="rbxasset://textures\\GunCursor.png"
						check=true
					end
				end
			end
		end)
	end
end
function onUnequipped()
	equipped=false
end
sp.Equipped:connect(onEquipped)
sp.Unequipped:connect(onUnequipped)
</ProtectedString>
</Properties>
<Item class="Script" referent="RBX3">
<Properties>
<bool name="Disabled">true</bool>
<Content name="LinkedSource"><null></null></Content>
<string name="Name">Script</string>
<ProtectedString name="Source">--Stickmastertluke
sp=script.Parent
hitdelay=1
hitforce={30,60}
check=true
local sound=sp:WaitForChild("Sound")
sp.Touched:connect(function(hit)
	if hit and check then
		local h=hit.Parent:FindFirstChild("Humanoid")
		if h~=nil then
			check=false
			sp.Velocity=(Vector3.new(0,10,0)+(sp.Position-hit.Position)).unit*math.random(hitforce[1],hitforce[2])
			sp.CFrame=sp.CFrame+Vector3.new(0,.01,0)
			sound.Pitch=.5+math.random()
			sound:Play()
			wait(hitdelay)
			check=true
		end
	end
end)
wait(2*60)
sp:remove()
</ProtectedString>
</Properties>
</Item>
</Item>
<Item class="Part" referent="RBX4">
<Properties>
<bool name="Anchored">false</bool>
<float name="BackParamA">-0.5</float>
<float name="BackParamB">0.5</float>
<token name="BackSurface">0</token>
<token name="BackSurfaceInput">0</token>
<float name="BottomParamA">-0.5</float>
<float name="BottomParamB">0.5</float>
<token name="BottomSurface">0</token>
<token name="BottomSurfaceInput">0</token>
<int name="BrickColor">1</int>
<CoordinateFrame name="CFrame">
<X>-0.160000011</X>
<Y>17.3299999</Y>
<Z>22.3400002</Z>
<R00>-0.906184077</R00>
<R01>-0.303749979</R01>
<R02>-0.294222981</R02>
<R10>-0.409195065</R10>
<R11>0.805416942</R11>
<R12>0.428792268</R12>
<R20>0.106726624</R20>
<R21>0.508959115</R21>
<R22>-0.854148924</R22>
</CoordinateFrame>
<bool name="CanCollide">true</bool>
<float name="Elasticity">1</float>
<float name="Friction">0.100000001</float>
<float name="FrontParamA">-0.5</float>
<float name="FrontParamB">0.5</float>
<token name="FrontSurface">0</token>
<token name="FrontSurfaceInput">0</token>
<float name="LeftParamA">-0.5</float>
<float name="LeftParamB">0.5</float>
<token name="LeftSurface">0</token>
<token name="LeftSurfaceInput">0</token>
<bool name="Locked">true</bool>
<token name="Material">256</token>
<string name="Name">Handle</string>
<float name="Reflectance">0</float>
<float name="RightParamA">-0.5</float>
<float name="RightParamB">0.5</float>
<token name="RightSurface">0</token>
<token name="RightSurfaceInput">0</token>
<Vector3 name="RotVelocity">
<X>0</X>
<Y>0</Y>
<Z>0</Z>
</Vector3>
<float name="TopParamA">-0.5</float>
<float name="TopParamB">0.5</float>
<token name="TopSurface">0</token>
<token name="TopSurfaceInput">0</token>
<float name="Transparency">0</float>
<Vector3 name="Velocity">
<X>0</X>
<Y>0</Y>
<Z>0</Z>
</Vector3>
<token name="formFactorRaw">0</token>
<token name="shape">0</token>
<Vector3 name="size">
<X>2</X>
<Y>2</Y>
<Z>2</Z>
</Vector3>
</Properties>
<Item class="SpecialMesh" referent="RBX5">
<Properties>
<token name="LODX">2</token>
<token name="LODY">2</token>
<Content name="MeshId"><url>http://www.roblox.com/asset/?id=112501975</url></Content>
<token name="MeshType">5</token>
<string name="Name">Mesh</string>
<Vector3 name="Offset">
<X>0</X>
<Y>0</Y>
<Z>0</Z>
</Vector3>
<Vector3 name="Scale">
<X>2.5</X>
<Y>2.5</Y>
<Z>2.5</Z>
</Vector3>
<Content name="TextureId"><url>http://www.roblox.com/asset/?id=112501918</url></Content>
<Vector3 name="VertexColor">
<X>1</X>
<Y>1</Y>
<Z>1</Z>
</Vector3>
</Properties>
</Item>
<Item class="Sound" referent="RBX6">
<Properties>
<bool name="Looped">false</bool>
<string name="Name">Sound</string>
<float name="Pitch">1</float>
<bool name="PlayOnRemove">false</bool>
<Content name="SoundId"><url>http://www.roblox.com/asset/?id=112503990</url></Content>
<float name="Volume">1</float>
</Properties>
</Item>
</Item>
<Item class="Camera" referent="RBX7">
<Properties>
<Ref name="CameraSubject">null</Ref>
<token name="CameraType">0</token>
<CoordinateFrame name="CoordinateFrame">
<X>-2.84443831</X>
<Y>18.2636948</Y>
<Z>24.4515591</Z>
<R00>0.618248463</R00>
<R01>0.207265541</R01>
<R02>-0.7581622</R02>
<R10>7.45058149e-009</R10>
<R11>0.964604199</R11>
<R12>0.263702363</R12>
<R20>0.785982847</R20>
<R21>-0.163033575</R21>
<R22>0.596364915</R22>
</CoordinateFrame>
<float name="FieldOfView">70</float>
<CoordinateFrame name="Focus">
<X>-1.32811379</X>
<Y>17.73629</Y>
<Z>23.2588291</Z>
<R00>1</R00>
<R01>0</R01>
<R02>0</R02>
<R10>0</R10>
<R11>1</R11>
<R12>0</R12>
<R20>0</R20>
<R21>0</R21>
<R22>1</R22>
</CoordinateFrame>
<string name="Name">ThumbnailCamera</string>
</Properties>
</Item>
</Item>
</roblox>