Advertisement
XxxLloyd061302xxX

Sound Script

Jul 26th, 2018
13,302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local sound = "" -- For example rbxassetid://1390536810
  2.  
  3. script.Parent.Touched:Connect(function(hit)
  4.     if hit.Parent:FindFirstChild("Humanoid") then
  5.         local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  6.         game.ReplicatedStorage.PlayMusic:FireClient(player,sound)
  7.     end
  8. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement