|
| 30 May 2014 08:06 PM |
Everything works but the sound. How would fix the sound?
local a = Instance.new("Sound", script.Parent) a.Name = "Typewriter" a.SoundId = "http://www.roblox.com/asset/?id=147982968"
game.Players.PlayerAdded:connect(function(plr) plr:WaitForChild("PlayerGui") wait(3) game.ReplicatedStorage.W:Clone().Parent = plr.PlayerGui.Intro a:Play() wait(0.4) game.ReplicatedStorage.A:Clone().Parent = plr.PlayerGui.Intro a:Play() wait(0.4) game.ReplicatedStorage.R:Clone().Parent = plr.PlayerGui.Intro a:Play() wait(0.4) game.ReplicatedStorage.G:Clone().Parent = plr.PlayerGui.Intro a:Play() wait(0.4) game.ReplicatedStorage.M:Clone().Parent = plr.PlayerGui.Intro a:Play() wait(0.4) game.ReplicatedStorage.E:Clone().Parent = plr.PlayerGui.Intro a:Play() wait(0.4) game.ReplicatedStorage.S:Clone().Parent = plr.PlayerGui.Intro a:Play() wait(1) game.ReplicatedStorage.PlayButton:Clone().Parent = plr.PlayerGui.Intro
end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 30 May 2014 09:11 PM |
Why do you have to keep playing the sound over again? Is it a song, or a sound effect?
If it's the former , then you only need to play it once. If it's the latter, then it's alright, I guess...
Also, where is the script located? Inside a brick? Is the brick near the player? |
|
|
| Report Abuse |
|
|
|
| 30 May 2014 09:13 PM |
| It's the latter. And it's in ServerScriptService. |
|
|
| Report Abuse |
|
|
|
| 30 May 2014 09:13 PM |
| Yeah, that's the problem. Sounds don't play in the ServerScriptService, it only plays in the Workspace. |
|
|
| Report Abuse |
|
|
|
| 30 May 2014 09:15 PM |
| So move the script to Workspace? |
|
|
| Report Abuse |
|
|
|
| 30 May 2014 09:19 PM |
You just have to change the parent of the sound to the Workspace.
And now that I look at your script, it's pretty inefficient. Just directly change the transparency of the GUI directly via a local script. o_O |
|
|
| Report Abuse |
|
|
|
| 31 May 2014 04:33 AM |
| Well it works so I'm not going to try and break it... |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 31 May 2014 04:35 AM |
I would suggest making this again. It seems poorly optimized
Anything you can do, a Asian kid half your age can do better! 'I am the greatest script in the realm. You can only hope to be as powerful of a script as I am, processing the world, bit by bit.' - Oysi 2014 |
|
|
| Report Abuse |
|
|
|
| 31 May 2014 04:38 AM |
| I don't see why I should try and fix this script when it already works.. |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 31 May 2014 04:41 AM |
It's poorly made.
Anything you can do, a Asian kid half your age can do better! 'I am the greatest script in the realm. You can only hope to be as powerful of a script as I am, processing the world, bit by bit.' - Oysi 2014 |
|
|
| Report Abuse |
|
|
|
| 31 May 2014 04:42 AM |
| I'm not sure why that matters... |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 31 May 2014 04:43 AM |
longer code = more stuff that ROBLOX has to do.
Anything you can do, a Asian kid half your age can do better! 'I am the greatest script in the realm. You can only hope to be as powerful of a script as I am, processing the world, bit by bit.' - Oysi 2014 |
|
|
| Report Abuse |
|
|
|
| 31 May 2014 10:12 AM |
You're doing this in a regular script. You're supposed to change player Guis from a local script.
Use LocalPlayer to get the client's player from a local script.
game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Transparency = 1
or
game.Players.LocalPlayer.PlayerGui.ScreenGui.TextButton.Text = "Modifying properites" |
|
|
| Report Abuse |
|
|