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 » Scripters
Home Search
 

Re: remoteClientEvent (Doesn't work?)

Previous Thread :: Next Thread 
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 07:49 AM
This is very hard, I hope the lord of scripters could help me out on this :)
-----------------------------------------------------------------------------
Here's the issue i got, It's basically a remoteClientEvent that doesn't trigger a GUI that i've made... Here's the files thats involved:

ServerScriptService got the Server Script

StarterGui got the LocalScript and the GUI


-----------------------------------------------------------------------------

Here's the server trigger event:
*************************************
game.Players.PlayerAdded:connect(function(player)
local event = Instance.new("RemoteEvent")
event.Parent = player
event.Name = "MyClientEvent"
if _G.Tc1Tc1WaitingHubFinished == true then
event:FireClient(player)
end
end)



Here's the gianormous local script:
**************************************
local GuiChat = game.StarterGui.ScreenGui.Frame.Chat
local GuiStatus = game.StarterGui.ScreenGui.Frame.Status

game.Players.LocalPlayer:WaitForChild("MyClientEvent").OnClientEvent:connect(function()
GuiStatus.Text = "Scanning players"
wait(1)
GuiChat.Text = "Hello."
wait(1)
GuiChat.Text = "Welcome to Tc1."
wait(1)
GuiStatus.Text = "Preparing Chambers..."
wait(1)
GuiChat.Text = "Let me introduce my self."
wait(2)
GuiChat.Text = "My name is Tc-Core."
wait(2)
GuiChat.Text = "I will be game host."
wait(1)
GuiStatus.Text = "Preparing triggers"
wait(1)
GuiChat.Text = "Let's talk about the rules!"
wait(2)
GuiChat.Text = "Rule 1 - Be nice to eachothers."
wait(2)
GuiChat.Text = "Rule 2 - Teamwork is the key to victory."
wait(2)
GuiChat.Text = "Rule 3 - Have fun."
wait(2)
GuiStatus.Text = "Depressurizing the chambers"
wait(1)
GuiChat.Text = "Waiting for startup to finish"
wait(3)
GuiStatus.Text = "Starting up engine 1"
wait(0.2)
GuiStatus.Text = "Starting up engine 2"
wait(0.2)
GuiStatus.Text = "Starting up engine 3"
wait(0.5)
GuiStatus.Text = "Starting up engine 4"
wait(0.2)
GuiStatus.Text = "Starting up engine 5"
wait(0.8)
GuiStatus.Text = "Starting up engine 6"
wait(0.4)
GuiStatus.Text = "Starting up engine 7"
wait(0.9)
GuiStatus.Text = "Starting up engine 8"
wait(3)
GuiStatus.Text = "Starting up engine 9"
wait(2)
GuiStatus.Text = "Starting up engine 10"
wait(0.8)
GuiStatus.Text = "Dropping... Goodluck."
wait(1)
GuiStatus.Text = ""
GuiChat.Text = ""
end)


Report Abuse
FumeiSencho is not online. FumeiSencho
Joined: 07 Apr 2013
Total Posts: 452
12 Aug 2016 07:56 AM
Did you ever think maybe _G.Tc1Tc1WaitingHubFinished was false?


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 07:57 AM
It is true after it gets triggered, approx 30 seconds.


Report Abuse
Vecaxo is not online. Vecaxo
Joined: 11 Aug 2013
Total Posts: 264
12 Aug 2016 09:32 AM
Try putting the 'MyClientEvent' somewhere in the PlayerGui and not randomly in the player.

My only suggestion would be that _G.Tc1Tc1WaitingHubFinished could be false. Everything else looks good but I have heard that RemoteEvents in PlayerGui solve the problem APPARENTLY.


Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
12 Aug 2016 09:34 AM
why don't you parent the remote event to ReplicatedStorage?

also, use prints to see where your code is running and what stops

Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 10:00 AM
What does it do?
and how do i use prints?


Report Abuse
Notwal is not online. Notwal
Joined: 31 Dec 2014
Total Posts: 915
12 Aug 2016 10:03 AM
Did it ever occur to you that free model scripts never work?


