generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Sound isn't playing...

Previous Thread :: Next Thread 
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
13 Jun 2014 02:09 PM
There are 2 scripts working together, no errors but sound doesn't play at all:

Normal script:

game.Players.PlayerAdded:connect(function(Player)

repeat wait() until Player.PlayerGui

local TextAppearClone = Workspace.TextAppear:Clone()
TextAppearClone.Parent = Player
TextAppearClone.Name = "TextAppearClone"

local event = Instance.new("RemoteEvent", Player.Backpack)
event.Name = "OnTextAppear"

local ScreenGui = Instance.new("ScreenGui", Player.PlayerGui)
ScreenGui.Name = "EntrancePage"

local Frame = Instance.new("Frame", ScreenGui)
Frame.Name = "Background"
Frame.Size = UDim2.new(1, 0, 1, 0)
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0, 0, 0)

local Title = Instance.new("TextBox", Frame)
Title.ClearTextOnFocus = false
Title.Name = "Title"
Title.TextTransparency = 1
Title.Position = UDim2.new(0.5, -250, 0.5, -50)
Title.Size = UDim2.new(0, 500, 0, 50)
Title.BackgroundTransparency = 1
Title.Text = "Phantom - 4 Basic Entry Course"
Title.Font = "Arial"
Title.FontSize = "Size36"
Title.TextColor3 = Color3.new(255, 255, 255)

wait(3)

event:FireClient(Player)

for i=1, 0, -0.2 do
Title.TextTransparency = i
wait(0.1)
end

local Description = Instance.new("TextBox", Frame)
Description.ClearTextOnFocus = false
Description.Name = "Description1"
Description.TextTransparency = 1
Description.Position = UDim2.new(0.5, -250, 0.5, 10)
Description.Size = UDim2.new(0, 500, 0, 25)
Description.BackgroundTransparency = 1
Description.Text = "To get into Phantom, you need to complete this obstacle course. Complete the obby to get the badge, then send a join request."
Description.Font = "Arial"
Description.FontSize = "Size18"
Description.TextColor3 = Color3.new(255, 255, 255)

wait(3)

event:FireClient(Player)

for i=1, 0, -0.2 do
Description.TextTransparency = i
wait(0.1)
end

wait(5)

for i=0, 1, 0.2 do
Description.TextTransparency = i
Frame.BackgroundTransparency = i
Title.TextTransparency = i
wait(0.1)
end

end)

Local script (Its in the right place, in the backpack)

Game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=130785805")

local Event = script.Parent:WaitForChild("OnTextAppear")
local Sound = script.Parent.Parent:WaitForChild("TextAppearClone")

Event.OnClientEvent:connect(function()
Sound:Play()
end)
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
13 Jun 2014 02:14 PM
b1
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
13 Jun 2014 02:15 PM
set the volume
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
13 Jun 2014 02:19 PM
Didn't work @duel
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
13 Jun 2014 02:22 PM
I didn't know you can playeradded in localscript.
Wait, because you can't.

Use localplayer.
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
13 Jun 2014 02:36 PM
Didn't work either, must be something to do with connection lines.
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
13 Jun 2014 02:43 PM
b2
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
13 Jun 2014 02:49 PM
b3
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
13 Jun 2014 02:53 PM
b4
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
13 Jun 2014 03:00 PM
b9005
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
13 Jun 2014 03:30 PM
b6
Report Abuse
Convorus is not online. Convorus
Joined: 19 Jun 2013
Total Posts: 624
13 Jun 2014 03:37 PM
b7
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
14 Jun 2014 05:17 AM
So many bumps heh

I'm gonna try to change remote events to remote functions and if that doesn't work then I'll keep bumping.
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
14 Jun 2014 05:29 AM
Remote functions just broke the whole thing without errors.
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
15 Jun 2014 07:04 AM
b8
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
15 Jun 2014 07:59 AM
b9
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
15 Jun 2014 11:57 AM
b10

Wow, are you guys really not going to help?
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
15 Jun 2014 12:08 PM
b11
Report Abuse
iamarobloxfan is not online. iamarobloxfan
Joined: 30 Sep 2011
Total Posts: 2343
15 Jun 2014 12:25 PM
I can't help because I'm bad at scripting, but seriously? No-one's helping?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
15 Jun 2014 12:44 PM
Ofc not, we're not going to debug it for him
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
16 Jun 2014 10:32 AM
I've just gotten started using remote events and no one is even trying to help (excpect duel).
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
16 Jun 2014 10:34 AM
Try not using RemoteEvents, as they are probably not needed. Just use LocalPlayer rather than PlayerAdded.

Post your broken script here, since you didn't show us the first time.
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
16 Jun 2014 10:50 AM
I only want it to fire once.
Report Abuse
minminopop is not online. minminopop
Joined: 27 Apr 2012
Total Posts: 1030
16 Jun 2014 11:22 AM
Finally done it. Thx.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image