Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does the Client Script completely STOP at a certain point? [SOLVED BY ME]

Asked by 5 years ago
Edited 5 years ago

For some unknown reason, the client script completely STOPS at a certain point and doesn't move on. This only occurs on the Player Two's screen while the Player One's screen works completely fine. This is strange because this only happens when it is fired via a remote event.

Server Script:

PrimaryEvent:FireClient(PlayerTwo, "Intro", PlayerOne, PlayerTwo)
wait(0.5) --This is necessary or it won't work AT ALL
PrimaryEvent:FireClient(PlayerOne, "Intro", PlayerOne, PlayerTwo)

Client Script:

if topic == "Intro" then
print("Intro")
repeat wait() until playerGui:FindFirstChild("VS_Background")
playerGui.VS_Background.PlayerOne.Image = "https://www.roblox.com/headshot-thumbnail/image?userId="..body.UserId.."&width=420&height=420&format=png"
playerGui.VS_Background.PlayerTwo.Image = "https://www.roblox.com/headshot-thumbnail/image?userId="..conclusion.UserId.."&width=420&height=420&format=png"
playerGui.VS_Background.PlayerOne.Username.Text = body.Name
playerGui.VS_Background.PlayerTwo.Username.Text = conclusion.Name
local PlayerOne = playerGui.VS_Background.PlayerOne
local PlayerTwo = playerGui.VS_Background.PlayerTwo
local VS = playerGui.VS_Background.VS_Icon
local Title = playerGui.VS_Background.Title
local Fight = playerGui.VS_Background.Fight
PlayerOne:TweenPosition(UDim2.new(0.037, 0,0.405, 0),"Out")
PlayerTwo:TweenPosition(UDim2.new(0.863, 0,0.405, 0),"Out")
VS:TweenPosition(UDim2.new(0.407, 0,0.37, 0),"Out")
Title:TweenPosition(UDim2.new(0.236, 0,0.147, 0),"Out", "Bounce", 1)
wait(5) --It does continue after this point ONLY on Player Two's Screen
Fight.Visible = true

This is of course not all of the script, if you need more script then contact me. On line 17, the script completely stops on Player Two's screen(As labeled). I have no clue what is causing this and if you can help me that'd be great! Thank you!

0
why should we contact you for the rest of the script User#19524 175 — 5y
0
It's not that you need to contact me, just ask down in the comments whether you would like to see the whole script so I can edit it. McRocketNuggets 65 — 5y

Answer this question