Advertisement
Anukun_Lucifer

Event01Script(Local Script)

Nov 22nd, 2024
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | Gaming | 0 0
  1. local RS = game:GetService("ReplicatedStorage")
  2. local Players = game:GetService("Players")
  3.  
  4. local player = Players.LocalPlayer
  5. local HorrorSoundPart = workspace:WaitForChild("HorrorSoundPart")
  6. local EventSoundPart = HorrorSoundPart:WaitForChild("EventSoundPart")
  7. local Sound = HorrorSoundPart:WaitForChild("SoundDoor1"):WaitForChild("Piano Keys Impact 7 (SFX)")
  8.  
  9. local ModelRe = RS:WaitForChild("ModelRe")
  10. local Mali = ModelRe:WaitForChild("Mali")
  11.  
  12. local Check = false
  13.  
  14. EventSoundPart.Touched:Connect(function(touchPart)
  15.     if Check == false then
  16.         Check = true
  17.         local character = touchPart.Parent
  18.         local player = Players:GetPlayerFromCharacter(character)
  19.         local hmn = character:FindFirstChild("Humanoid")
  20.  
  21.         Sound:Play()
  22.         EventSoundPart:Destroy()
  23.         local MaliClone = Mali:Clone()
  24.  
  25.         MaliClone.Parent = workspace
  26.         task.wait(3)
  27.  
  28.         workspace:FindFirstChild("Mali"):Destroy()
  29.         script:Destroy()
  30.     end
  31.  
  32. end)
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement