|
| 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 |
|
|
| |
|
| |
|
| |
|
|
| 13 Jun 2014 02:22 PM |
I didn't know you can playeradded in localscript. Wait, because you can't.
Use localplayer. |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2014 02:36 PM |
| Didn't work either, must be something to do with connection lines. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
Convorus
|
  |
| Joined: 19 Jun 2013 |
| Total Posts: 624 |
|
| |
|
|
| 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 |
|
|
|
| 14 Jun 2014 05:29 AM |
| Remote functions just broke the whole thing without errors. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 15 Jun 2014 11:57 AM |
b10
Wow, are you guys really not going to help? |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Jun 2014 12:25 PM |
| I can't help because I'm bad at scripting, but seriously? No-one's helping? |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 12:44 PM |
| Ofc not, we're not going to debug it for him |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 16 Jun 2014 10:50 AM |
| I only want it to fire once. |
|
|
| Report Abuse |
|
|
| |
|