Advertisement
FulsakenS

Utmm script (kill npc) by FulsakenS

Jul 2nd, 2024
1,514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | Gaming | 0 0
  1. -- Create the ScreenGui
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Name = "PersistentGui"
  4. screenGui.ResetOnSpawn = false -- Ensure it is not destroyed when the player resets
  5. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  6.  
  7. -- Create the TextButton
  8. local textButton = Instance.new("TextButton")
  9. textButton.Size = UDim2.new(0, 100, 0, 25) -- Size is 2 times smaller
  10. textButton.Position = UDim2.new(0, 30, 1, -35) -- Adjust position with 20 pixels to the right
  11. textButton.Text = "Execute Script"
  12. textButton.Parent = screenGui
  13.  
  14. -- Define the script to execute
  15. local function executeScript()
  16. getgenv().G = true
  17. getgenv().Creator = 'https://discord.gg/B3HqPPzFYr - HalloweenGaster'
  18.  
  19. -- Set hidden properties
  20. sethiddenproperty(game.Players.LocalPlayer, "SimulationRadius", 112412400000)
  21. sethiddenproperty(game.Players.LocalPlayer, "MaxSimulationRadius", 112412400000)
  22.  
  23. -- Set health to 0 for other players' humanoids
  24. for i, d in pairs(game.Workspace:GetDescendants()) do
  25. if d.ClassName == 'Humanoid' and d.Parent.Name ~= game.Players.LocalPlayer.Name then
  26. d.Health = 0
  27. end
  28. end
  29. end
  30.  
  31. -- Connect the TextButton click event to the executeScript function
  32. textButton.MouseButton1Click:Connect(executeScript)
Tags: UTMM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement