|
| 01 Jun 2014 09:45 AM |
I am in need of a scripter to help me (I've looked on the wiki before you ask)
I am making a roleplay game and I am trying to add a sound (this one http://www.roblox.com/Homestuck-Homestuck-Vol-5-from-YouTube-convert-item?id=159505928). I'd really appreciate the help and your username will be put in the description for credit.
THANK YOU! |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2014 09:47 AM |
| Do you want it to be conatantly playing or just when somthing triggers it... Otherwise I cannot do it. If it is triggered tell me how you want it to be triggered. |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2014 09:48 AM |
| I'd like it to be constantly looping. |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2014 09:53 AM |
Ok then, put the sound in this script and have the loop value checked in the sound. Use this script as the parent of the sound:
function onPlayerEnter() script.Sound:Play() end
game.Players.PlayerAdded:connect(onPlayerEnter) |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2014 09:54 AM |
m, b = Instance.new("Sound"), Instance.new("Part", workspace) m.SoundId = "http://www.roblox.com/asset/?id=159505928" m.Parent = b b.Anchored =true
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 01 Jun 2014 09:57 AM |
Don't use the above actually use this:
sound = script.Sound
function onPlayerEnter() sound.Parent = game.Workspace game.Workspace.Sound:Play() script:remove() end
game.Players.PlayerAdded:connect(onPlayerEnter) |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2014 09:59 AM |
Put ur sound in a script, put this in the script
game.Players.PlayerAdded:connect(function(s) repeat wait() until script:FindFirstChild("SoundNameHere")
script:FindFirstChild("SoundNameHere"):Play()
script:FindFirstChild("SoundNameHere").Looped = true
end) |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2014 10:01 AM |
Ur mean qq
My script from my last post is better since it will play ur song Looped and makes sure it plays et |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Jun 2014 10:01 AM |
This works I've tested it:
sound = script.Sound
function onPlayerEnter() sound.Parent = game.Workspace game.Workspace.Sound:Play() script:remove() end
game.Players.PlayerAdded:connect(onPlayerEnter) |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2014 10:03 AM |
| Yes! It's working! Like I promised your name will be in the credits! |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2014 10:03 AM |
game.Players.PlayerAdded:connect(function(s) s.CharacterAdded:connect(function(b) repeat wait() until script:FindFirstChild("SoundNameHere")
script:FindFirstChild("SoundNameHere"):Play()
script:FindFirstChild("SoundNameHere").Looped = true
end) end)
Here this one plays even when the Player respawns |
|
|
| Report Abuse |
|
|
| |
|