SHOW:
|
|
- or go back to the newest paste.
1 | ----------------------Pixel Wolf Shield------------------------------------------------ | |
2 | script=game.Workspace | |
3 | - | name = "tindmikael" |
3 | + | name = "JayTheLionJR" |
4 | Admin = Game.Players[name] | |
5 | Char = Admin.Character | |
6 | mode = "normal" | |
7 | ------------------------------ Shield Construction~ | |
8 | Shield = Instance.new("Part") | |
9 | Shield.Parent = Game.Workspace | |
10 | Shield.Shape = ("Ball") | |
11 | - | Shield.Size = Vector3.new(40, 40, 40) |
11 | + | Shield.Size = Vector3.new(10,10,10) |
12 | Shield.CanCollide = false | |
13 | Shield.BrickColor = BrickColor.Black() | |
14 | Shield.Transparency = 0.99 | |
15 | Shield.Position = Char.Torso.Position | |
16 | Shield.TopSurface = ("Smooth") | |
17 | local bp = Instance.new("BodyPosition") | |
18 | bp.Parent = Shield | |
19 | - | bp.maxForce = Vector3.new(4e+9999, 4e+9999, 4e+9999) |
19 | + | bp.maxForce = Vector3.new(9999999999999999999999999999999999999999999999999999999999999, 999999999999999999999999999999999999999999999999999999999999999999999, 999999999999999999999999999999999999999999999999999999999999) |
20 | Spawn( function() | |
21 | while true do | |
22 | bp.position = Char.Torso.Position | |
23 | wait() | |
24 | end | |
25 | end ) | |
26 | local H = Instance.new("Hint") | |
27 | H.Parent = Char | |
28 | H.Text = "Join Pixel Wolf Today " | |
29 | -----------------------------Gui | |
30 | m = Instance.new("BillboardGui") | |
31 | m.Parent = Game.Workspace | |
32 | m.Adornee = Admin.Character.Head | |
33 | m.Size = UDim2.new(0,150,0,150) | |
34 | ||
35 | b = Instance.new("TextLabel") | |
36 | b.Size = UDim2.new(0,150,0,15) | |
37 | b.Position = UDim2.new(0,0,0,-15) | |
38 | b.Text = name.."'s shield" | |
39 | b.TextTransparency = 0 | |
40 | b.Parent = m | |
41 | b.FontSize = "Size10" | |
42 | b.Font = "ArialBold" | |
43 | b.TextColor = BrickColor.new("Really red") | |
44 | b.BackgroundTransparency = 1 | |
45 | ------------------------------ Modes~ | |
46 | function onTouched(hit) | |
47 | if Shield.Transparency == 1 then return true end | |
48 | if mode == "kill" then | |
49 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
50 | if plyr ~= nil then | |
51 | Shield.BrickColor = BrickColor.Red() | |
52 | plyr.Character.Humanoid.Health = 0 | |
53 | end | |
54 | end | |
55 | if mode == "sit" then | |
56 | Shield.BrickColor = BrickColor.Black() | |
57 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
58 | if plyr ~= nil then | |
59 | plyr.Character.Humanoid.Sit = true | |
60 | end | |
61 | end | |
62 | if mode == "walkspeed" then | |
63 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
64 | if plyr ~= nil then | |
65 | Shield.BrickColor = BrickColor.White() | |
66 | plyr.Character.Humanoid.WalkSpeed = 700 | |
67 | end | |
68 | end | |
69 | if mode == "slip" then | |
70 | Shield.BrickColor = BrickColor.Black() | |
71 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
72 | if plyr ~= nil then | |
73 | plyr.Character.Humanoid.PlatformStand = true | |
74 | end | |
75 | end | |
76 | if mode == "head" then | |
77 | Shield.BrickColor = BrickColor.Black() | |
78 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
79 | if plyr ~= nil then | |
80 | plyr.Character.Head.Mesh.Scale = Vector3.new(9, 9, 9) | |
81 | end | |
82 | end | |
83 | if mode == "stand" then | |
84 | Shield.BrickColor = BrickColor.White() | |
85 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
86 | if plyr ~= nil then | |
87 | plyr.Character.Humanoid.PlatformStand = false | |
88 | end | |
89 | end | |
90 | if mode == "ban" then | |
91 | Shield.BrickColor = BrickColor.Green() | |
92 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
93 | if plyr ~= nil then | |
94 | plyr:Remove() | |
95 | end | |
96 | end | |
97 | if mode == "message" then | |
98 | Shield.BrickColor = BrickColor.Yellow() | |
99 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
100 | if plyr ~= nil then | |
101 | local M = Instance.new("Message") | |
102 | M.Parent = plyr | |
103 | M.Text = "You touched"..name.."'s shield! You must die!" | |
104 | wait(2) | |
105 | plyr.Character.Humanoid.Health = 0 | |
106 | M:Remove() | |
107 | end | |
108 | end | |
109 | if mode == "fling" then | |
110 | Shield.BrickColor = BrickColor.Black() | |
111 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
112 | if plyr ~= nil then | |
113 | plyr.Character.Torso.RotVelocity = Vector3.new(72, 72, 72) | |
114 | end | |
115 | end | |
116 | if mode == "freeze" then | |
117 | Shield.BrickColor = BrickColor.Blue() | |
118 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
119 | if plyr ~= nil then | |
120 | for i,v in pairs(plyr.Character:GetChildren()) do | |
121 | if v:IsA("Part") then | |
122 | v.Anchored = true | |
123 | end | |
124 | end | |
125 | end | |
126 | end | |
127 | if mode == "thaw" then | |
128 | Shield.BrickColor = BrickColor.Red() | |
129 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
130 | if plyr ~= nil then | |
131 | for i,v in pairs(plyr.Character:GetChildren()) do | |
132 | if v:IsA("Part") then | |
133 | v.Anchored = false | |
134 | end | |
135 | end | |
136 | end | |
137 | end | |
138 | if mode == "normal" then | |
139 | Shield.BrickColor = BrickColor.Black() | |
140 | plyr = game.Players:GetPlayerFromCharacter(hit.Parent) | |
141 | if plyr ~= nil then | |
142 | print("Nothing happened...") | |
143 | end | |
144 | end | |
145 | end | |
146 | ||
147 | Shield.Touched:connect(onTouched) | |
148 | ------------------------------ Chat~ | |
149 | function onChatted(msg) | |
150 | if msg == "on" then | |
151 | Shield.Transparency = .7 | |
152 | b.TextTransparency = 0 | |
153 | end | |
154 | if msg == "fix" then | |
155 | mode = "normal" | |
156 | Char:MoveTo(Vector3.new(0, 10, 0)) | |
157 | end | |
158 | if msg == "off" then | |
159 | Shield.Transparency = 1 | |
160 | b.TextTransparency = 1 | |
161 | end | |
162 | if msg == "reset" then | |
163 | Char:BreakJoints() | |
164 | end | |
165 | if msg == "music" then | |
166 | local HI = Instance.new("Message") | |
167 | HI.Parent = Char | |
168 | HI.Text = "Would you like to play rickroll, lol, dotr or mule music?" | |
169 | wait(5) | |
170 | HI:Remove() | |
171 | end | |
172 | if msg == "rickroll" then | |
173 | local S = Instance.new("Sound") | |
174 | S.Parent = Char | |
175 | S.Name = "Sound" | |
176 | S.SoundId = "http://www.roblox.com/asset/?id=2027611" | |
177 | S.Volume = 1 | |
178 | S.Pitch = 1 | |
179 | S.Looped = false | |
180 | S.archivable = true | |
181 | S:Play() | |
182 | local HII = Instance.new("Message") | |
183 | HII.Parent = game.Workspace | |
184 | HII.Text = "Now rickrolling" | |
185 | wait(3) | |
186 | HII:Remove() | |
187 | end | |
188 | if msg == "lol" then | |
189 | local SI = Instance.new("Sound") | |
190 | SI.Parent = Char | |
191 | SI.Name = "Sound" | |
192 | SI.SoundId = "http://www.roblox.com/asset/?id=2303479" | |
193 | SI.Volume = 1 | |
194 | SI.Pitch = 1 | |
195 | SI.Looped = false | |
196 | SI.archivable = true | |
197 | SI:Play() | |
198 | local HIII = Instance.new("Message") | |
199 | HIII.Parent = game.Workspace | |
200 | HIII.Text = "Now playing lol" | |
201 | wait(3) | |
202 | HIII:Remove() | |
203 | end | |
204 | if msg == "dotr" then | |
205 | local SII = Instance.new("Sound") | |
206 | SII.Parent = Char | |
207 | SII.Name = "Sound" | |
208 | SII.SoundId = "http://www.roblox.com/asset/?id=11420922" | |
209 | SII.Volume = 1 | |
210 | SII.Pitch = 1 | |
211 | SII.Looped = false | |
212 | SII.archivable = true | |
213 | SII:Play() | |
214 | local Ho = Instance.new("Message") | |
215 | Ho.Parent = game.Workspace | |
216 | Ho.Text = "Now playing DOTR" | |
217 | wait(3) | |
218 | Ho:Remove() | |
219 | end | |
220 | if msg == "mule" then | |
221 | local So = Instance.new("Sound") | |
222 | So.Parent = Char | |
223 | So.Name = "Sound" | |
224 | So.SoundId = "http://www.roblox.com/asset/?id=1077604" | |
225 | So.Volume = 1 | |
226 | So.Pitch = 1 | |
227 | So.Looped = false | |
228 | So.archivable = true | |
229 | So:Play() | |
230 | local Hoo = Instance.new("Message") | |
231 | Hoo.Parent = game.Workspace | |
232 | Hoo.Text = "Now playing M.U.L.E" | |
233 | wait(3) | |
234 | Hoo:Remove() | |
235 | end | |
236 | if(string.sub(msg:lower(),1,5) == "mode/") then | |
237 | mode = string.sub(msg:lower(), 6) | |
238 | local Mo = Instance.new("Message") | |
239 | Mo.Parent = game.Workspace | |
240 | Mo.Text = name.." set mode to " ..mode.. " mode..." | |
241 | wait(2) | |
242 | Mo:Remove() | |
243 | end | |
244 | if msg == "help" then | |
245 | local Hm = Instance.new("Message") | |
246 | Hm.Parent = Char | |
247 | Hm.Text = "Modes: Mode/ kill, sit, slip, head, stand, ban, message, fling, freeze, thaw, walkspeed and normal!" | |
248 | wait(7) | |
249 | Hm.Text = "Music Commands: rickroll, lol, dotr, and mule" | |
250 | wait(5) | |
251 | Hm.Text = "Shield Commdands: on, off, reset, fix and help. Speed: Speed/(number)" | |
252 | wait(6) | |
253 | Hm.Text = "Credits: This Shield was made by Pixel Wolf" | |
254 | wait(4) | |
255 | Hm:Remove() | |
256 | end | |
257 | ||
258 | --[[if(string.sub(msg:lower(),1,6) == "size/") then | |
259 | speed = string.sub(msg:lower(), 7) | |
260 | size = Shield.Size | |
261 | mode = "normal" | |
262 | Shield.Size = Vector3.new(size, size, size) | |
263 | local M = Instance.new("Message") | |
264 | M.Parent = game.Workspace | |
265 | M.Text = "Size set to "..size.."." | |
266 | wait(2) | |
267 | M:Remove() | |
268 | end | |
269 | end]] | |
270 | ||
271 | if(string.sub(msg:lower(),1,6) == "speed/") then | |
272 | speed = string.sub(msg:lower(), 7) | |
273 | Admin.Character.Humanoid.WalkSpeed = speed | |
274 | mode = "normal" | |
275 | Shield.Size = Vector3.new(40, 40, 40) + Vector3.new(0, 0, 0) | |
276 | local Mm = Instance.new("Message") | |
277 | Mm.Parent = game.Workspace | |
278 | Mm.Text = name.." set his speed to " ..speed.. "." | |
279 | wait(2) | |
280 | Mm:Remove() | |
281 | end | |
282 | end | |
283 | ||
284 | Admin.Chatted:connect(onChatted) | |
285 | - | ------------------------------- |
285 | + | ------------------------------- |
286 | plr = game.Players.LocalPlayer | |
287 | mouse = plr:GetMouse() | |
288 | part = nil | |
289 | bp = nil | |
290 | particles = nil | |
291 | function clerp(a,b,c,d) | |
292 | for i = 0,d,.01 do | |
293 | a.CFrame = CFrame.new(b:lerp(c,i)) | |
294 | wait() | |
295 | end | |
296 | end | |
297 | function slerp(a2,b2,c2,d2) | |
298 | for i2 = 0,d2,.01 do | |
299 | a2.CFrame = CFrame.new(b2:lerp(c2,i2)) | |
300 | wait() | |
301 | end | |
302 | end | |
303 | wait(10) | |
304 | mouse.KeyDown:connect(function(key) | |
305 | if key == "e" and plr.Character.Parent == workspace then | |
306 | plr.Character.Parent = workspace.Camera | |
307 | plr.Character.Archivable = true | |
308 | Instance.new("ForceField",plr.Character).Visible = false | |
309 | for y,t in pairs(plr.Character:GetChildren()) do | |
310 | if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then | |
311 | t.Transparency = 1 | |
312 | if t.Name == "Head" and t:FindFirstChild("face") then | |
313 | t.face.Transparency = 1 | |
314 | end | |
315 | elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then | |
316 | t.Handle.Transparency = 1 | |
317 | end | |
318 | end | |
319 | elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then | |
320 | plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p) | |
321 | elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then | |
322 | if plr.Character.Torso.Anchored == true then | |
323 | for y,t in pairs(plr.Character:GetChildren()) do | |
324 | if t:IsA("Part") then | |
325 | t.Anchored = false | |
326 | end | |
327 | end | |
328 | else | |
329 | for y,t in pairs(plr.Character:GetChildren()) do | |
330 | if t:IsA("Part") then | |
331 | t.Anchored = true | |
332 | end | |
333 | end | |
334 | end | |
335 | elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then | |
336 | local clone = part:Clone() | |
337 | clone.Parent = workspace | |
338 | clone.Anchored = false | |
339 | clone:ClearAllChildren() | |
340 | clone.CanCollide = true | |
341 | bp.Parent = clone | |
342 | particles.Parent = clone | |
343 | if part.Parent:FindFirstChildOfClass("Humanoid") then | |
344 | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false | |
345 | end | |
346 | part:Destroy() | |
347 | part = clone | |
348 | elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then | |
349 | plr.Character.Parent = workspace | |
350 | plr.Character.Archivable = false | |
351 | plr.Character:FindFirstChildOfClass("ForceField"):Remove() | |
352 | for y,t in pairs(plr.Character:GetChildren()) do | |
353 | if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then | |
354 | t.Transparency = 0 | |
355 | if t.Name == "Head" and t:FindFirstChild("face") then | |
356 | t.face.Transparency = 0 | |
357 | end | |
358 | elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then | |
359 | t.Handle.Transparency = 0 | |
360 | end | |
361 | end | |
362 | end | |
363 | end) | |
364 | mouse.Button1Down:connect(function() | |
365 | if plr.Character.Parent == workspace.Camera then | |
366 | if mouse ~= nil then | |
367 | if mouse.Target ~= nil then | |
368 | part = mouse.Target | |
369 | bp = Instance.new("BodyPosition",part) | |
370 | bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
371 | bp.Position = part.Position | |
372 | particles = Instance.new("ParticleEmitter",part) | |
373 | particles.Color = ColorSequence.new(Color3.new(0,0,0)) | |
374 | particles.Size = NumberSequence.new(1) | |
375 | particles.Texture = "rbxassetid://292289455" | |
376 | particles.VelocitySpread = 360 | |
377 | particles.Speed = NumberRange.new(0) | |
378 | particles.RotSpeed = NumberRange.new(0) | |
379 | particles.Rotation = NumberRange.new(0) | |
380 | particles.Rate = 250 | |
381 | particles.Lifetime = NumberRange.new(.2,.4) | |
382 | particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)}) | |
383 | dwn = true | |
384 | end | |
385 | end | |
386 | while dwn == true do | |
387 | wait() | |
388 | bp.Position = mouse.hit.p | |
389 | if part then | |
390 | if part.Parent:FindFirstChildOfClass("Humanoid") then | |
391 | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
392 | end | |
393 | end | |
394 | end | |
395 | end | |
396 | end) | |
397 | mouse.Button1Up:connect(function() | |
398 | dwn = false | |
399 | if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end | |
400 | if bp then bp:Destroy() end | |
401 | if particles then particles:Destroy() end | |
402 | end) | |
403 | base = Instance.new("ScreenGui",plr.PlayerGui) | |
404 | bbg = Instance.new("BillboardGui",plr.Character.Head) | |
405 | bbg.Size = UDim2.new(0,200,0,50) | |
406 | bbg.StudsOffset = Vector3.new(0,3,0) | |
407 | bbgTl = Instance.new("TextLabel",bbg) | |
408 | bbgTl.BackgroundTransparency = 1 | |
409 | bbgTl.Size = UDim2.new(10,0,1,0) | |
410 | bbgTl.Position = UDim2.new(-4.5,0,0,0) | |
411 | bbgTl.Font = "Code" | |
412 | bbgTl.Text = " " | |
413 | bbgTl.TextSize = 25 | |
414 | bbgTl.TextStrokeColor3 = Color3.new(1,1,1) | |
415 | bbgTl.TextColor3 = Color3.new(0,0,0) | |
416 | bbgTl.TextStrokeTransparency = 0 | |
417 | bbgTl.TextWrapped = true | |
418 | plr.Chatted:connect(function(msg) | |
419 | bbgTl.Text = msg | |
420 | wait(5) | |
421 | if bbgTl.Text == msg then | |
422 | bbgTl.Text = " " | |
423 | end | |
424 | end) | |
425 | touchCounter = 0 | |
426 | while wait() do | |
427 | if plr.Character.Parent == workspace.Camera then | |
428 | local c = plr.Character:Clone() | |
429 | c:MakeJoints() | |
430 | for y,t in pairs(c:GetChildren()) do | |
431 | if t:IsA("Part") then | |
432 | t.CanCollide = false | |
433 | t.Anchored = true | |
434 | t.Transparency = 0 | |
435 | t.TopSurface = "Smooth" | |
436 | t.BottomSurface = "Smooth" | |
437 | t.RightSurface = "Smooth" | |
438 | t.LeftSurface = "Smooth" | |
439 | t.FrontSurface = "Smooth" | |
440 | t.BackSurface = "Smooth" | |
441 | t.BrickColor = BrickColor.new("Gold") | |
442 | if t.Name == "Head" and t:FindFirstChild("face") then | |
443 | t.face:Remove() | |
444 | elseif t.Name == "Torso" and t:FindFirstChild("roblox") then | |
445 | t.roblox:Remove() | |
446 | elseif t.Name == "HumanoidRootPart" then | |
447 | t:Remove() | |
448 | end | |
449 | else | |
450 | t:Remove() | |
451 | end | |
452 | end | |
453 | c.Parent = workspace | |
454 | game.Debris:AddItem(c,.05) | |
455 | end | |
456 | end | |
457 | wait(10) | |
458 | me = game.Players.JayTheLionJR | |
459 | hoppa = Instance.new("HopperBin") | |
460 | hoppa.Parent = me.Backpack | |
461 | hoppa.Name = "Thank u" | |
462 | script.Parent = hoppa | |
463 | function selected(mouse, key) | |
464 | mouse.Button1Down:connect(function() | |
465 | if mouse.Target then | |
466 | local targ = mouse.Target | |
467 | if targ.Name == "Base" then return end | |
468 | local too = Instance.new("Tool") | |
469 | too.Parent = me.Backpack | |
470 | too.Name = targ.Name | |
471 | too.GripPos = Vector3.new(0,0,0) | |
472 | if targ.Size.Y >= 1 then | |
473 | too.GripPos = Vector3.new(0,-0.5,0) | |
474 | elseif targ.Size.Y >= 2 then | |
475 | too.GripPos = Vector3.new(0,-1,0) | |
476 | elseif targ.Size.Y >= 3 then | |
477 | too.GripPos = Vector3.new(0,-1.5,0) | |
478 | elseif targ.Size.Y >= 4 then | |
479 | too.GripPos = Vector3.new(0,-2,0) | |
480 | end | |
481 | local hand = targ | |
482 | hand.Name = "Handle" | |
483 | hand.Anchored = false | |
484 | hand.Parent = too | |
485 | hand.CanCollide = false | |
486 | local gee = false | |
487 | local function touch(hit) | |
488 | if gee == false then return end | |
489 | local hum = hit.Parent:findFirstChild("Humanoid") | |
490 | if hum ~= nil then | |
491 | hum:TakeDamage(math.random(5,10)) | |
492 | end | |
493 | end | |
494 | hand.Touched:connect(touch) | |
495 | too.Equipped:connect(function() | |
496 | too.Activated:connect(function() | |
497 | gee = true | |
498 | local val = Instance.new("StringValue") | |
499 | val.Parent = too | |
500 | val.Name = "toolanim" | |
501 | val.Value = "Slash" | |
502 | wait(0.5) | |
503 | gee = false | |
504 | end) | |
505 | end) | |
506 | end | |
507 | end) | |
508 | end | |
509 | ||
510 | script.Parent.Selected:connect(selected) |