RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a jumpscare if I touch a rig and explain where to put the script"
To create a jumpscare when you touch a rig, you can put the following script inside the rig's HumanoidRootPart. This script will play a scary sound when a player touches the rig. ```lua -- server script local rigRootPart = script.Parent local jumpscareSound = Instance.new("Sound", rigRootPart) jumpscareSound.SoundId = "rbxassetid://YourSoundIDHere" jumpscareSound.Volume = 1 jumpscareSound.PlayOnRemove = false local function onTouched(touchPart) local player = game.Players:GetPlayerFromCharacter(touchPart.Parent) if player then jumpscareSound:Play() end end rigRootPart.Touched:Connect(onTouched) ``` Replace "YourSoundIDHere" with the ID of the scary sound you want to play. You can find sound IDs in the Roblox Library.