SHOW:
|
|
- or go back to the newest paste.
1 | Tool = Instance.new("Tool") | |
2 | - | Tool.Name = "Sword" |
2 | + | Tool.Name = "Tool gun" |
3 | - | Knife = Instance.new("Part") |
3 | + | Gun = Instance.new("Part") |
4 | - | Knife.Name = "Handle" |
4 | + | Gun.Name = "Handle" |
5 | - | Knife.Parent = Tool |
5 | + | Gun.Parent = Tool |
6 | Tool.Parent = workspace.Lucas_YT111 | |
7 | - | Knife.Size = Vector3.new(1, 1, 1) |
7 | + | Gun.Massless = true |
8 | - | Knife.Massless = true |
8 | + | Gun.CanCollide = false |
9 | - | Knife.CanCollide = true |
9 | + | Gun2 = Instance.new("Part") |
10 | Gun2.Parent = Gun | |
11 | - | local stab = Instance.new("Sound", owner.character.Head) |
11 | + | Gun2.Size = Vector3.new(0.5555, 2.099, 3.6555) |
12 | - | stab.SoundId = "rbxassetid://199607491" |
12 | + | Gun2.Massless = true |
13 | - | stab.Volume = 0.5 |
13 | + | Gun2.CanCollide = false |
14 | Gun.Transparency = 1 | |
15 | Tool.GripPos = Vector3.new(0,0,0.82775) | |
16 | myhum = owner.Character.Humanoid | |
17 | - | stab.PlaybackSpeed = math.random(80, 125)/100 |
17 | + | |
18 | - | stab:Stop() |
18 | + | Meshlol1 = Instance.new("SpecialMesh") |
19 | - | stab:Play() |
19 | + | Meshlol1.Parent = Gun2 |
20 | - | local Anim = Instance.new("StringValue") |
20 | + | Meshlol1.MeshId = "http://www.roblox.com/asset/?id=541863381" |
21 | - | Anim.Name = "toolanim" |
21 | + | Meshlol1.TextureId = "http://www.roblox.com/asset/?id=541863491" |
22 | - | Anim.Value = "Lunge" |
22 | + | Meshlol1.Scale = Vector3.new(0.35, 0.35, 0.35) |
23 | - | Anim.Parent = Tool |
23 | + | Gun2.BrickColor = BrickColor.new(0.17, 0.17, 0.17) |
24 | - | wait(0.5) |
24 | + | Weld4 = Instance.new("Weld") |
25 | Weld4.Parent = Gun | |
26 | Weld4.Part0 = Gun | |
27 | - | part = Instance.new("Part",game.Workspace) |
27 | + | Weld4.Part1 = Gun2 |
28 | - | part.Anchored = true |
28 | + | Weld4.part1 = Gun2 |
29 | - | part.CFrame = CFrame.new(0,1000,0) |
29 | + | local islunging5 = false |
30 | - | part.Size = Vector3.new(0.05,0.05,0.05) |
30 | + | local pew = Instance.new("Sound", owner.character.Head) |
31 | - | part.Transparency = 1 |
31 | + | pew.SoundId = "rbxassetid://7400449641" |
32 | - | roped = false |
32 | + | pew.Volume = 1 |
33 | - | function thinghere(plr,action,hit, target) |
33 | + | local select = Instance.new("Sound", owner.character.Head) |
34 | - | if roped then |
34 | + | select.SoundId = "rbxassetid://6089348122" |
35 | - | alignposition:Destroy() |
35 | + | select.Volume = 1 |
36 | - | roped = false |
36 | + | cycle = 1 |
37 | - | else |
37 | + | local screengui2 = Instance.new("ScreenGui", owner:findFirstChildOfClass("PlayerGui")) |
38 | screengui2.ResetOnSpawn = true | |
39 | - | part.Anchored = true |
39 | + | screengui2.Name = "Hud" |
40 | - | roped = true |
40 | + | local frame = Instance.new("ImageLabel", screengui2) |
41 | - | part.CFrame = hit |
41 | + | frame.BackgroundTransparency = 1 |
42 | frame.ImageTransparency = 0.25 | |
43 | - | attachment0.Parent = part |
43 | + | frame.Image = "http://www.roblox.com/asset/?id=341560485" |
44 | frame.Size = UDim2.new(0.165,0,0.125,0) | |
45 | - | attachment1.Parent = Knife |
45 | + | frame.Position = frame.Position + UDim2.new(0,1145,0,650) |
46 | local screengui = Instance.new("ScreenGui", owner:findFirstChildOfClass("PlayerGui")) | |
47 | - | alignposition.Parent = Knife |
47 | + | screengui.ResetOnSpawn = true |
48 | screengui.Name = "cyclename" | |
49 | local tl = Instance.new("TextLabel", screengui) | |
50 | tl.Size = UDim2.new(0.165,0,0.125,0) | |
51 | - | local distance = (owner.Character.Torso.CFrame.Position - part.CFrame.Position).magnitude - 1 |
51 | + | tl.Position = tl.Position + UDim2.new(0,1145,0,650) |
52 | - | alignposition.Length = distance |
52 | + | tl.Text = "Mode = Balloon" |
53 | tl.BackgroundTransparency = 1 | |
54 | tl.TextColor3 = Color3.new(1, 1, 1) | |
55 | - | local weld = Instance.new("WeldConstraint") |
55 | + | |
56 | - | weld.Part0 = target |
56 | + | |
57 | - | weld.Part1 = part |
57 | + | if cycle == 1 then |
58 | - | weld.Parent = part |
58 | + | |
59 | pew.PlaybackSpeed = math.random(80, 125)/100 | |
60 | pew:Play() | |
61 | wait(0.25) | |
62 | - | local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent") |
62 | + | |
63 | - | count = 0 |
63 | + | elseif cycle == 0 then |
64 | islunging2 = true | |
65 | pew.PlaybackSpeed = math.random(80, 125)/100 | |
66 | pew:Play() | |
67 | - | target = Mouse.Target |
67 | + | wait(0.25) |
68 | - | E:FireServer("Down",Mouse.Hit, target) |
68 | + | islunging2 = false |
69 | - | count = count + 1 |
69 | + | elseif cycle == 2 then |
70 | - | if count == 1 then |
70 | + | islunging3 = true |
71 | - | owner.Character.Humanoid.PlatformStand = true |
71 | + | pew.PlaybackSpeed = math.random(80, 125)/100 |
72 | - | bodygyro = Instance.new('BodyGyro', owner.Character.HumanoidRootPart) |
72 | + | pew:Play() |
73 | - | bodygyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge) |
73 | + | wait(0.25) |
74 | - | bodygyro.P = 10000 |
74 | + | islunging3 = false |
75 | elseif cycle == 3 then | |
76 | - | fly = Instance.new("BodyVelocity",owner.Character.HumanoidRootPart) |
76 | + | islunging4 = true |
77 | - | fly.MaxForce = Vector3.new(0,0,0) |
77 | + | pew.PlaybackSpeed = math.random(80, 125)/100 |
78 | - | coroutine.wrap(function() |
78 | + | pew:Play() |
79 | - | while count == 1 do |
79 | + | wait(0.25) |
80 | - | task.wait() |
80 | + | islunging4 = false |
81 | - | bodygyro.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position,owner.Character.HumanoidRootPart.CFrame.Position) |
81 | + | elseif cycle == 4 then |
82 | - | if owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then |
82 | + | islunging5 = true |
83 | - | fly.MaxForce = Vector3.new(math.huge,math.huge,math.huge) |
83 | + | pew.PlaybackSpeed = math.random(80, 125)/100 |
84 | - | fly.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * math.huge |
84 | + | pew:Play() |
85 | - | elseif owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then |
85 | + | wait(0.25) |
86 | - | fly.MaxForce = Vector3.new(0,0,0) |
86 | + | islunging5 = false |
87 | end | |
88 | end) | |
89 | - | end)() |
89 | + | |
90 | - | elseif count == 2 then |
90 | + | function thinghere(plr,action,hit) |
91 | - | bodygyro:Destroy() |
91 | + | |
92 | - | fly:Destroy() |
92 | + | Part = Instance.new("Part",hit) |
93 | - | owner.Character.Humanoid.PlatformStand = false |
93 | + | Part.CFrame = hit.CFrame * CFrame.new(0,5,0) |
94 | - | count = 0 |
94 | + | |
95 | attachment0.Parent = hit | |
96 | local attachment1 = Instance.new("Attachment") | |
97 | attachment1.Parent = Part | |
98 | alignposition = Instance.new("RopeConstraint") | |
99 | - | ]],owner.PlayerGui)) |
99 | + | alignposition.Parent = Part |
100 | - | E.OnServerEvent:Connect(thinghere) |
100 | + | |
101 | alignposition.Attachment1 = attachment1 | |
102 | alignposition.Visible = true | |
103 | alignposition.Length = 8 | |
104 | alignposition.Thickness = 0.25 | |
105 | alignposition.Restitution = 0 | |
106 | alignposition.Color = BrickColor.new("Institutional white") | |
107 | Part.Size = Vector3.new(1.989, 2.508, 1.989) | |
108 | bf = Instance.new("BodyForce") | |
109 | bf.Parent = Part | |
110 | bf.Force = Vector3.new(0,game.Workspace.Gravity*1.5,0)*Part:GetMass() | |
111 | Part.BottomSurface = Enum.SurfaceType.Smooth | |
112 | Part.BrickColor = BrickColor.random() | |
113 | Part.TopSurface = Enum.SurfaceType.Smooth | |
114 | Part.brickColor = BrickColor.random() | |
115 | Meshlol = Instance.new("SpecialMesh") | |
116 | Meshlol.Parent = Part | |
117 | Meshlol.MeshId = "http://www.roblox.com/asset/?id=2687423385" | |
118 | end | |
119 | end | |
120 | ||
121 | function thinghere2(plr,action,part) | |
122 | if islunging2 then | |
123 | if part.Name ~= "Base" then | |
124 | if part.Name ~= owner.Character.Name then | |
125 | part:Destroy() | |
126 | end | |
127 | end | |
128 | end | |
129 | end | |
130 | ammount = 0 | |
131 | local oldpart | |
132 | local newpart | |
133 | local function connectParts() | |
134 | local beam = Instance.new("WeldConstraint") | |
135 | beam.Parent = oldpart | |
136 | beam.Part0 = oldpart | |
137 | beam.Part1 = newpart | |
138 | wait() | |
139 | newpart = nil | |
140 | oldpart = nil | |
141 | end | |
142 | function thinghere4(plr,action,hit) | |
143 | if islunging4 then | |
144 | ammount = ammount + 1 | |
145 | wait() | |
146 | if ammount == 1 then | |
147 | oldpart = hit | |
148 | elseif ammount == 2 then | |
149 | wait() | |
150 | newpart = hit | |
151 | wait() | |
152 | connectParts() | |
153 | wait() | |
154 | ammount = 0 | |
155 | end | |
156 | end | |
157 | end | |
158 | ammount2 = 0 | |
159 | local oldpart2 | |
160 | local newpart2 | |
161 | local function connectParts2() | |
162 | local attachment0 = Instance.new("Attachment") | |
163 | attachment0.Parent = oldpart2 | |
164 | local attachment1 = Instance.new("Attachment") | |
165 | attachment1.Parent = newpart2 | |
166 | alignposition = Instance.new("RopeConstraint") | |
167 | alignposition.Parent = newpart2 | |
168 | alignposition.Attachment0 = attachment0 | |
169 | alignposition.Attachment1 = attachment1 | |
170 | alignposition.Visible = true | |
171 | local distance = math.abs((attachment0.WorldPosition - attachment1.WorldPosition).Magnitude) | |
172 | alignposition.Length = distance + 2 | |
173 | alignposition.Thickness = 0.25 | |
174 | alignposition.Restitution = 0.25 | |
175 | wait() | |
176 | newpart2 = nil | |
177 | oldpart2 = nil | |
178 | end | |
179 | function thinghere5(plr,action,hit) | |
180 | if islunging5 then | |
181 | ammount2 = ammount2 + 1 | |
182 | wait() | |
183 | if ammount2 == 1 then | |
184 | oldpart2 = hit | |
185 | elseif ammount2 == 2 then | |
186 | wait() | |
187 | newpart2 = hit | |
188 | wait() | |
189 | connectParts2() | |
190 | wait() | |
191 | ammount2 = 0 | |
192 | end | |
193 | end | |
194 | end | |
195 | function thinghere3(plr,action,hit) | |
196 | if islunging3 then | |
197 | Partlol = Instance.new("Part",game.Workspace) | |
198 | Partlol.Size = Vector3.new(3.5,3.5,3.5) | |
199 | Partlol.CFrame = hit | |
200 | Meshlol2 = Instance.new("SpecialMesh") | |
201 | Meshlol2.Parent = Partlol | |
202 | Meshlol2.MeshId = "http://www.roblox.com/asset/?id=5814577268" | |
203 | Meshlol2.TextureId = "http://www.roblox.com/asset/?id=5814579940" | |
204 | Meshlol2.Scale = Vector3.new(1.75, 1.75, 1.75) | |
205 | end | |
206 | end | |
207 | ||
208 | function Cycleback() | |
209 | select:Play() | |
210 | cycle = cycle - 1 | |
211 | if cycle == 0 then | |
212 | tl.Text = "Mode = Destroy" | |
213 | elseif cycle == -1 then | |
214 | tl.Text = "Mode = Rope" | |
215 | cycle = 4 | |
216 | elseif cycle == 3 then | |
217 | tl.Text = "Mode = Weld" | |
218 | elseif cycle == 2 then | |
219 | tl.Text = "Mode = Create" | |
220 | elseif cycle == 1 then | |
221 | tl.Text = "Mode = Balloon" | |
222 | end | |
223 | end | |
224 | ||
225 | function Cycleup() | |
226 | select:Play() | |
227 | cycle = cycle + 1 | |
228 | if cycle == 1 then | |
229 | tl.Text = "Mode = Balloon" | |
230 | elseif cycle == 2 then | |
231 | tl.Text = "Mode = Create" | |
232 | elseif cycle == 3 then | |
233 | tl.Text = "Mode = Weld" | |
234 | elseif cycle == 4 then | |
235 | tl.Text = "Mode = Rope" | |
236 | elseif cycle == 5 then | |
237 | cycle = 0 | |
238 | tl.Text = "Mode = Destroy" | |
239 | end | |
240 | end | |
241 | local E = Instance.new("RemoteEvent", owner.Character) | |
242 | local E2 = Instance.new("RemoteEvent", owner.Character) | |
243 | local E3 = Instance.new("RemoteEvent", owner.Character) | |
244 | local E4 = Instance.new("RemoteEvent", owner.Character) | |
245 | E.Name = "The" | |
246 | E2.Name = "The2" | |
247 | E3.Name = "The3" | |
248 | E4.Name = "The4" | |
249 | NLS([[ | |
250 | local Mouse = owner:GetMouse() | |
251 | local E = owner.Character:WaitForChild("The") | |
252 | function ButtonDown() | |
253 | if Mouse.Target ~= nil then | |
254 | E:FireServer("Down",Mouse.Target) | |
255 | end | |
256 | end | |
257 | Mouse.Button1Down:Connect(ButtonDown) | |
258 | local E2 = owner.Character:WaitForChild("The2") | |
259 | function ButtonDown2() | |
260 | if Mouse.Hit ~= nil then | |
261 | E2:FireServer("Down4",Mouse.Hit) | |
262 | end | |
263 | end | |
264 | Mouse.Button1Down:Connect(ButtonDown2) | |
265 | local E3 = owner.Character:WaitForChild("The3") | |
266 | function KeyDown(key) | |
267 | key = key:lower() | |
268 | if key == "q" then | |
269 | E3:FireServer("Down3") | |
270 | end | |
271 | end | |
272 | Mouse.KeyDown:Connect(KeyDown) | |
273 | local E4 = owner.Character:WaitForChild("The4") | |
274 | function KeyDown2(key) | |
275 | key = key:lower() | |
276 | if key == "e" then | |
277 | E4:FireServer("Down2") | |
278 | end | |
279 | end | |
280 | Mouse.KeyDown:Connect(KeyDown2) | |
281 | ]],owner.PlayerGui) | |
282 | E4.OnServerEvent:Connect(Cycleup) | |
283 | E.OnServerEvent:Connect(thinghere2) | |
284 | E.OnServerEvent:Connect(thinghere) | |
285 | E.OnServerEvent:Connect(thinghere4) | |
286 | E.OnServerEvent:Connect(thinghere5) | |
287 | E2.OnServerEvent:Connect(thinghere3) | |
288 | E3.OnServerEvent:Connect(Cycleback) |