RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"if a player interacts with a proximity prompt they explode"
-- local script local proximityPrompt = script.Parent.ProximityPrompt local function onPromptTriggered(player) local character = player.Character if character then local humanoid = character:FindFirstChild("Humanoid") if humanoid then humanoid:TakeDamage(humanoid.MaxHealth) end end end proximityPrompt.Triggered:Connect(onPromptTriggered)