Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------Pixel Wolf Shield------------------------------------------------
- script=game.Workspace
- name = "JayTheLionJR"
- Admin = Game.Players[name]
- Char = Admin.Character
- mode = "slip"
- ------------------------------ Shield Construction~
- Shield = Instance.new("Part")
- Shield.Parent = Game.Workspace
- Shield.Shape = ("Ball")
- Shield.Size = Vector3.new(5, 5, 5)
- Shield.CanCollide = false
- Shield.BrickColor = BrickColor.Black()
- Shield.Transparency = .0.3
- Shield.Position = Char.Right arm.Position
- Shield.TopSurface = ("Smooth")
- local bp = Instance.new("BodyPosition")
- bp.Parent = Shield
- bp.maxForce = Vector3.new(4e+9999, 4e+9999, 4e+9999)
- Spawn( function()
- while true do
- bp.position = Char.Torso.Position
- wait()
- end
- end )
- local H = Instance.new("Hint")
- H.Parent = Char
- H.Text = "Join Pixel Wolf Today "
- -----------------------------Gui
- m = Instance.new("BillboardGui")
- m.Parent = Game.Workspace
- m.Adornee = Admin.Character.Head
- m.Size = UDim2.new(0,150,0,150)
- b = Instance.new("TextLabel")
- b.Size = UDim2.new(0,150,0,15)
- b.Position = UDim2.new(0,0,0,-15)
- b.Text = name.."'s shield"
- b.TextTransparency = 0
- b.Parent = m
- b.FontSize = "Size10"
- b.Font = "ArialBold"
- b.TextColor = BrickColor.new("Really red")
- b.BackgroundTransparency = 1
- ------------------------------ Modes~
- function onTouched(hit)
- if Shield.Transparency == 1 then return true end
- if mode == "kill" then
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- Shield.BrickColor = BrickColor.Red()
- plyr.Character.Humanoid.Health = 0
- end
- end
- if mode == "sit" then
- Shield.BrickColor = BrickColor.Black()
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- plyr.Character.Humanoid.Sit = true
- end
- end
- if mode == "walkspeed" then
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- Shield.BrickColor = BrickColor.White()
- plyr.Character.Humanoid.WalkSpeed = 700
- end
- end
- if mode == "slip" then
- Shield.BrickColor = BrickColor.Black()
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- plyr.Character.Humanoid.PlatformStand = true
- end
- end
- if mode == "head" then
- Shield.BrickColor = BrickColor.Black()
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- plyr.Character.Head.Mesh.Scale = Vector3.new(20, 20, 20)
- end
- end
- if mode == "stand" then
- Shield.BrickColor = BrickColor.White()
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- plyr.Character.Humanoid.PlatformStand = false
- end
- end
- if mode == "ban" then
- Shield.BrickColor = BrickColor.Green()
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- plyr:Remove()
- end
- end
- if mode == "message" then
- Shield.BrickColor = BrickColor.Yellow()
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- local M = Instance.new("Message")
- M.Parent = plyr
- M.Text = "You touched"..name.."'s shield! You must die!"
- wait(2)
- plyr.Character.Humanoid.Health = 0
- M:Remove()
- end
- end
- if mode == "fling" then
- Shield.BrickColor = BrickColor.Black()
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- plyr.Character.Torso.RotVelocity = Vector3.new(72, 72, 72)
- end
- end
- if mode == "freeze" then
- Shield.BrickColor = BrickColor.Blue()
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- for i,v in pairs(plyr.Character:GetChildren()) do
- if v:IsA("Part") then
- v.Anchored = true
- end
- end
- end
- end
- if mode == "thaw" then
- Shield.BrickColor = BrickColor.Red()
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- for i,v in pairs(plyr.Character:GetChildren()) do
- if v:IsA("Part") then
- v.Anchored = false
- end
- end
- end
- end
- if mode == "normal" then
- Shield.BrickColor = BrickColor.Black()
- plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plyr ~= nil then
- print("Pussy")
- end
- end
- end
- Shield.Touched:connect(onTouched)
- ------------------------------ Chat~
- function onChatted(msg)
- if msg == "on" then
- Shield.Transparency = .7
- b.TextTransparency = 0
- end
- if msg == "fix" then
- mode = "normal"
- Char:MoveTo(Vector3.new(0, 10, 0))
- end
- if msg == "off" then
- Shield.Transparency = 1
- b.TextTransparency = 1
- end
- if msg == "reset" then
- Char:BreakJoints()
- end
- if msg == "music" then
- local HI = Instance.new("Message")
- HI.Parent = Char
- HI.Text = "Would you like to play rickroll, lol, dotr or mule music?"
- wait(5)
- HI:Remove()
- end
- if msg == "rickroll" then
- local S = Instance.new("Sound")
- S.Parent = Char
- S.Name = "Sound"
- S.SoundId = "http://www.roblox.com/asset/?id=2027611"
- S.Volume = 1
- S.Pitch = 1
- S.Looped = false
- S.archivable = true
- S:Play()
- local HII = Instance.new("Message")
- HII.Parent = game.Workspace
- HII.Text = "Now rickrolling"
- wait(3)
- HII:Remove()
- end
- if msg == "lol" then
- local SI = Instance.new("Sound")
- SI.Parent = Char
- SI.Name = "Sound"
- SI.SoundId = "http://www.roblox.com/asset/?id=2303479"
- SI.Volume = 1
- SI.Pitch = 1
- SI.Looped = false
- SI.archivable = true
- SI:Play()
- local HIII = Instance.new("Message")
- HIII.Parent = game.Workspace
- HIII.Text = "Now playing lol"
- wait(3)
- HIII:Remove()
- end
- if msg == "dotr" then
- local SII = Instance.new("Sound")
- SII.Parent = Char
- SII.Name = "Sound"
- SII.SoundId = "http://www.roblox.com/asset/?id=11420922"
- SII.Volume = 1
- SII.Pitch = 1
- SII.Looped = false
- SII.archivable = true
- SII:Play()
- local Ho = Instance.new("Message")
- Ho.Parent = game.Workspace
- Ho.Text = "Now playing DOTR"
- wait(3)
- Ho:Remove()
- end
- if msg == "mule" then
- local So = Instance.new("Sound")
- So.Parent = Char
- So.Name = "Sound"
- So.SoundId = "http://www.roblox.com/asset/?id=1077604"
- So.Volume = 1
- So.Pitch = 1
- So.Looped = false
- So.archivable = true
- So:Play()
- local Hoo = Instance.new("Message")
- Hoo.Parent = game.Workspace
- Hoo.Text = "Now playing M.U.L.E"
- wait(3)
- Hoo:Remove()
- end
- if(string.sub(msg:lower(),1,5) == "mode/") then
- mode = string.sub(msg:lower(), 6)
- local Mo = Instance.new("Message")
- Mo.Parent = game.Workspace
- Mo.Text = name.." set mode to " ..mode.. " mode..."
- wait(2)
- Mo:Remove()
- end
- if msg == "help" then
- local Hm = Instance.new("Message")
- Hm.Parent = Char
- Hm.Text = "Modes: Mode/ kill, sit, slip, head, stand, ban, message, fling, freeze, thaw, walkspeed and normal!"
- wait(7)
- Hm.Text = "Music Commands: rickroll, lol, dotr, and mule"
- wait(5)
- Hm.Text = "Shield Commdands: on, off, reset, fix and help. Speed: Speed/(number)"
- wait(6)
- Hm.Text = "Credits: This Shield was made by Pixel Wolf"
- wait(4)
- Hm:Remove()
- end
- --[[if(string.sub(msg:lower(),1,6) == "size/") then
- speed = string.sub(msg:lower(), 7)
- size = Shield.Size
- mode = "normal"
- Shield.Size = Vector3.new(size, size, size)
- local M = Instance.new("Message")
- M.Parent = game.Workspace
- M.Text = "Size set to "..size.."."
- wait(2)
- M:Remove()
- end
- end]]
- if(string.sub(msg:lower(),1,6) == "speed/") then
- speed = string.sub(msg:lower(), 7)
- Admin.Character.Humanoid.WalkSpeed = speed
- mode = "normal"
- Shield.Size = Vector3.new(40, 40, 40) + Vector3.new(0, 0, 0)
- local Mm = Instance.new("Message")
- Mm.Parent = game.Workspace
- Mm.Text = name.." set his speed to " ..speed.. "."
- wait(2)
- Mm:Remove()
- end
- end
- Admin.Chatted:connect(onChatted)
- -------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement