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

Why does this script keep breaking?

Asked by
Xl5Xl5 65
9 years ago

This is just top part of the script which is a Local Script which is part of a ScreenGUI inside StarterGUI

StarterGUI -->ScreenGUI ---->Local Script

The problem here is that, when the player respawns the Local Script breaks.

this script works in solo mode fine. However on online mode works when you first enter the game it works fine, but when you respawn the Local Script doesn't seem to work

Please help! thank you!

001repeat wait() until game.Players.LocalPlayer.Character:findFirstChild("Humanoid")~=nil
002local Workspace = game:GetService("Workspace")
003local Players = game:GetService("Players")
004local Lighting = game:GetService("Lighting")
005local RS = game:GetService("ReplicatedStorage")
006local SSS = game:GetService("ServerScriptService")
007local Teams = game:GetService("Teams")
008 
009local Player = Players.LocalPlayer
010local Character = Player.Character
011local Humanoid = Character:WaitForChild("Humanoid")
012local Mouse = Player:GetMouse()
013local Camera = game.Workspace.CurrentCamera
014 
015local Gui = script.Parent
View all 174 lines...
0
No output.. Nickoakz 231 — 9y

Answer this question