Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chatting = false
- local currentgui
- local currentline = 2
- BillboardGui0 = Instance.new("BillboardGui")
- TextLabel1 = Instance.new("TextLabel")
- TextLabel2 = Instance.new("TextLabel")
- BillboardGui0.LightInfluence = 0
- BillboardGui0.Size = UDim2.new(0, 200, 0, 50)
- BillboardGui0.ClipsDescendants = false
- BillboardGui0.ZIndexBehavior = Enum.ZIndexBehavior.Global
- BillboardGui0.AlwaysOnTop = true
- BillboardGui0.ExtentsOffset = Vector3.new(0, 2, 0)
- BillboardGui0.ExtentsOffsetWorldSpace = Vector3.new(0, 2, 0)
- BillboardGui0.MaxDistance = 50
- BillboardGui0.Enabled = false
- TextLabel1.Name = "Shadow"
- TextLabel1.Parent = BillboardGui0
- TextLabel1.Position = UDim2.new(0.055, 0, 0.1, 0)
- TextLabel1.Size = UDim2.new(0.9, 0, 0.871, 0)
- TextLabel1.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel1.BackgroundTransparency = 9
- TextLabel1.Font = Enum.Font.Arcade
- TextLabel1.FontSize = Enum.FontSize.Size24
- TextLabel1.Text = "* "
- TextLabel1.TextColor = BrickColor.new("Medium lilac")
- TextLabel1.TextSize = 35
- TextLabel1.TextStrokeColor3 = Color3.new(0.215686, 0.215686, 0.392157)
- TextLabel1.TextStrokeTransparency = 0.69999998807907
- TextLabel1.TextYAlignment = Enum.TextYAlignment.Top
- TextLabel1.TextWrapped = false
- TextLabel2.Name = "Msg"
- TextLabel2.Parent = BillboardGui0
- TextLabel2.Position = UDim2.new(0.0500000007, 0, 0.074000001, 0)
- TextLabel2.Size = UDim2.new(0.899999976, 0, 0.870999992, 0)
- TextLabel2.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel2.BackgroundTransparency = 9
- TextLabel2.Font = Enum.Font.Arcade
- TextLabel2.FontSize = Enum.FontSize.Size24
- TextLabel2.Text = "* "
- TextLabel2.TextColor = BrickColor.new("Institutional white")
- TextLabel2.TextSize = 35
- TextLabel2.TextStrokeColor3 = Color3.new(0.215686, 0.215686, 0.392157)
- TextLabel2.TextStrokeTransparency = 0.69999998807907
- TextLabel2.TextYAlignment = Enum.TextYAlignment.Top
- TextLabel2.TextWrapped = false
- wait()
- function msg(plr,m,tof)
- if string.sub(m, 1,3) == "/e " or string.sub(m, 1,3) == "/w " then
- return
- end
- if chatting == true then
- chatting = false
- for i=1,1,0.1 do
- spawn(function()
- currentgui.ExtentsOffsetWorldSpace = Vector3.new(0, currentline-1+i, 0)
- wait(0.01)
- end)
- end
- end
- chatting = true
- currentline = currentline+1
- local text = "* "..game:GetService("Chat"):FilterStringAsync(m, plr, plr)
- local b = BillboardGui0:Clone()
- currentgui = b
- if plr.Character then
- b.Parent = plr.Character:WaitForChild("Head")
- end
- local msg = b["Msg"]
- local shd = b["Shadow"]
- b.Enabled = true
- for i = 1, #text do
- spawn(function()
- msg.Text = string.sub(text, 1, i)
- shd.Text = string.sub(text, 1, i)
- if string.sub(msg.Text, string.len(msg.Text) - 1) ~= " " and string.sub(msg.Text, string.len(msg.Text) - 1) ~= "," and string.sub(msg.Text, string.len(msg.Text) - 1) ~= "." and string.sub(msg.Text, string.len(msg.Text) - 1) ~= "*" then
- if tof == true then
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxassetid://417464011"
- sound.Volume = 10
- sound.Looped = false
- sound.Parent = plr.Character
- sound:Play()
- wait(2)
- sound:Remove()
- end
- elseif string.sub(msg.Text, string.len(msg.Text) - 1) == "," or string.sub(msg.Text, string.len(msg.Text) - 1) == "."or string.sub(msg.Text, string.len(msg.Text) - 1) == "*" then
- wait(0.26)
- end
- end)
- wait(0.04)
- end
- wait(4)
- chatting = false
- currentline = currentline-1
- b:Remove()
- end
- local owner = game:GetService("Players"):WaitForChild("Mitko1223tm")
- function findplayer(speaker,plr)
- local plrs = {}
- if tostring(plr) then
- if plr == "me" then
- return speaker
- elseif plr == "random" then
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v ~= speaker then
- table.insert(plrs,v)
- end
- end
- return plrs[math.random(1,#plrs)]
- end
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if string.sub(v.Name, 1, #plr) == plr then
- table.insert(plrs,v)
- end
- end
- return plrs[math.random(1,#plrs)]
- end
- end
- owner.Chatted:Connect(function(m)
- msg(owner,m,true)
- if string.sub(m, 1,3) == "/e " then
- if string.sub(m, 4, 10) == "pacify:" then
- local a = findplayer(owner,string.sub(m,11))
- if not a or a == owner then return end
- msg(owner,owner.Name.." cast PACIFY!",false)
- pcall(function()
- a.Character:FindFirstChildOfClass("Humanoid").Health = 0
- end)
- elseif string.sub(m, 4, 8) == "bone:" then
- local a = findplayer(owner,string.sub(m,9))
- if not a then return end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Script1 = Instance.new("Script")
- LocalScript2 = Instance.new("LocalScript")
- RemoteEvent3 = Instance.new("RemoteEvent")
- Animation4 = Instance.new("Animation")
- Part5 = Instance.new("Part")
- Sound6 = Instance.new("Sound")
- SpecialMesh7 = Instance.new("SpecialMesh")
- Sound8 = Instance.new("Sound")
- Script9 = Instance.new("Script")
- Camera10 = Instance.new("Camera")
- Tool0.Name = "bones"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxgameasset://Images/Truth abou me."
- Tool0.Grip = CFrame.new(0, -0.300000012, 0.699999988, 1, 0, 0, -0, 0.707106769, 0.707106769, 0, -0.707106769, 0.707106769)
- Tool0.GripForward = Vector3.new(-0, -0.707106769, -0.707106769)
- Tool0.GripPos = Vector3.new(0, -0.300000012, 0.699999988)
- Tool0.GripUp = Vector3.new(0, 0.707106769, -0.707106769)
- Script1.Name = "Server"
- Script1.Parent = Tool0
- table.insert(cors,sandbox(Script1,function()
- local Tool = script.Parent
- local Remote = Tool:WaitForChild("Remote")
- local Handle = Tool:WaitForChild("Handle")
- local FriendlyFire = true
- local AttackPower = 1
- local AttackDamage = 9
- local AtackRechargeTime = 0
- local AttackRecharge = 1/AtackRechargeTime
- local AttackSpeed = 200
- local Equipped = false
- local Heartbeat = game:GetService("RunService").Heartbeat
- local Knives = {}
- --returns the wielding player of this tool
- function getPlayer()
- local char = Tool.Parent
- return game:GetService("Players"):GetPlayerFromCharacter(char)
- end
- --helpfully checks a table for a specific value
- function contains(t, v)
- for _, val in pairs(t) do
- if val == v then
- return true
- end
- end
- return false
- end
- --tags a human for the ROBLOX KO system
- function tagHuman(human)
- local tag = Instance.new("ObjectValue")
- tag.Value = getPlayer()
- tag.Name = "creator"
- tag.Parent = human
- game:GetService("Debris"):AddItem(tag)
- end
- --used by checkTeams
- function sameTeam(otherHuman)
- local player = getPlayer()
- local otherPlayer = game:GetService("Players"):GetPlayerFromCharacter(otherHuman.Parent)
- if player and otherPlayer then
- return player.TeamColor == otherPlayer.TeamColor
- end
- return false
- end
- --use this to determine if you want this human to be harmed or not, returns boolean
- function checkTeams(otherHuman)
- return not (sameTeam(otherHuman) and not FriendlyFire)
- end
- function getKnife()
- local knife = Handle:clone()
- knife.Transparency = 0
- knife.Hit.Pitch = math.random(90, 110)/100
- local lift = Instance.new("BodyForce")
- lift.force = Vector3.new(0, 196.2, 0) * knife:GetMass() * 0.8
- lift.Parent = knife
- local proj = Tool.Projectile:Clone()
- proj.Disabled = false
- proj.Parent = knife
- return knife
- end
- function equippedLoop()
- while Equipped do
- local dt = Heartbeat:wait()
- if AttackPower < 1 then
- AttackPower = AttackPower + dt * AttackRecharge
- if AttackPower > 1 then
- AttackPower = 1
- end
- end
- Handle.Transparency = 1 - AttackPower
- end
- end
- function onLeftDown(mousePos)
- local knife = getKnife()
- knife.CFrame = CFrame.new(Handle.Position, mousePos)
- knife.Velocity = knife.CFrame.lookVector * AttackSpeed * AttackPower
- local damage = AttackDamage * AttackPower
- local touched
- touched = knife.Touched:connect(function(part)
- if part:IsDescendantOf(Tool.Parent) then return end
- if contains(Knives, part) then return end
- if part.Parent and part.Parent:FindFirstChild("Humanoid") then
- local human = part.Parent.Humanoid
- if checkTeams(human) then
- tagHuman(human)
- human:TakeDamage(damage)
- knife.Hit:Play()
- end
- end
- knife.Projectile:Destroy()
- local w = Instance.new("Weld")
- w.Part0 = part
- w.Part1 = knife
- w.C0 = part.CFrame:toObjectSpace(knife.CFrame)
- w.Parent = w.Part0
- touched:disconnect()
- end)
- table.insert(Knives, knife)
- knife.Parent = workspace
- game:GetService("Debris"):AddItem(knife, 3.5)
- delay(2, function()
- knife.Transparency = 1
- end)
- Remote:FireClient(getPlayer(), "PlayAnimation", "Throw")
- Handle.Throw.Pitch = 0.8 + 0.4 * AttackPower
- Handle.Throw:Play()
- AttackPower = 0
- end
- function onRemote(player, func, ...)
- if player ~= getPlayer() then return end
- if func == "LeftDown" then
- onLeftDown(...)
- end
- end
- function onEquip()
- Equipped = true
- equippedLoop()
- end
- function onUnequip()
- Equipped = false
- end
- Remote.OnServerEvent:connect(onRemote)
- Tool.Equipped:connect(onEquip)
- Tool.Unequipped:connect(onUnequip)
- end))
- LocalScript2.Name = "Client"
- LocalScript2.Parent = Tool0
- table.insert(cors,sandbox(LocalScript2,function()
- local Player = game:GetService("Players").Mitko1223tm
- local UIS = game:GetService("UserInputService")
- local Mouse = Player:GetMouse()
- local Tool = script.Parent
- local Remote = Tool:WaitForChild("Remote")
- local Tracks = {}
- local InputType = Enum.UserInputType
- local BeganConnection, EndedConnection
- function playAnimation(animName, ...)
- if Tracks[animName] then
- Tracks[animName]:Play()
- else
- local anim = Tool:FindFirstChild(animName)
- if anim and Tool.Parent and Tool.Parent:FindFirstChild("Humanoid") then
- Tracks[animName] = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnimation(animName, ...)
- end
- end
- end
- function stopAnimation(animName)
- if Tracks[animName] then
- Tracks[animName]:Stop()
- end
- end
- function inputBegan(input)
- if input.UserInputType == InputType.MouseButton1 then
- Remote:FireServer("LeftDown", Mouse.Hit.p)
- end
- end
- function inputEnded(input)
- if input.UserInputType == InputType.MouseButton1 then
- Remote:FireServer("LeftUp")
- end
- end
- function onRemote(func, ...)
- if func == "PlayAnimation" then
- playAnimation(...)
- elseif func == "StopAnimation" then
- stopAnimation(...)
- end
- end
- function onEquip()
- BeganConnection = UIS.InputBegan:connect(inputBegan)
- EndedConnection = UIS.InputEnded:connect(inputEnded)
- end
- function onUnequip()
- if BeganConnection then
- BeganConnection:disconnect()
- BeganConnection = nil
- end
- if EndedConnection then
- EndedConnection:disconnect()
- EndedConnection = nil
- end
- end
- Tool.Equipped:connect(onEquip)
- Tool.Unequipped:connect(onUnequip)
- Remote.OnClientEvent:connect(onRemote)
- end))
- RemoteEvent3.Name = "Remote"
- RemoteEvent3.Parent = Tool0
- Animation4.Name = "Throw"
- Animation4.Parent = Tool0
- Animation4.AnimationId = "rbxassetid://1186623783"
- Part5.Name = "Handle"
- Part5.Parent = Tool0
- Part5.CFrame = CFrame.new(30.0000057, 0.700012088, -2.025002, 0.99999994, 0, 0, 0, 2.98023224e-08, -0.999999881, 0, 0.999999881, 2.98023224e-08)
- Part5.Orientation = Vector3.new(89.9700012, 0, 0)
- Part5.Position = Vector3.new(30.0000057, 0.700012088, -2.025002)
- Part5.Rotation = Vector3.new(90, 0, 0)
- Part5.Size = Vector3.new(0.400000006, 0.850000024, 1.39999998)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.CanCollide = false
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.FormFactor = Enum.FormFactor.Custom
- Part5.formFactor = Enum.FormFactor.Custom
- Sound6.Name = "Throw"
- Sound6.Parent = Part5
- Sound6.SoundId = "rbxassetid://357417055"
- SpecialMesh7.Parent = Part5
- SpecialMesh7.MeshId = "http://www.roblox.com/asset/?id=305829157"
- SpecialMesh7.Scale = Vector3.new(1.26600003, 1.26600003, 1.26600003)
- SpecialMesh7.TextureId = "http://www.roblox.com/asset/?id=305829282"
- SpecialMesh7.MeshType = Enum.MeshType.FileMesh
- Sound8.Name = "Hit"
- Sound8.Parent = Part5
- Sound8.SoundId = "http://www.roblox.com/asset/?id=10730819"
- Sound8.Volume = 1
- Script9.Name = "Projectile"
- Script9.Parent = Tool0
- table.insert(cors,sandbox(Script9,function()
- local Projectile = script.Parent
- local Heartbeat = game:GetService("RunService").Heartbeat
- while Heartbeat:wait() do
- Projectile.CFrame = CFrame.new(Projectile.Position, Projectile.Position + Projectile.Velocity)
- end
- end))
- Script9.Disabled = true
- Camera10.Name = "ThumbnailCamera"
- Camera10.Parent = Tool0
- Camera10.CFrame = CFrame.new(32.7350883, 0.723361313, -2.38149405, -0.097589232, -0.0201426353, 0.995023012, 2.32830644e-10, 0.999795377, 0.0202392396, -0.99522686, 0.00197513215, -0.0975692496)
- Camera10.CoordinateFrame = CFrame.new(32.7350883, 0.723361313, -2.38149405, -0.097589232, -0.0201426353, 0.995023012, 2.32830644e-10, 0.999795377, 0.0202392396, -0.99522686, 0.00197513215, -0.0975692496)
- Camera10.FieldOfView = 40
- Camera10.Focus = CFrame.new(30.7450428, 0.682882845, -2.18635559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera10.focus = CFrame.new(30.7450428, 0.682882845, -2.18635559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").Mitko1223tm.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- pcall(function()
- a.Character:FindFirstChildOfClass("Humanoid").Health = a.Character:FindFirstChildOfClass("Humanoid").MaxHealth
- end)
- end
- end
- end)
- owner.CharacterAdded:Connect(function()
- wait(0.5)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement