Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Name = "_.:| E-Shield |:._"
- --script.Parent = _EShield_
- local LocalPlayer = game:service'Players'.LocalPlayer
- local b, Platform = nil
- local PlayerOnly = false
- local Touched = {}
- local Mouse = LocalPlayer:GetMouse()
- local ShiftDown, CtrlDown, MouseDown, Mouse2Down, MouseDeb, Mouse2Tick = false, false, false, false, false, 0
- function Create()
- if b then pcall(function() b:Destroy() end) end
- if Platform then pcall(function() Platform:Destroy() end) end
- local t = LocalPlayer.Character:FindFirstChild("Torso")
- local posit = Vector3.new(0, 50, 0)
- if t then posit = t.Position end
- Platform = Instance.new("Part")
- Platform.formFactor = "Custom"
- Platform.Size = Vector3.new(10, 1, 10)
- Platform.Transparency = 1
- Platform.Anchored = true
- Platform.CanCollide = true
- b = Instance.new("Part", game:service'Workspace')
- b.Position = posit
- b.Shape = "Ball"
- b.Transparency = 0
- b.Anchored = true
- b.Reflectance = 0.3
- b.Size = Mouse2Down and Vector3.new(25, 25, 25) or Vector3.new(15, 15, 15)
- b.Color = Mouse2Down and Color3.new(1, 0, 0) or Color3.new(0, 0, 1)
- b.TopSurface = "Smooth"
- b.BottomSurface = "Smooth"
- b.Locked = true
- b.CanCollide = false
- b.Changed:connect(function(w)
- if w == "Parent" then
- Create()
- end
- end)
- b.Touched:connect(function(obj)
- if obj.Name ~= "WillNotBeRemoved" and not TouchedStatus(obj) and not obj:IsDescendantOf(LocalPlayer.Character) and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) and obj.Name ~= "Base" and obj.className == "Part" then
- table.insert(Touched, obj)
- if PlayerOnly then
- if GetPlayer(obj) then
- Destroying(obj)
- end
- else
- Destroying(obj)
- end
- end
- end)
- end
- function GetRecursiveChildren(Parent)
- local ret = {}
- for i, v in pairs(Parent:GetChildren()) do
- if #v:GetChildren() > 0 then
- local childs = GetRecursiveChildren(v)
- for i1, v1 in pairs(childs) do
- ret[#ret + 1] = v1
- end
- end
- ret[#ret + 1] = v
- end
- return ret
- end
- function GetPlayer(Target)
- for _,v in pairs(game:service'Players':GetPlayers()) do
- if v.Character ~= nil and Target:IsDescendantOf(v.Character) then
- return v
- end
- end
- return nil
- end
- function TouchedStatus(Target)
- for _,v in pairs(Touched) do
- if v == Target then
- return true
- end
- end
- return false
- end
- function Destroying(obj)
- local ran, err = coroutine.resume(coroutine.create(function()
- if not Mouse2Down then
- obj:BreakJoints()
- obj.CanCollide = false
- obj.Anchored = false
- obj.formFactor = "Custom"
- obj.Size = obj.Size * Vector3.new(math.random(), math.random(), math.random())
- local bp = Instance.new("BodyPosition")
- bp.maxForce = Vector3.new(1/0,1/0,1/0)
- bp.Parent = obj
- local X, Y, Z = nil, nil, nil
- coroutine.wrap(function()
- while obj and obj.Parent do
- X, Y, Z = math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)
- wait(0.3)
- end
- end)()
- coroutine.wrap(function()
- while obj and obj.Parent do
- bp.position = LocalPlayer.Character.Torso.Position + Vector3.new(X, Y, Z)
- wait()
- end
- end)()
- coroutine.wrap(function()
- local transp = 0
- for i = 1, 50 do
- transp = transp + 0.02
- obj.Transparency = transp
- wait(0.05)
- end
- game:service'Debris':AddItem(obj, 0)
- end)()
- elseif Mouse2Down then
- local selbox = Instance.new("SelectionBox", obj)
- selbox.Adornee = obj
- selbox.Color = BrickColor.new("Really red")
- selbox.Transparency = 0
- wait(2)
- coroutine.wrap(function()
- local transp = 0
- local Size, Position = obj.Size, obj.Position
- local brickTable = {}
- game:service'Debris':AddItem(obj, 0)
- for i = 1, math.random(2, 4) do
- local x, y, z = math.random(), math.random(), math.random()
- local Brick = Instance.new("Part")
- Brick.Name = "WillNotBeRemoved"
- Brick.Parent = game:service'Workspace'
- Brick.BrickColor = BrickColor.new("White")
- Brick.Size = Size * Vector3.new(x, y, z)
- Brick.CFrame = CFrame.new(Position) * CFrame.Angles( x * 180, y * 180, z * 180)
- Brick.Locked = true
- Brick.Anchored = false
- Brick.CanCollide = false
- local Selection = Instance.new("SelectionBox", Brick)
- Selection.Adornee = Brick
- Selection.Color = BrickColor.new("White")
- Selection.Transparency = 0
- local BodyVelo = Instance.new("BodyVelocity", Brick)
- BodyVelo.maxForce = Vector3.new(1/0, 1/0, 1/0)
- BodyVelo.velocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
- brickTable[#brickTable + 1] = {Brick, Selection}
- end
- for i = 1, 50 do
- transp = transp + 0.02
- for i1, v in pairs(brickTable) do
- v[1].Transparency = transp
- v[2].Transparency = transp
- end
- wait(0.05)
- end
- --for i, v in pairs(brickTable) do game:service'Debris':AddItem(v[1], 0) game:service'Debris':AddItem(v[2], 0) end
- end)()
- end
- end))
- if not ran then print(".:| EShield |:. " .. err) end
- end
- Create()
- Mouse.Button1Down:connect(function()
- MouseDown = true
- end)
- Mouse.Button1Up:connect(function()
- MouseDown = false
- end)
- Mouse.KeyDown:connect(function(key)
- local key = type(key) == "string" and key:lower() or ""
- if key == "r" then
- print = function() end
- script:Destroy()
- for i, v in pairs(getfenv()) do pcall(function() v:Destroy() end) getfenv()[i] = nil end
- end
- end)
- Mouse.Button2Down:connect(function()
- if not Mouse2Down then
- Mouse2Tick = tick()
- Mouse2Down = true
- coroutine.wrap(function()
- for i = 1.1, 0, -0.1 do if Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
- for i = 0, 1.1, 0.1 do if Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
- end)()
- coroutine.wrap(function()
- for i = 15, 25 do if Mouse2Down then b.Size = Vector3.new(i, i, i) b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position) end wait(0.05) end
- end)()
- end
- end)
- Mouse.Button2Up:connect(function()
- if Mouse2Down then
- if math.floor(tick() - Mouse2Tick) > 1 then
- Mouse2Down = false
- coroutine.wrap(function()
- for i = 1.1, 0, -0.1 do if not Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
- for i = 0, 1.1, 0.1 do if not Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
- end)()
- coroutine.wrap(function()
- for i = 25, 15, -1 do if not Mouse2Down then b.Size = Vector3.new(i, i, i) b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position) end wait(0.05) end
- end)()
- end
- end
- end)
- Mouse.KeyDown:connect(function(key)
- if key == "0" then
- ShiftDown = true
- elseif key == "1" or key == "2" then
- CtrlDown = true
- end
- end)
- Mouse.KeyUp:connect(function(key)
- if key == "0" then
- ShiftDown = false
- elseif key == "1" or key == "2" then
- CtrlDown = false
- end
- end)
- coroutine.wrap(function()
- while wait(0.05) do
- for i = 0.2, 0.8, 0.1 do
- b.Transparency = i
- wait(0.05)
- end
- for i = 0.7, 0.1, -0.1 do
- b.Transparency = i
- wait(0.05)
- end
- end
- end)()
- game:service'RunService'.Stepped:connect(function()
- coroutine.resume(coroutine.create(function()
- b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
- end))
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(Touched) do
- if v.Parent == nil or v == nil then
- table.remove(Touched, i)
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- local Height = LocalPlayer.Character.Torso.CFrame.y - 3.5
- if ShiftDown then
- Height = Height - 0.25
- if CtrlDown then
- Height = Height - 0.75
- end
- end
- local TargetCFrame = LocalPlayer.Character.Torso.CFrame
- local TargetAngle = LocalPlayer.Character.Torso.CFrame.lookVector
- Platform.Parent = game:service'Workspace'.CurrentCamera
- Platform.CFrame = CFrame.new(TargetCFrame.x, Height, TargetCFrame.z)
- Platform.CanCollide = true
- LocalPlayer.Character.Torso.CFrame = TargetCFrame * CFrame.new(0, -(TargetCFrame.y) + Height + 3.5, 0)
- end))
- coroutine.resume(coroutine.create(function()
- if LocalPlayer.Parent ~= nil then
- for i, v in pairs(GetRecursiveChildren(LocalPlayer.Character)) do
- if v.className == "Part" then v.CanCollide = false end
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- if MouseDown and not MouseDeb and not Mouse2Down then
- MouseDeb = true
- coroutine.wrap(function() wait(1) MouseDeb = false end)()
- local dist = Instance.new("Part")
- dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
- dist.formFactor = "Custom"
- dist.Shape = "Ball"
- dist.Name = "WillNotBeRemoved"
- dist.Transparency = 1
- dist.Reflectance = 0.1
- dist.Size = Vector3.new(10, 10, 10)
- dist.BrickColor = BrickColor.new("New Yeller")
- dist.TopSurface = "Smooth"
- dist.Anchored = true
- dist.BottomSurface = "Smooth"
- dist.Locked = true
- dist.CanCollide = false
- dist.Parent = game:service'Workspace'
- dist.Touched:connect(function(obj)
- coroutine.resume(coroutine.create(function()
- local Player = GetPlayer(obj)
- if Player and Player ~= LocalPlayer and Player.Character and Player.Character:FindFirstChild("Torso") then
- local BV = Instance.new("BodyVelocity", Player.Character.Torso)
- BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
- BV.velocity = ((LocalPlayer.Character.Torso.Position - Player.Character.Torso.Position).unit * -50)
- game:service'Debris':AddItem(BV, 1)
- elseif not Player and obj ~= b and obj.Name ~= "Base" and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) then
- obj:BreakJoints()
- obj.Anchored = false
- obj.CanCollide = false
- local BV = Instance.new("BodyVelocity", obj)
- BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
- BV.velocity = ((LocalPlayer.Character.Torso.Position - obj.Position).unit * -50)
- game:service'Debris':AddItem(BV, 1)
- end
- end))
- end)
- coroutine.wrap(function()
- for i = 1, 100 do
- dist.Transparency = dist.Transparency + 0.01
- dist.Size = dist.Size + Vector3.new(1, 1, 1)
- dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
- wait()
- end
- game:service'Debris':AddItem(dist, 0)
- end)()
- end
- end))
- end)
- local me = game:GetService("Players").LocalPlayer
- local ShieldSize = 3
- local canCollide = false
- local isLocked = false
- local defaultTransparency = 1
- local whitelist = {"", "", "", ""}
- local scriptBreak = false
- local followPart = me.Character.HumanoidRootPart
- local actualList = {}
- local playerList = {}
- table.insert(playerList, me)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- for _,wplay in pairs(whitelist) do
- if v.Name:lower() == wplay:lower() then
- table.insert(playerList, v)
- end
- end
- end
- local MainLocation = me.Character.Torso
- function createShield()
- pcall(function()
- pcall(function()
- for i,v in pairs(MainLocation:GetChildren()) do
- if v.Name == "weinershield" then
- v:Destroy()
- end
- end
- end)
- local mod = Instance.new("Model", MainLocation)
- mod.Name = "weinershield"
- local p1 = Instance.new("Part", mod)
- p1.Name = "front"
- p1.Size = Vector3.new(ShieldSize,ShieldSize,1)
- p1.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z+(ShieldSize/2))
- local b = Instance.new("BlockMesh", p1)
- b.Scale = Vector3.new(1, 1, 0)
- local p2 = Instance.new("Part", mod)
- p2.Name = "back"
- p2.Size = Vector3.new(ShieldSize,ShieldSize,1)
- p2.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z-(ShieldSize/2))
- local b = Instance.new("BlockMesh", p2)
- b.Scale = Vector3.new(1, 1, 0)
- local p3 = Instance.new("Part", mod)
- p3.Name = "left"
- p3.Size = Vector3.new(1,ShieldSize,ShieldSize)
- p3.CFrame = CFrame.new(followPart.Position.X+(ShieldSize/2), followPart.Position.Y, followPart.Position.Z)
- local b = Instance.new("BlockMesh", p3)
- b.Scale = Vector3.new(0, 1, 1)
- local p4 = Instance.new("Part", mod)
- p4.Name = "right"
- p4.Size = Vector3.new(1,ShieldSize,ShieldSize)
- p4.CFrame = CFrame.new(followPart.Position.X-(ShieldSize/2), followPart.Position.Y, followPart.Position.Z)
- local b = Instance.new("BlockMesh", p4)
- b.Scale = Vector3.new(0, 1, 1)
- local p5 = Instance.new("Part", mod)
- p5.Name = "top"
- p5.Size = Vector3.new(ShieldSize,1,ShieldSize)
- p5.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y+(ShieldSize/2), followPart.Position.Z)
- local b = Instance.new("BlockMesh", p5)
- b.Scale = Vector3.new(1, 0, 1)
- local p6 = Instance.new("Part", mod)
- p6.Name = "bottom"
- p6.Size = Vector3.new(ShieldSize,1,ShieldSize)
- p6.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y-(ShieldSize/2), followPart.Position.Z)
- local b = Instance.new("BlockMesh", p6)
- b.Scale = Vector3.new(1, 0, 1)
- for i,v in pairs(mod:GetChildren()) do
- v.Anchored = true
- v.Transparency = defaultTransparency
- v.Material = "Neon"
- v.TopSurface = "Smooth"
- v.BottomSurface = "Smooth"
- v.CanCollide = canCollide
- end
- mod.ChildRemoved:connect(function(a)
- game:GetService("RunService").Stepped:wait()
- if a.ClassName == "Part" then
- createShield()
- end
- end)
- end)
- end
- function updateShield()
- pcall(function()
- char = me.Character
- for i,v in pairs(MainLocation:findFirstChild("weinershield"):GetChildren()) do
- v.Anchored = true
- v.Transparency = defaultTransparency
- v.Material = "Neon"
- v.TopSurface = "Smooth"
- v.BottomSurface = "Smooth"
- v.CanCollide = canCollide
- end
- MainLocation:findFirstChild("weinershield").front.Size = Vector3.new(ShieldSize,ShieldSize,1)
- MainLocation:findFirstChild("weinershield").front.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z+(ShieldSize/2))
- MainLocation:findFirstChild("weinershield").back.Size = Vector3.new(ShieldSize,ShieldSize,1)
- MainLocation:findFirstChild("weinershield").back.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z-(ShieldSize/2))
- MainLocation:findFirstChild("weinershield").left.Size = Vector3.new(1,ShieldSize,ShieldSize)
- MainLocation:findFirstChild("weinershield").left.CFrame = CFrame.new(followPart.Position.X+(ShieldSize/2), followPart.Position.Y, followPart.Position.Z)
- MainLocation:findFirstChild("weinershield").right.Size = Vector3.new(1,ShieldSize,ShieldSize)
- MainLocation:findFirstChild("weinershield").right.CFrame = CFrame.new(followPart.Position.X-(ShieldSize/2), followPart.Position.Y, followPart.Position.Z)
- MainLocation:findFirstChild("weinershield").top.Size = Vector3.new(ShieldSize,1,ShieldSize)
- MainLocation:findFirstChild("weinershield").top.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y+(ShieldSize/2), followPart.Position.Z)
- MainLocation:findFirstChild("weinershield").bottom.Size = Vector3.new(ShieldSize,1,ShieldSize)
- MainLocation:findFirstChild("weinershield").bottom.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y-(ShieldSize/2), followPart.Position.Z)
- end)
- end
- local function CreateRegion3FromLocAndSize(Position, Size)
- local SizeOffset = Size/2
- local Point1 = Position - SizeOffset
- local Point2 = Position + SizeOffset
- return Region3.new(Point1, Point2)
- end
- createShield()
- game:GetService("RunService").Heartbeat:connect(function()
- if not scriptBreak then
- local me = game:GetService("Players").LocalPlayer
- local char = workspace:findFirstChild(me.Name)
- actualList = {}
- for i,v in pairs(playerList) do
- pcall(function()
- table.insert(actualList, workspace:findFirstChild(v.Name))
- end)
- end
- if MainLocation:findFirstChild("weinershield") ~= nil then
- updateShield()
- else
- createShield()
- end
- pcall(function()
- local Region = CreateRegion3FromLocAndSize(followPart.Position, Vector3.new(ShieldSize+1,ShieldSize+1,ShieldSize+1))
- for _,Part in pairs(workspace:FindPartsInRegion3WithIgnoreList(Region,actualList,math.huge)) do
- if Part.Name ~= "Base" and not Part:isDescendantOf(MainLocation:findFirstChild("weinershield")) then
- Part:Destroy()
- end
- end
- end)
- pcall(function()
- for i,v in pairs(actualList) do
- if v:findFirstChild("Humanoid") ~= nil then
- v.Humanoid.MaxHealth = math.huge
- v.Humanoid.Health = math.huge
- else
- Instance.new("Humanoid", v)
- end
- end
- end)
- end
- end)
- ----------------------Pixel Wolf Shield------------------------------------------------
- script=game.Workspace
- name = "JayTheLionJR"
- Admin = Game.Players[name]
- Char = Admin.Character
- mode = "Size10"
- ------------------------------ 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 = .98
- Shield.Position = Char.Torso.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 = 1000000
- 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("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)
- -------------------------------
- p = game.Players.LocalPlayer
- char = p.Character
- local char = p.Character
- torso = char.Torso
- neck = char.Torso.Neck
- hum = char.Humanoid
- Player = game:GetService("Players").LocalPlayer
- Character = Player.Character
- tors = Character.Torso
- root = Character.HumanoidRootPart
- lleg = Character["Left Leg"]
- hed = Character.Head
- rleg = Character["Right Leg"]
- rarm = Character["Right Arm"]
- larm = Character["Left Arm"]
- ypcall(function()
- for i,v in pairs(Character:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Hair") then
- v:Destroy()
- end
- end
- end)
- CV="Hot pink"
- local txt = Instance.new("BillboardGui", char)
- txt.Adornee = char .Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Highway"
- text.TextStrokeColor3 = BrickColor.new("Really black").Color
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=p.Character
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=char.Torso.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = BrickColor.new("Black").Color
- v.Shape="Block"
- text.Text = "THE MAN WHO CANT BE touched "
- hed.face.Texture = "http://www.roblox.com/asset/?id=0"
- hed.Transparency = 0
- rleg.Transparency = 0
- rarm.Transparency = 0
- larm.Transparency = 0
- lleg.Transparency = 0
- tors.Transparency = 0
- Player = game:GetService("Players").LocalPlayer
- Character = Player.Character
- rarm = Character["Right Arm"]
- larm = Character["Left Arm"]
- vt = Vector3.new
- bc = BrickColor.new
- wit = bc("Deep orange").Color
- local prth = Instance.new("Part",Character)
- prth.Size = vt(1.25,1.25,1.25)
- prth.CanCollide = false
- prth.Material = "Neon"
- prth.Transparency = 0.5
- prth.BrickColor = bc("Deep orange")
- local wldh = Instance.new("Weld",Character)
- wldh.Part0 = hed
- wldh.Part1 = prth
- local prtrm = Instance.new("Part",Character)
- prtrm.Size = vt(2.1,2.1,1.1)
- prtrm.CanCollide = false
- prtrm.Transparency = 0.5
- prtrm.Material = "Neon"
- prtrm.BrickColor = bc("Deep orange")
- local wldm = Instance.new("Weld",Character)
- wldm.Part0 = root
- wldm.Part1 = prtrm
- local prtr = Instance.new("Part",Character)
- prtr.Size = vt(1.1,2.1,1.1)
- prtr.CanCollide = false
- prtr.Transparency = 0.5
- prtr.Material = "Neon"
- prtr.BrickColor = bc("Deep orange")
- local prtrl = Instance.new("Part",Character)
- prtrl.Size = vt(1.1,2.1,1.1)
- prtrl.CanCollide = false
- prtrl.Transparency = 0.5
- prtrl.Material = "Neon"
- prtrl.BrickColor = bc("Deep orange")
- local eff = Instance.new("ParticleEmitter",prtr)
- eff.LightEmission = 1
- eff.Texture = "rbxassetid://284205403"
- eff.Color = ColorSequence.new(wit)
- eff.Size = NumberSequence.new(0.5,1)
- eff.Acceleration = vt(0,25,0)
- eff.Speed = NumberRange.new(-5)
- eff.LockedToPart = false
- eff.Transparency = NumberSequence.new(0.95)
- eff.Lifetime = NumberRange.new(0.5)
- eff.Rate = 100000
- eff.VelocitySpread = 25
- local wld = Instance.new("Weld",Character)
- wld.Part0 = rarm
- wld.Part1 = prtr
- local wldl = Instance.new("Weld",Character)
- wldl.Part0 = rleg
- wldl.Part1 = prtrl
- local prtr2 = Instance.new("Part",Character)
- prtr2.Size = vt(1.1,2.1,1.1)
- prtr2.CanCollide = false
- prtr2.Transparency = 0.5
- prtr2.Material = "Neon"
- prtr2.BrickColor = bc("Deep orange")
- local prtrl2 = Instance.new("Part",Character)
- prtrl2.Size = vt(1.1,2.1,1.1)
- prtrl2.CanCollide = false
- prtrl2.Transparency = 0.5
- prtrl2.Material = "Neon"
- prtrl2.BrickColor = bc("Deep orange")
- local eff2 = Instance.new("ParticleEmitter",prtr2)
- eff2.LightEmission = 1
- eff2.Texture = "rbxassetid://284205403"
- eff2.Color = ColorSequence.new(wit)
- eff2.Size = NumberSequence.new(0.5,1)
- eff2.Acceleration = vt(0,25,0)
- eff2.Speed = NumberRange.new(-5)
- eff2.LockedToPart = false
- eff2.Transparency = NumberSequence.new(0.95)
- eff2.Lifetime = NumberRange.new(0.5)
- eff2.Rate = 100000
- eff2.VelocitySpread = 25
- local wld2 = Instance.new("Weld",Character)
- wld2.Part0 = larm
- wld2.Part1 = prtr2
- local wldl2 = Instance.new("Weld",Character)
- wldl2.Part0 = lleg
- wldl2.Part1 = prtrl2
- local mouse = game.Players.LocalPlayer:GetMouse()
- tors = game.Players.LocalPlayer.Character.Torso
- vt = Vector3.new
- bc = BrickColor.new
- local Effect = Instance.new("Part",game.Lighting)
- Effect.BrickColor = bc("Deep orange")
- Effect.Transparency = 1
- Effect.Anchored = true
- Effect.CanCollide = false
- Effect.Material = "Neon"
- Effect.Shape = "Ball"
- Effect.Size = vt(5,5,5)
- local fire1 = Instance.new("Fire",Effect)
- fire1.Name = "Fire"
- fire1.Heat = 0
- fire1.Size = 30
- fire1.SecondaryColor = bc("Really black").Color
- fire1.Color = bc("Deep orange").Color
- local fire2 = Instance.new("Fire",Effect)
- fire2.Name = "Fire2"
- fire2.Heat = 0
- fire2.Size = 25
- fire2.SecondaryColor = bc("Really black").Color
- fire2.Color = bc("Neon orange").Color
- function Explode(rad,par)
- local expart = Instance.new("Part",script.Parent)
- local expart2 = Instance.new("Part",script.Parent)
- local snd = Instance.new("Sound",expart)
- snd.SoundId = "rbxassetid://258057783"
- snd.Volume = 2.5
- local partMesh = Instance.new("SpecialMesh",expart)
- partMesh.MeshType = "Sphere"
- local partMesh2 = Instance.new("SpecialMesh",expart2)
- partMesh2.MeshType = "Sphere"
- local expld = Instance.new("Explosion", script.Parent)
- expld.BlastRadius = rad
- expld.Position = par.Position
- partMesh.Scale = vt(rad,rad,rad)
- expart.Size = vt(1,1,1)*1.5
- expart.Transparency = 0.5
- expart.Anchored = true
- expart.Material = "Neon"
- expart.BrickColor = bc("Deep orange")
- expart.CFrame = par.CFrame
- partMesh2.Scale = vt(rad,rad,rad)
- expart2.Size = vt(1.15,1.15,1.15)*1.5
- expart2.Transparency = 0.5
- expart2.Anchored = true
- expart2.Material = "Neon"
- expart2.BrickColor = bc("Bright orange")
- expart2.CFrame = par.CFrame
- snd:Play()
- for i = 0, 100 do
- expart.Transparency = expart.Transparency + 0.005
- partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25)
- expart.CFrame = expart.CFrame
- expart2.Transparency = expart.Transparency + 0.005
- partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25)
- expart2.CFrame = expart.CFrame
- wait(0)
- end
- snd.Parent = nil
- expart.Parent = nil
- expart2.Parent = nil
- expld.Parent = nil
- end
- function Explode2(rad,par)
- local expart = Instance.new("Part",script.Parent)
- local expart2 = Instance.new("Part",script.Parent)
- local snd = Instance.new("Sound",expart)
- snd.SoundId = "rbxassetid://165969964"
- snd.Volume = 3
- local partMesh = Instance.new("SpecialMesh",expart)
- partMesh.MeshType = "Sphere"
- local partMesh2 = Instance.new("SpecialMesh",expart2)
- partMesh2.MeshType = "Sphere"
- local expld = Instance.new("Explosion", script.Parent)
- expld.BlastRadius = rad
- expld.Position = par.Position
- partMesh.Scale = vt(rad,rad,rad)
- expart.Size = vt(1,1,1)*1.5
- expart.Transparency = 0.5
- expart.Anchored = true
- expart.Material = "Neon"
- expart.BrickColor = bc("Deep orange")
- expart.CFrame = par.CFrame
- partMesh2.Scale = vt(rad,rad,rad)
- expart2.Size = vt(1.15,1.15,1.15)*1.5
- expart2.Transparency = 0.5
- expart2.Anchored = true
- expart2.Material = "Neon"
- expart2.BrickColor = bc("Bright orange")
- expart2.CFrame = par.CFrame
- snd:Play()
- for i = 0, 100 do
- expart.Transparency = expart.Transparency + 0.005
- partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25)
- expart.CFrame = expart.CFrame
- expart2.Transparency = expart.Transparency + 0.005
- partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25)
- expart2.CFrame = expart.CFrame
- wait(0)
- end
- snd.Parent = nil
- expart.Parent = nil
- expart2.Parent = nil
- expld.Parent = nil
- end
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k == "q" then
- local spart = Effect:Clone()
- spart.Parent = game.Players.LocalPlayer.Character
- spart.Transparency = 0
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*5
- wait()
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*15
- wait()
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*25
- wait()
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*35
- wait()
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*45
- wait()
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*55
- wait()
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*65
- wait()
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*75
- wait()
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*85
- wait()
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*95
- wait()
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*105
- spart.Transparency = 1
- spart.Fire2:Destroy()
- spart.Fire:Destroy()
- Explode(25,spart)
- spart:Destroy()
- end
- if k == "e" then
- local spart = Effect:Clone()
- spart.Parent = game.Players.LocalPlayer.Character
- spart.Transparency = 0
- spart.Anchored = false
- spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*0
- spart.Position = spart.Position + vt(0,100,0)
- spart.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*150
- wait(1)
- spart.Transparency = 1
- spart.Fire2:Destroy()
- spart.Fire:Destroy()
- Explode2(75,spart)
- spart:Destroy()
- end
- if k == "r" then
- local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character)
- game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*275
- wait(0.75)
- game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*-165
- Explode(30,game.Players.LocalPlayer.Character.Torso)
- wait(0.5)
- ff:Destroy()
- end
- if k == "f" then
- local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character)
- for i = 0, 10 do
- game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,10,0)
- wait(0)
- end
- for i = 0, 5 do
- game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,1,0)
- wait(0)
- end
- game.Players.LocalPlayer.Character.Torso.Anchored = true
- wait(1.5)
- game.Players.LocalPlayer.Character.Torso.Anchored = false
- for i = 0, 10 do
- game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,-1,0)
- wait(0)
- end
- wait(0.25)
- Explode2(62.5,game.Players.LocalPlayer.Character.Torso)
- wait(0.5)
- ff:Destroy()
- end
- end)
- local time = tick()
- local plr = game:GetService("Players").LocalPlayer
- local mouse,char = plr:GetMouse(),plr.Character
- local amountGhosts = 5
- for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
- local toggle,cd,mcd = false,false,false
- local ghosts = {}
- local temptab = {}
- char:WaitForChild("Animate"):Destroy()
- char.Humanoid:WaitForChild("Animator"):Destroy()
- local state = "idle"
- local gt = false
- local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit
- gyro.MaxTorque = Vector3.new(0,0,0)
- gyro.D = 0
- gyro.P = 100000000
- local wCol = BrickColor.new("Really red")
- local wCol2 = BrickColor.new("Really black")
- local gCol = BrickColor.new("Toothpaste")
- local gCol2 = BrickColor.new("Institutional white")
- function searchAll(m,clear)
- if clear then
- if clear == true then
- for i,v in pairs(temptab) do
- table.remove(temptab,1)
- end
- end
- end
- for i,v in pairs(m:GetChildren()) do
- if v then
- local s = v:Clone()
- for _,b in pairs(s:GetChildren()) do
- b:Destroy()
- end
- if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then
- if s.Name ~= "HumanoidRootPart" then
- s.Anchored = true
- s.CanCollide = false
- s.Transparency = 0.95
- s.TopSurface = "Smooth"
- s.BottomSurface = "Smooth"
- s.FrontSurface = "Smooth"
- s.RightSurface = "Smooth"
- s.BackSurface = "Smooth"
- s.LeftSurface = "Smooth"
- if s.Material ~= Enum.Material.Neon then
- if gt == true then
- s.BrickColor = wCol2
- else
- s.BrickColor = gCol2
- end
- else
- if gt == true then
- s.BrickColor = wCol
- else
- s.BrickColor = gCol
- end
- end
- for _,c in pairs(v:GetChildren()) do
- if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then
- c:Clone().Parent = s
- end
- end
- local objValue = Instance.new("ObjectValue",s)
- objValue.Name = "Target"
- objValue.Value = v
- table.insert(temptab,s)
- end
- --elseif s:IsA("CharacterMesh") then
- --table.insert(temptab,s)
- end
- --searchAll(v)
- end
- end
- return temptab
- end
- function CreateGhost()
- local ghost = Instance.new("Model",game.Workspace)
- searchAll(char,true)
- ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name
- --Instance.new("Humanoid",ghost)
- for i,v in pairs(temptab) do
- v:Clone().Parent = ghost
- end
- table.insert(ghosts,ghost)
- end
- function ClearGhosts()
- for i,v in pairs(ghosts) do
- v:Destroy()
- end
- for i,v in pairs(ghosts) do
- table.remove(ghosts,1)
- end
- for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
- if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then
- v:Destroy()
- end
- end
- end
- Instance.new("ForceField",char).Visible = false
- local e1 = Instance.new("Part",char)
- e1.Size = Vector3.new(0.2,0.2,0.2)
- e1.TopSurface = "Smooth"
- e1.BottomSurface = "Smooth"
- e1.Material = "Neon"
- e1.Transparency = 1
- e1.Anchored = true
- e1.CanCollide = false
- e1.BrickColor = gCol
- e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6)
- local em1 = Instance.new("SpecialMesh",e1)
- em1.MeshType = "Sphere"
- local e2 = Instance.new("Part",char)
- e2.Size = Vector3.new(0.2,0.2,0.2)
- e2.TopSurface = "Smooth"
- e2.BottomSurface = "Smooth"
- e2.Transparency = 1
- e2.Material = "Neon"
- e2.Anchored = true
- e2.CanCollide = false
- e2.BrickColor = gCol
- e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6)
- local em2 = Instance.new("SpecialMesh",e2)
- em2.MeshType = "Sphere"
- toggle = true
- for i=1,amountGhosts do
- CreateGhost()
- end
- char.Parent = game:GetService("Workspace").CurrentCamera
- char:FindFirstChild("Head").Transparency = 0
- char:FindFirstChild("Torso").Transparency = 0
- char:FindFirstChild("Right Arm").Transparency = 0
- char:FindFirstChild("Left Arm").Transparency = 0
- char:FindFirstChild("Right Leg").Transparency = 0
- char:FindFirstChild("Left Leg").Transparency = 0
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 1
- end
- end
- char:FindFirstChild("Head"):FindFirstChild("face"):Destroy()
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(5,5,5)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- p1.BrickColor = gCol
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(8,8,8)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- p2.BrickColor = gCol2
- p2.Material = "Neon"
- local p3 = Instance.new("Part",workspace)
- local m3 = Instance.new("BlockMesh",p3)
- m3.Scale = Vector3.new(7,7,7)
- p3.Size = Vector3.new(1,1,1)
- p3.Transparency = 0.4
- p3.Anchored = true
- p3.CanCollide = false
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p3.BrickColor = gCol
- p3.Material = "Neon"
- local p4 = Instance.new("Part",workspace)
- local m4 = Instance.new("BlockMesh",p4)
- m4.Scale = Vector3.new(10,10,10)
- p4.Size = Vector3.new(1,1,1)
- p4.Transparency = 0.4
- p4.Anchored = true
- p4.CanCollide = false
- p4.TopSurface = "Smooth"
- p4.BottomSurface = "Smooth"
- p4.BrickColor = gCol2
- p4.Material = "Neon"
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 1*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
- m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
- m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
- m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
- p1.Transparency = p1.Transparency + (1/(1*60))
- p2.Transparency = p2.Transparency + (1/(1*60))
- p3.Transparency = p3.Transparency + (1/(1*60))
- p4.Transparency = p4.Transparency + (1/(1*60))
- else
- p1:Destroy()
- p2:Destroy()
- p3:Destroy()
- p4:Destroy()
- frmR:disconnect()
- end
- end)
- char.Humanoid.MaxHealth = math.huge
- wait()
- char.Humanoid.Health = math.huge
- --[[mouse.KeyDown:connect(function(key)
- if key == "r" then
- print("R!")
- if cd == false then
- print("No cooldown!")
- cd = true
- if toggle == false then
- print("Entering godmode")
- toggle = true
- Instance.new("ForceField",char)
- for i=1,amountGhosts do
- CreateGhost()
- end
- char.Parent = game:GetService("Workspace").CurrentCamera
- char:FindFirstChild("Head").Transparency = 0
- char:FindFirstChild("Torso").Transparency = 0
- char:FindFirstChild("Right Arm").Transparency = 0
- char:FindFirstChild("Left Arm").Transparency = 0
- char:FindFirstChild("Right Leg").Transparency = 0
- char:FindFirstChild("Left Leg").Transparency = 0
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 1
- end
- end
- else
- print("Exiting godmode")
- toggle = false
- for i,v in pairs(ghosts) do
- v:Destroy()
- end
- char.Parent = game:GetService("Workspace")
- char:FindFirstChild("ForceField"):Destroy()
- char:FindFirstChild("Head").Transparency = 0
- char:FindFirstChild("Torso").Transparency = 0
- char:FindFirstChild("Right Arm").Transparency = 0
- char:FindFirstChild("Left Arm").Transparency = 0
- char:FindFirstChild("Right Leg").Transparency = 0
- char:FindFirstChild("Left Leg").Transparency = 0
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 0
- end
- end
- end
- cd = false
- end
- end
- end)]]
- mouse.KeyDown:connect(function(key)
- spawn(function()
- if key == "f" and toggle == true and mcd == false then
- if #ghosts < amountGhosts then
- print(#ghosts.."<")
- mcd = true
- ClearGhosts()
- for i=1,amountGhosts do
- CreateGhost()
- end
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(7,7,7)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- if gt == false then
- p1.BrickColor = gCol
- else
- p1.BrickColor = wCol
- end
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(9,9,9)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- if gt == false then
- p2.BrickColor = gCol2
- else
- p2.BrickColor = wCol2
- end
- p2.Material = "Neon"
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 0.25*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p1.Transparency = p1.Transparency + (1/(0.25*60))
- p2.Transparency = p2.Transparency + (1/(0.25*60))
- else
- p1:Destroy()
- p2:Destroy()
- mcd = false
- frmR:disconnect()
- end
- end)
- else
- mcd = true
- ClearGhosts()
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(7,7,7)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- if gt == false then
- p1.BrickColor = gCol
- else
- p1.BrickColor = wCol
- end
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(9,9,9)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- if gt == false then
- p2.BrickColor = gCol2
- else
- p2.BrickColor = wCol2
- end
- p2.Material = "Neon"
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 0.25*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p1.Transparency = p1.Transparency + (1/(0.25*60))
- p2.Transparency = p2.Transparency + (1/(0.25*60))
- else
- p1:Destroy()
- p2:Destroy()
- mcd = false
- frmR:disconnect()
- end
- end)
- end
- elseif key == "g" and toggle == true and mcd == false then
- if gt == true then
- gt = false
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(5,5,5)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- p1.BrickColor = gCol
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(8,8,8)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- p2.BrickColor = gCol2
- p2.Material = "Neon"
- local p3 = Instance.new("Part",workspace)
- local m3 = Instance.new("BlockMesh",p3)
- m3.Scale = Vector3.new(7,7,7)
- p3.Size = Vector3.new(1,1,1)
- p3.Transparency = 0.4
- p3.Anchored = true
- p3.CanCollide = false
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p3.BrickColor = gCol
- p3.Material = "Neon"
- local p4 = Instance.new("Part",workspace)
- local m4 = Instance.new("BlockMesh",p4)
- m4.Scale = Vector3.new(10,10,10)
- p4.Size = Vector3.new(1,1,1)
- p4.Transparency = 0.4
- p4.Anchored = true
- p4.CanCollide = false
- p4.TopSurface = "Smooth"
- p4.BottomSurface = "Smooth"
- p4.BrickColor = gCol2
- p4.Material = "Neon"
- ClearGhosts()
- for i=1,amountGhosts do
- CreateGhost()
- end
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 1*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
- m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
- m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
- m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
- p1.Transparency = p1.Transparency + (1/(1*60))
- p2.Transparency = p2.Transparency + (1/(1*60))
- p3.Transparency = p3.Transparency + (1/(1*60))
- p4.Transparency = p4.Transparency + (1/(1*60))
- else
- p1:Destroy()
- p2:Destroy()
- p3:Destroy()
- p4:Destroy()
- frmR:disconnect()
- end
- end)
- else
- gt = true
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(5,5,5)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- p1.BrickColor = wCol
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(8,8,8)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- p2.BrickColor = wCol2
- p2.Material = "Neon"
- local p3 = Instance.new("Part",workspace)
- local m3 = Instance.new("BlockMesh",p3)
- m3.Scale = Vector3.new(7,7,7)
- p3.Size = Vector3.new(1,1,1)
- p3.Transparency = 0.4
- p3.Anchored = true
- p3.CanCollide = false
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p3.BrickColor = wCol
- p3.Material = "Neon"
- local p4 = Instance.new("Part",workspace)
- local m4 = Instance.new("BlockMesh",p4)
- m4.Scale = Vector3.new(10,10,10)
- p4.Size = Vector3.new(1,1,1)
- p4.Transparency = 0.4
- p4.Anchored = true
- p4.CanCollide = false
- p4.TopSurface = "Smooth"
- p4.BottomSurface = "Smooth"
- p4.BrickColor = wCol2
- p4.Material = "Neon"
- ClearGhosts()
- for i=1,amountGhosts do
- CreateGhost()
- end
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 1*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
- m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
- m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
- m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
- p1.Transparency = p1.Transparency + (1/(1*60))
- p2.Transparency = p2.Transparency + (1/(1*60))
- p3.Transparency = p3.Transparency + (1/(1*60))
- p4.Transparency = p4.Transparency + (1/(1*60))
- else
- p1:Destroy()
- p2:Destroy()
- p3:Destroy()
- p4:Destroy()
- frmR:disconnect()
- end
- end)
- end
- end
- end)
- end)
- local frm = 0
- local toRemove = {}
- game:GetService("RunService").RenderStepped:connect(function()
- frm = frm + 1
- if char.Parent == game:GetService("Workspace").CurrentCamera then
- e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55)
- e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55)
- local delay = 0.9
- for i,v in pairs(ghosts) do
- for _,b in pairs(v:GetChildren()) do
- if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then
- b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay)
- end
- end
- delay = delay - (0.5/(#ghosts+1))
- end
- --[[if math.floor(frm/8) == frm/8 then
- local isub = 0
- for i,v in pairs(ghosts) do
- if #v:GetChildren() < 6 then
- v:Destroy()
- table.remove(ghosts,i - isub)
- isub = isub + 1
- CreateGhost()
- end
- end
- end]]
- end
- --Animation states
- local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4)
- local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true)
- if state ~= "busy" then
- if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
- state = "idle"
- elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then
- state = "running"
- --[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then
- state = "falling"
- elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then
- state = "jumping"]]
- end
- char.Humanoid.WalkSpeed = 50
- char.Humanoid.JumpPower = 70
- end
- --Actual animations
- if state == "idle" then
- char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(80 + math.cos(tick())*4),math.rad(180),math.rad(0)),0.06)
- char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
- char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
- char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.43 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
- char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(-15 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
- char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
- elseif state == "running" then
- char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(65 + math.cos(tick())*4),math.rad(180),math.rad(-char.HumanoidRootPart.RotVelocity.Y*10)),0.06)
- char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
- char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
- char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.70 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(50 + math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
- char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(-35 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
- char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
- end
- end)
- char.Humanoid.Died:connect(function()
- toggle = false
- ClearGhosts()
- char.Parent = game.Workspace
- char.Parent = game:GetService("Workspace")
- char:FindFirstChild("ForceField"):Destroy()
- char:FindFirstChild("Head").Transparency = 0
- char:FindFirstChild("Torso").Transparency = 0
- char:FindFirstChild("Right Arm").Transparency = 0
- char:FindFirstChild("Left Arm").Transparency = 0
- char:FindFirstChild("Right Leg").Transparency = 0
- char:FindFirstChild("Left Leg").Transparency = 0
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 0
- end
- end
- for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
- plr:LoadCharacter()
- end)
- local msgidGlob = 0
- local state = true
- local font = "Arcade"
- local tcol = Color3.fromRGB(255,217,0)
- local tscol = Color3.fromRGB(0,0,0)
- local fsiz = 28
- local tr = true
- local tsr = false
- local fade = 2
- local p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(0.2,0.2,0.2)
- p.Transparency = 1
- p.Anchored = true
- p.CanCollide = false
- p.Name = "Msg"
- p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
- local r = 255
- local b = 0
- local g = 0
- plr.Chatted:connect(function(c)
- msgidGlob = msgidGlob + 1
- local curMsgId = msgidGlob
- if string.lower(c) == "!disable" then
- state = false
- elseif string.lower(c) == "!enable" then
- state = true
- elseif string.lower(string.sub(c,1,6)) == "!font " then
- local old = font
- font = string.sub(c,7,#c) or old
- elseif string.lower(string.sub(c,1,8)) == "!tcolor " then
- if string.lower(string.sub(c,9,#c)) == "rainbow" then
- tr = true
- else
- tr = false
- local old = tcol
- tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old
- end
- elseif string.lower(string.sub(c,1,9)) == "!tscolor " then
- if string.sub(c,10,#c) == "rainbow" then
- tsr = true
- else
- tsr = false
- local old = tscol
- tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old
- end
- elseif string.lower(string.sub(c,1,6)) == "!size " then
- local old = fsiz
- fsiz = string.sub(c,7,#c) or old
- elseif string.lower(string.sub(c,1,6)) == "!fade " then
- local old = fade
- fade = string.sub(c,7,#c) or old
- end
- if plr.Character and state == true then
- if plr.Character:FindFirstChild("Head") then
- for i,v in pairs(p:GetChildren()) do
- if v:IsA("BillboardGui") and v.Name == "J2CMSG" then
- v:Destroy()
- end
- end
- local bbgui = Instance.new("BillboardGui",p)
- bbgui.Name = "J2CMSG"
- bbgui.AlwaysOnTop = true
- bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0)
- bbgui.Size = UDim2.new(0.2,0,0.14,0)
- local tl = Instance.new("TextLabel",bbgui)
- tl.BackgroundTransparency = 1
- tl.BorderSizePixel = 0
- tl.Size = UDim2.new(1,0,10,0)
- tl.Position = UDim2.new(0,0,-5,0)
- tl.Font = font or "SciFi"
- tl.FontSize = "Size"..fsiz or "Size36"
- tl.TextColor3 = tcol
- tl.TextScaled = false
- tl.TextWrapped = false
- tl.TextStrokeColor3 = tscol
- tl.TextStrokeTransparency = 0
- game:GetService("RunService").RenderStepped:connect(function()
- if tr then
- if tl.Parent ~= nil then
- tl.TextColor3 = Color3.fromRGB(r,g,b)
- end
- end
- end)
- for i=1,#c do
- if msgidGlob == curMsgId then
- tl.Text = string.sub(c,1,i)
- if string.sub(c,i,i) ~= " " then
- local s = Instance.new("Sound",p)
- s.SoundId = "rbxassetid://418252437"
- s.Volume = 1
- s.Pitch = 1
- s:Play()
- game.Debris:AddItem(s,2)
- end
- wait()
- end
- end
- wait(fade)
- if msgidGlob == curMsgId then
- for i=1,10 do
- if msgidGlob == curMsgId then
- tl.TextTransparency = tl.TextTransparency + 0.1
- tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
- tl.Position = tl.Position + UDim2.new(0,0,0,-3)
- wait()
- end
- end
- if msgidGlob == curMsgId then
- bbgui:Destroy()
- end
- end
- end
- end
- end)
- coroutine.resume(coroutine.create(function()
- while wait() do
- for i=0,255,10 do g = i wait() end
- for i=255,0,-10 do r = i wait() end
- for i=0,255,10 do b = i wait() end
- for i=255,0,-10 do g = i wait() end
- for i=0,255,10 do r = i wait() end
- for i=255,0,-10 do b = i wait() end
- end
- end))
- game:GetService("RunService").RenderStepped:connect(function()
- if p.Parent ~= nil then
- p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16)
- else
- p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(0.2,0.2,0.2)
- p.Transparency = 1
- p.Anchored = true
- p.CanCollide = false
- p.Name = "Msg"
- p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
- end
- end)
- print("Ghost loaded! Time elapsed: "..tick() - time)
Add Comment
Please, Sign In to add comment