Geometry is better than melatonin.
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 10:08 AM
Free model scripts... Naaa i dont like them :b


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 10:11 AM
17:11:08.540 - Infinite yield possible on 'Players.Player1:WaitForChild("MyClientEvent")'
17:11:08.542 - Stack Begin
17:11:08.542 - Script 'Players.Player1.PlayerGui.LocalScript', Line 4
17:11:08.542 - Stack End

Here's all the errors thats occuring...


Report Abuse
Notwal is not online. Notwal
Joined: 31 Dec 2014
Total Posts: 915
12 Aug 2016 10:13 AM
So fix them?


Geometry is better than melatonin.
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 10:18 AM
I can't, there's no way i could see why its happening... I mean It just skips the ENTIRE code in local gui from line 4.


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 11:30 AM
bump.


Report Abuse
rockandgreen is not online. rockandgreen
Joined: 20 Dec 2011
Total Posts: 1161
12 Aug 2016 11:36 AM
event.Name = "MyClientEvent"
print(_G.Tc1Tc1WaitingHubFinished)

Tell me what it prints.


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 11:38 AM
> event.Name = "MyClientEvent"
print(_G.Tc1Tc1WaitingHubFinished)
18:37:12.064 - event.Name = "MyClientEvent"
print(_G.Tc1Tc1WaitingHubFinished):1: attempt to index global 'event' (a nil value)
18:37:12.064 - Stack Begin
18:37:12.064 - Script 'event.Name = "MyClientEvent"
print(_G.Tc1Tc1WaitingHubFinished)', Line 1
18:37:12.064 - Stack End


Report Abuse
rockandgreen is not online. rockandgreen
Joined: 20 Dec 2011
Total Posts: 1161
12 Aug 2016 11:39 AM
.... No I said put print(_G.Tc1Tc1WaitingHubFinished) under the line event.Name = "MyClientEvent"


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 11:41 AM
18:40:48.677 - Infinite yield possible on 'Players.Player1:WaitForChild("MyClientEvent")'
18:40:48.678 - Stack Begin
18:40:48.678 - Script 'Players.Player1.PlayerGui.LocalScript', Line 4
18:40:48.678 - Stack End


Report Abuse
rockandgreen is not online. rockandgreen
Joined: 20 Dec 2011
Total Posts: 1161
12 Aug 2016 11:42 AM
What so nothing prints out?

By the way the infinite wield thing I unrelated to your problem. It always shows up on my output too so just ignore it. (Well to my knowledge anyway).


Report Abuse
rockandgreen is not online. rockandgreen
Joined: 20 Dec 2011
Total Posts: 1161
12 Aug 2016 11:43 AM
Basically change:

game.Players.PlayerAdded:connect(function(player)
local event = Instance.new("RemoteEvent")
event.Parent = player
event.Name = "MyClientEvent"
if _G.Tc1Tc1WaitingHubFinished == true then
event:FireClient(player)
end
end)

To:

game.Players.PlayerAdded:connect(function(player)
local event = Instance.new("RemoteEvent")
event.Parent = player
event.Name = "MyClientEvent"
print(_G.Tc1Tc1WaitingHubFinished)
if _G.Tc1Tc1WaitingHubFinished == true then
event:FireClient(player)
end
end)


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 11:44 AM
my god HOW COULD I BE SOO BLIND??!?


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 11:48 AM
Here you go:
18:47:47.891 - Infinite yield possible on 'Players.Player1:WaitForChild("MyClientEvent")'
18:47:47.892 - Stack Begin
18:47:47.893 - Script 'Players.Player1.PlayerGui.LocalScript', Line 4
18:47:47.893 - Stack End


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 12:32 PM
This is not a lie, i did exactly as you said and this is the answer


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 12:43 PM
Here we go, it prints false, however it will become true after a while, is there any way to make it constant so it knows when to trigger?


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 12:45 PM
Okay its now true instantly, but it still doesnt seem to work... Something wrong with the local script?


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 12:59 PM
Now we see A NEW ISSUE!

It looks like there's something wrong with the recognition of "screengui" that makes the server not able to handle it?


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
12 Aug 2016 01:00 PM
Because it doesnt't read any of the console except that text...


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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