SHOW:
|
|
- or go back to the newest paste.
1 | --Saz | |
2 | ||
3 | vPlayer=game.Players.LocalPlayer | |
4 | ||
5 | Tool=Instance.new("Tool") | |
6 | Tool.Name="Tea" | |
7 | Tool.Parent=vPlayer.Backpack | |
8 | Handle=Instance.new("Part") | |
9 | Handle.Size=Vector3.new(2.6,2.6,2.6) | |
10 | Handle.TopSurface=0 | |
11 | Handle.BottomSurface=0 | |
12 | Handle.Name="Handle" | |
13 | Handle.formFactor="Custom" | |
14 | Handle.Parent=Tool | |
15 | Handle.BrickColor=BrickColor:White() | |
16 | Tool.GripRight=Vector3.new(0,0,1) | |
17 | Tool.GripPos=Vector3.new(-1.08,-.1,.1) | |
18 | ||
19 | m=Instance.new("SpecialMesh") | |
20 | m.MeshType="FileMesh" | |
21 | m.MeshId="http://www.roblox.com/asset/?id=1029523" | |
22 | m.Parent=Handle | |
23 | m.Scale=Vector3.new(.05,.05,.05) | |
24 | ||
25 | Mouse=vPlayer:GetMouse() | |
26 | deb=true | |
27 | onClick=function() | |
28 | if deb==false then | |
29 | return | |
30 | end | |
31 | deb=false | |
32 | e=0 | |
33 | rs=vPlayer.Character["Torso"]["Right Shoulder"] | |
34 | ||
35 | ||
36 | s=Instance.new("Sound") | |
37 | s.SoundId="http://www.roblox.com/asset/?id=0" | |
38 | s.Volume=1 | |
39 | s.Parent=Tool.Handle | |
40 | s:Play() | |
41 | game:GetService("Debris"):AddItem(s,5) | |
42 | wait(0) | |
43 | lolol=rs.C0 | |
44 | for i=1, 4 do | |
45 | rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30)) | |
46 | wait(.031) | |
47 | end | |
48 | for i=1, 2 do | |
49 | rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,-math.rad(30)) | |
50 | wait(.031) | |
51 | end | |
52 | --throw | |
53 | hh=Tool.Handle:clone() | |
54 | dir=(hh.Position - game.Players.LocalPlayer:GetMouse().Hit.p).unit*-1 | |
55 | Tool.Handle.Transparency=1 | |
56 | hh.CanCollide=true | |
57 | hh.Parent=workspace | |
58 | hh.Velocity=dir*200+Vector3.new(0,5,0) | |
59 | ff=Instance.new("BodyForce") | |
60 | ff.force=Vector3.new(0,hh:GetMass()*140,0) | |
61 | ff.Parent=hh | |
62 | for i=1, 2 do | |
63 | rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,-math.rad(30)) | |
64 | hh.Velocity=dir*300 | |
65 | wait(.031) | |
66 | end | |
67 | hh.Touched:connect(function(hit) | |
68 | if hit==nil then return end | |
69 | if hit.Parent==nil then return end | |
70 | if hit.Parent:FindFirstChild("Humanoid")~=nil and hh:FindFirstChild("Hit")==nil then | |
71 | if hit.Parent==game.Players.LocalPlayer.Character then return end | |
72 | hit.Parent:BreakJoints() | |
73 | s=Instance.new("Sound") | |
74 | s.Volume=1 | |
75 | s.Parent=hh | |
76 | s.Name="Hit1" | |
77 | - | s.SoundId="http://www.roblox.com/asset/?id=179497874" |
77 | + | s.SoundId="http://www.roblox.com/asset/?id=144153853" |
78 | s5.Volume=10 | |
79 | s:Play() | |
80 | ||
81 | for i=1, 4 do | |
82 | s5=Instance.new("Sound") | |
83 | s5.Volume=1 | |
84 | s5.Parent=hh | |
85 | s5.Name="Hit" | |
86 | s5.SoundId="http://www.roblox.com/asset/?id=138122923" | |
87 | s5.Pitch=.85 | |
88 | s5:Play() | |
89 | end | |
90 | ||
91 | for _,v in pairs(hit.Parent:children()) do | |
92 | if v:IsA("BasePart") then | |
93 | v.Velocity=(v.Position - hh.Position).unit * 90 + Vector3.new(math.random(-20,20),math.random(0,20),math.random(-20,20)) | |
94 | v.RotVelocity=-v.Velocity * 1.2 | |
95 | end | |
96 | end | |
97 | ||
98 | hh.Transparency=1 | |
99 | for i=1, 30 do | |
100 | p=Instance.new("Part") | |
101 | p.TopSurface=0 | |
102 | p.BottomSurface=0 | |
103 | p.Name="Shard" | |
104 | p.CFrame=hh.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) + Vector3.new(math.random(-15,15)/10,math.random(-15,15)/10,math.random(-15,15)/10) | |
105 | p.BrickColor=hh.BrickColor | |
106 | p.CanCollide=false | |
107 | p.formFactor="Custom" | |
108 | p.Size=Vector3.new(.2,.2,.2) | |
109 | if math.random(1,3)==1 then | |
110 | m=Instance.new("BlockMesh") | |
111 | m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10) | |
112 | m.Parent=p | |
113 | else | |
114 | m=Instance.new("SpecialMesh") | |
115 | m.MeshType="Wedge" | |
116 | m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10) | |
117 | m.Parent=p | |
118 | end | |
119 | p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
120 | p.Velocity=p.RotVelocity + Vector3.new(0,25,0) + hh.Velocity / 6 | |
121 | p.Parent=workspace | |
122 | end | |
123 | ||
124 | hh.Anchored=true | |
125 | ||
126 | end | |
127 | if hit.Parent:FindFirstChild("Humanoid")==nil and hh:FindFirstChild("Hit")==nil and hit.CanCollide==true then | |
128 | hh.Transparency=1 | |
129 | for i=1, 30 do | |
130 | p=Instance.new("Part") | |
131 | p.TopSurface=0 | |
132 | p.BottomSurface=0 | |
133 | p.Name="Shard" | |
134 | p.CFrame=hh.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) + Vector3.new(math.random(-15,15)/10,math.random(-15,15)/10,math.random(-15,15)/10) | |
135 | p.BrickColor=hh.BrickColor | |
136 | p.CanCollide=false | |
137 | p.formFactor="Custom" | |
138 | p.Size=Vector3.new(.2,.2,.2) | |
139 | if math.random(1,3)==1 then | |
140 | m=Instance.new("BlockMesh") | |
141 | m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10) | |
142 | m.Parent=p | |
143 | else | |
144 | m=Instance.new("SpecialMesh") | |
145 | m.MeshType="Wedge" | |
146 | m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10) | |
147 | m.Parent=p | |
148 | end | |
149 | p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
150 | p.Velocity=p.RotVelocity + Vector3.new(0,25,0) + hh.Velocity / 6 | |
151 | p.Parent=workspace | |
152 | end | |
153 | for i=1, 4 do | |
154 | s5=Instance.new("Sound") | |
155 | s5.Volume=1 | |
156 | s5.Parent=hh | |
157 | s5.Name="Hit" | |
158 | s5.SoundId="http://www.roblox.com/asset/?id=138122923" | |
159 | s5.Pitch=.85 | |
160 | s5:Play() | |
161 | end | |
162 | hh.Anchored=true | |
163 | end | |
164 | end) | |
165 | - | wait(2.7) |
165 | + | |
166 | wait(0.1) | |
167 | Tool.Handle.Transparency=0 | |
168 | deb=true | |
169 | end | |
170 | Tool.Activated:connect(onClick) |