Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Roblox Jump Scare Script
- -- Put this in a Script in workspace btw. [this wont pop up a gui you have to add it sorry :(]!!!!!!!!!!
- -- Get services
- local Workspace = game:GetService("Workspace")
- -- Create a part for the jump scare trigger
- local jumpScareTrigger = Instance.new("Part", Workspace)
- jumpScareTrigger.Name = "JumpScareTrigger"
- jumpScareTrigger.Size = Vector3.new(10, 10, 10) -- adjust size as needed
- jumpScareTrigger.Position = Vector3.new(0, 0, 0) -- adjust position as needed
- jumpScareTrigger.Transparency = 0 -- make the part Visible
- jumpScareTrigger.Anchored = true
- jumpScareTrigger.CanCollide = false
- -- Create a sound for the jump scare
- local jumpScareSound = Instance.new("Sound", jumpScareTrigger)
- jumpScareSound.SoundId = "rbxassetid://your_sound_id_here" -- replace with your own sound id
- jumpScareSound.Volume = 1
- -- Function to play the jump scare sound
- local function playJumpScare(player)
- jumpScareSound:Play()
- print(player.Name .. " triggered the jump scare!")
- end
- -- Connect the function to the part's Touched event
- jumpScareTrigger.Touched:Connect(playJumpScare)
- print("Made by nightmareYoda222")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement