I Have Been Losing My Sanity And The Will To Continue Coding Even Though It Is The Most Favourite Activity For Me To Do In The Meantime.
It Works Swiftly In Studio Mode But Not In Game
"ServerScriptService Is Not A Valid Member Of DataModel Stack Begin Script' Players.GizmoProductions.PlayerScripts.ModePickToText ', Line 6 Stack End"
Main = script.Parent.Parent game.Workspace.NumberPlayers.Changed:connect(function() wait(0.5) if game.Workspace.NumberPlayers.Value >= 1 then game.ServerScriptService.ModePicker.Disabled = false game.SoundService.DrumRoll:Play() Main.PlayerGui.ModePickGUI.RoundShadow:TweenPosition(UDim2.new(0.314,0, 0.343,0)) wait(5) local Rand = game.Workspace.Mode.Value Main.PlayerGui.ModePickGUI.RoundShadow.DropShadow.Namez.Text = Rand end end)
ServerScriptService
is a service so you have to use :GetService()
method to access it.
In our case just replace game.ServerScriptService
with game:GetService("ServerScriptService")