SebTDZ

Voodoo Doll

Jun 24th, 2019
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.09 KB | None | 0 0
  1. owner = owner
  2. owner.Chatted:connect(function(message)
  3.     local messageLow = string.lower(message)
  4.     if  messageLow:sub(1, 3) == "!v " then
  5.         local TargetPlayer = FindPlayer(message:sub(4))
  6.         run(TargetPlayer)
  7.     end
  8. end)
  9.  
  10. function FindPlayer(FindUser)
  11.     local findUser = string.lower(FindUser)
  12.     local inputsize = string.len(findUser)
  13.     for i, v in pairs(game.Players:GetChildren()) do
  14.         local NameLow = string.lower(v.Name)
  15.         if NameLow:sub(1, inputsize) == findUser:sub(1, inputsize) then
  16.             return v.Name
  17.         end
  18.     end
  19. end
  20.  
  21. function run(plr)
  22.     --Tool
  23.     local Doll = Instance.new("Tool", owner.Backpack)
  24.     Doll.Name = plr
  25.     Doll.Changed:Connect(function(n)
  26.         if Doll.Parent == game.Workspace then
  27.             wait(0.1)
  28.             Doll:Destroy()
  29.         end
  30.     end)
  31.     Doll.Grip = CFrame.fromOrientation(1,1,1) + Vector3.new(0, 0, 0)
  32.  
  33.     local DollMeshPart = Instance.new("Part", Doll)
  34.     DollMeshPart.Name = "Handle"
  35.     DollMeshPart.Size = Vector3.new(1,1,1)
  36.  
  37.     local DollMesh = Instance.new("SpecialMesh", DollMeshPart)
  38.     DollMesh.MeshId = "http://www.roblox.com/asset/?id=" .. "53057389"
  39.     DollMesh.TextureId = "http://www.roblox.com/asset/?id=" .. "3335079735"
  40.     --Gui
  41.     local GuiScreen = Instance.new("ScreenGui", owner.PlayerGui)
  42.     GuiScreen.Name = plr
  43.     GuiScreen.Enabled = false
  44.     Doll.Equipped:Connect(function(n)
  45.         GuiScreen.Enabled = true
  46.     end)
  47.     Doll.Unequipped:Connect(function(n)
  48.         GuiScreen.Enabled = false
  49.     end)
  50.  
  51.     local GuiFrame = Instance.new("Frame", GuiScreen)
  52.     GuiFrame.Size = UDim2.new(1, 0, 1, 0)
  53.     GuiFrame.BackgroundTransparency = 0.55000001192093
  54.  
  55.     local Text = Instance.new("TextLabel", GuiFrame)
  56.     Text.Text = plr
  57.     Text.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  58.     Text.BackgroundTransparency = 0.55000001192093
  59.     Text.BorderSizePixel = 0
  60.     Text.Size = UDim2.new(1, 0, 0.1, 0)
  61.     Text.Font = Enum.Font.SciFi
  62.     Text.TextColor3 = Color3.new(0, 0, 0)
  63.     Text.TextSize = 50
  64.     --Gui Buttons
  65.     local Button1 = Instance.new("TextButton", GuiFrame)
  66.     Button1.Text = "Choke"
  67.     Button1.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  68.     Button1.BackgroundTransparency = 0.55000001192093
  69.     Button1.BorderSizePixel = 0
  70.     Button1.Position = UDim2.new(0.15, 0, 0.21, 0)
  71.     Button1.Size = UDim2.new(0.7, 0, 0.1, 0)
  72.     Button1.Font = Enum.Font.SciFi
  73.     Button1.TextColor3 = Color3.new(0, 0, 0)
  74.     Button1.TextSize = 50
  75.     Button1.MouseButton1Click:Connect(function()
  76.         for i=1,15 do
  77.             game.Players:FindFirstChild(plr).Character.Humanoid.Health = game.Players:FindFirstChild(plr).Character.Humanoid.Health - 10
  78.             wait(1)
  79.         end
  80.     end)
  81.  
  82.     local Button2 = Instance.new("TextButton", GuiFrame)
  83.     Button2.Text = "Remove Head"
  84.     Button2.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  85.     Button2.BackgroundTransparency = 0.55000001192093
  86.     Button2.BorderSizePixel = 0
  87.     Button2.Position = UDim2.new(0.15, 0, 0.31, 0)
  88.     Button2.Size = UDim2.new(0.7, 0, 0.1, 0)
  89.     Button2.Font = Enum.Font.SciFi
  90.     Button2.TextColor3 = Color3.new(0, 0, 0)
  91.     Button2.TextSize = 50
  92.     Button2.MouseButton1Click:Connect(function()
  93.         game.Players:FindFirstChild(plr).Character.Head:Destroy()
  94.     end)
  95.  
  96.     local Button3 = Instance.new("TextButton", GuiFrame)
  97.     Button3.Text = "Sit"
  98.     Button3.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  99.     Button3.BackgroundTransparency = 0.55000001192093
  100.     Button3.BorderSizePixel = 0
  101.     Button3.Position = UDim2.new(0.15, 0, 0.41, 0)
  102.     Button3.Size = UDim2.new(0.7, 0, 0.1, 0)
  103.     Button3.Font = Enum.Font.SciFi
  104.     Button3.TextColor3 = Color3.new(0, 0, 0)
  105.     Button3.TextSize = 50
  106.     Button3.MouseButton1Click:Connect(function()
  107.         game.Players:FindFirstChild(plr).Character.Humanoid.Sit = true
  108.     end)
  109.  
  110.     local Button4 = Instance.new("TextButton", GuiFrame)
  111.     Button4.Text = "Jump"
  112.     Button4.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  113.     Button4.BackgroundTransparency = 0.55000001192093
  114.     Button4.BorderSizePixel = 0
  115.     Button4.Position = UDim2.new(0.15, 0, 0.51, 0)
  116.     Button4.Size = UDim2.new(0.7, 0, 0.1, 0)
  117.     Button4.Font = Enum.Font.SciFi
  118.     Button4.TextColor3 = Color3.new(0, 0, 0)
  119.     Button4.TextSize = 50
  120.     Button4.MouseButton1Click:Connect(function()
  121.         game.Players:FindFirstChild(plr).Character.Humanoid.Jump = true
  122.     end)
  123.  
  124.     local Button5 = Instance.new("TextButton", GuiFrame)
  125.     Button5.Text = "Bring"
  126.     Button5.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  127.     Button5.BackgroundTransparency = 0.55000001192093
  128.     Button5.BorderSizePixel = 0
  129.     Button5.Position = UDim2.new(0.15, 0, 0.61, 0)
  130.     Button5.Size = UDim2.new(0.7, 0, 0.1, 0)
  131.     Button5.Font = Enum.Font.SciFi
  132.     Button5.TextColor3 = Color3.new(0, 0, 0)
  133.     Button5.TextSize = 50
  134.     Button5.MouseButton1Click:Connect(function()
  135.         game.Players:FindFirstChild(plr).Character.Humanoid.WalkToPoint = owner.Character.HumanoidRootPart.Position
  136.     end)
  137.  
  138.     local Button6 = Instance.new("TextButton", GuiFrame)
  139.     Button6.Text = "Respawn"
  140.     Button6.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  141.     Button6.BackgroundTransparency = 0.55000001192093
  142.     Button6.BorderSizePixel = 0
  143.     Button6.Position = UDim2.new(0.15, 0, 0.71, 0)
  144.     Button6.Size = UDim2.new(0.7, 0, 0.1, 0)
  145.     Button6.Font = Enum.Font.SciFi
  146.     Button6.TextColor3 = Color3.new(0, 0, 0)
  147.     Button6.TextSize = 50
  148.     Button6.MouseButton1Click:Connect(function()
  149.         local sp = game.Players:FindFirstChild(plr).Character.HumanoidRootPart.CFrame
  150.         game.Players:FindFirstChild(plr):LoadCharacter()
  151.         wait(0.1)
  152.         game.Players:FindFirstChild(plr).Character.HumanoidRootPart.CFrame = sp
  153.     end)
  154.    
  155.     local Button7 = Instance.new("TextButton", GuiFrame)
  156.     Button7.Text = "Get items"
  157.     Button7.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  158.     Button7.BackgroundTransparency = 0.55000001192093
  159.     Button7.BorderSizePixel = 0
  160.     Button7.Position = UDim2.new(0.15, 0, 0.81, 0)
  161.     Button7.Size = UDim2.new(0.35, 0, 0.1, 0)
  162.     Button7.Font = Enum.Font.SciFi
  163.     Button7.TextColor3 = Color3.new(0, 0, 0)
  164.     Button7.TextSize = 50
  165.     Button7.MouseButton1Click:Connect(function()
  166.         for i,v in pairs(game.Players:FindFirstChild(plr).Backpack:GetChildren()) do
  167.             v.Parent = owner.Backpack
  168.         end
  169.         for i,v in pairs(game.Players:FindFirstChild(plr).Character:GetChildren()) do
  170.             if v.ClassName == "Tool" then
  171.                 v.Parent = owner.Backpack
  172.             end
  173.         end
  174.     end)
  175.    
  176.     local Button8 = Instance.new("TextButton", GuiFrame)
  177.     Button8.Text = "Remove items"
  178.     Button8.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  179.     Button8.BackgroundTransparency = 0.55000001192093
  180.     Button8.BorderSizePixel = 0
  181.     Button8.Position = UDim2.new(0.5, 0, 0.81, 0)
  182.     Button8.Size = UDim2.new(0.35, 0, 0.1, 0)
  183.     Button8.Font = Enum.Font.SciFi
  184.     Button8.TextColor3 = Color3.new(0, 0, 0)
  185.     Button8.TextSize = 50
  186.     Button8.MouseButton1Click:Connect(function()
  187.         for i,v in pairs(game.Players:FindFirstChild(plr).Backpack:GetChildren()) do
  188.             v:Destroy()
  189.         end
  190.         for i,v in pairs(game.Players:FindFirstChild(plr).Character:GetChildren()) do
  191.             if v.ClassName == "Tool" then
  192.                 v:Destroy()
  193.             end
  194.         end
  195.     end)
  196. end
Advertisement
Add Comment
Please, Sign In to add comment