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 = "normal"
- ------------------------------ Shield Construction~
- Shield = Instance.new("Part")
- Shield.Parent = Game.Workspace
- Shield.Shape = ("Ball")
- Shield.Size = Vector3.new(10,10,10)
- Shield.CanCollide = false
- Shield.BrickColor = BrickColor.Black()
- Shield.Transparency = 0.99
- Shield.Position = Char.Torso.Position
- Shield.TopSurface = ("Smooth")
- local bp = Instance.new("BodyPosition")
- bp.Parent = Shield
- bp.maxForce = Vector3.new(9999999999999999999999999999999999999999999999999999999999999, 999999999999999999999999999999999999999999999999999999999999999999999, 999999999999999999999999999999999999999999999999999999999999)
- 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(9, 9, 9)
- 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("Nothing happened...")
- 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)
- -------------------------------
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- part = nil
- bp = nil
- particles = nil
- function clerp(a,b,c,d)
- for i = 0,d,.01 do
- a.CFrame = CFrame.new(b:lerp(c,i))
- wait()
- end
- end
- function slerp(a2,b2,c2,d2)
- for i2 = 0,d2,.01 do
- a2.CFrame = CFrame.new(b2:lerp(c2,i2))
- wait()
- end
- end
- wait(10)
- mouse.KeyDown:connect(function(key)
- if key == "e" and plr.Character.Parent == workspace then
- plr.Character.Parent = workspace.Camera
- plr.Character.Archivable = true
- Instance.new("ForceField",plr.Character).Visible = false
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
- t.Transparency = 1
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face.Transparency = 1
- end
- elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
- t.Handle.Transparency = 1
- end
- end
- elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
- 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)
- elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
- if plr.Character.Torso.Anchored == true then
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") then
- t.Anchored = false
- end
- end
- else
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") then
- t.Anchored = true
- end
- end
- end
- elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
- local clone = part:Clone()
- clone.Parent = workspace
- clone.Anchored = false
- clone:ClearAllChildren()
- clone.CanCollide = true
- bp.Parent = clone
- particles.Parent = clone
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
- end
- part:Destroy()
- part = clone
- elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
- plr.Character.Parent = workspace
- plr.Character.Archivable = false
- plr.Character:FindFirstChildOfClass("ForceField"):Remove()
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
- t.Transparency = 0
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face.Transparency = 0
- end
- elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
- t.Handle.Transparency = 0
- end
- end
- end
- end)
- mouse.Button1Down:connect(function()
- if plr.Character.Parent == workspace.Camera then
- if mouse ~= nil then
- if mouse.Target ~= nil then
- part = mouse.Target
- bp = Instance.new("BodyPosition",part)
- bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bp.Position = part.Position
- particles = Instance.new("ParticleEmitter",part)
- particles.Color = ColorSequence.new(Color3.new(0,0,0))
- particles.Size = NumberSequence.new(1)
- particles.Texture = "rbxassetid://292289455"
- particles.VelocitySpread = 360
- particles.Speed = NumberRange.new(0)
- particles.RotSpeed = NumberRange.new(0)
- particles.Rotation = NumberRange.new(0)
- particles.Rate = 250
- particles.Lifetime = NumberRange.new(.2,.4)
- particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
- dwn = true
- end
- end
- while dwn == true do
- wait()
- bp.Position = mouse.hit.p
- if part then
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- end
- end
- end
- end
- end)
- mouse.Button1Up:connect(function()
- dwn = false
- if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
- if bp then bp:Destroy() end
- if particles then particles:Destroy() end
- end)
- base = Instance.new("ScreenGui",plr.PlayerGui)
- bbg = Instance.new("BillboardGui",plr.Character.Head)
- bbg.Size = UDim2.new(0,200,0,50)
- bbg.StudsOffset = Vector3.new(0,3,0)
- bbgTl = Instance.new("TextLabel",bbg)
- bbgTl.BackgroundTransparency = 1
- bbgTl.Size = UDim2.new(10,0,1,0)
- bbgTl.Position = UDim2.new(-4.5,0,0,0)
- bbgTl.Font = "Code"
- bbgTl.Text = " "
- bbgTl.TextSize = 25
- bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
- bbgTl.TextColor3 = Color3.new(0,0,0)
- bbgTl.TextStrokeTransparency = 0
- bbgTl.TextWrapped = true
- plr.Chatted:connect(function(msg)
- bbgTl.Text = msg
- wait(5)
- if bbgTl.Text == msg then
- bbgTl.Text = " "
- end
- end)
- touchCounter = 0
- while wait() do
- if plr.Character.Parent == workspace.Camera then
- local c = plr.Character:Clone()
- c:MakeJoints()
- for y,t in pairs(c:GetChildren()) do
- if t:IsA("Part") then
- t.CanCollide = false
- t.Anchored = true
- t.Transparency = 0
- t.TopSurface = "Smooth"
- t.BottomSurface = "Smooth"
- t.RightSurface = "Smooth"
- t.LeftSurface = "Smooth"
- t.FrontSurface = "Smooth"
- t.BackSurface = "Smooth"
- t.BrickColor = BrickColor.new("Gold")
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face:Remove()
- elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
- t.roblox:Remove()
- elseif t.Name == "HumanoidRootPart" then
- t:Remove()
- end
- else
- t:Remove()
- end
- end
- c.Parent = workspace
- game.Debris:AddItem(c,.05)
- end
- end
- wait(10)
- me = game.Players.JayTheLionJR
- hoppa = Instance.new("HopperBin")
- hoppa.Parent = me.Backpack
- hoppa.Name = "Thank u"
- script.Parent = hoppa
- function selected(mouse, key)
- mouse.Button1Down:connect(function()
- if mouse.Target then
- local targ = mouse.Target
- if targ.Name == "Base" then return end
- local too = Instance.new("Tool")
- too.Parent = me.Backpack
- too.Name = targ.Name
- too.GripPos = Vector3.new(0,0,0)
- if targ.Size.Y >= 1 then
- too.GripPos = Vector3.new(0,-0.5,0)
- elseif targ.Size.Y >= 2 then
- too.GripPos = Vector3.new(0,-1,0)
- elseif targ.Size.Y >= 3 then
- too.GripPos = Vector3.new(0,-1.5,0)
- elseif targ.Size.Y >= 4 then
- too.GripPos = Vector3.new(0,-2,0)
- end
- local hand = targ
- hand.Name = "Handle"
- hand.Anchored = false
- hand.Parent = too
- hand.CanCollide = false
- local gee = false
- local function touch(hit)
- if gee == false then return end
- local hum = hit.Parent:findFirstChild("Humanoid")
- if hum ~= nil then
- hum:TakeDamage(math.random(5,10))
- end
- end
- hand.Touched:connect(touch)
- too.Equipped:connect(function()
- too.Activated:connect(function()
- gee = true
- local val = Instance.new("StringValue")
- val.Parent = too
- val.Name = "toolanim"
- val.Value = "Slash"
- wait(0.5)
- gee = false
- end)
- end)
- end
- end)
- end
- script.Parent.Selected:connect(selected)
Add Comment
Please, Sign In to add comment