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

Why won't this surface gui script work ingame but works in studio with no output response?

Asked by 7 years ago

Hello, I've already read the guide as to why things don't work in-game but work in-studio. This is a normal script ( I've already tried a local script ) inside a surfacegui. Please Help, Thanks.

This is the script:




script.Parent.MouseButton1Click:connect(function() local player = game.Players.LocalPlayer local newframething = script.Parent.Parent.Parent.Parent.BidNowFrame:clone() newframething.Parent = player.PlayerGui.PlayerScreenGui end)
0
Scripts don't have access to game.Players.LocalPlayer, only LocalScripts do Pyrondon 2089 — 7y

1 answer

Log in to vote
1
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
7 years ago
Edited 7 years ago

You can put the SurfaceGui inside of the players PlayerGui, and set its Adornee to the part you want it on. Then you're able to use a localscript to modify & change the ui however you want, and only that player will see their individual changes!

0
Thanks bro, helped a lot. bigbenbennett 18 — 7y
0
Np RubenKan 3615 — 7y
Ad

Answer this question