#Problems with gui
33 messages · Page 1 of 1 (latest)
Physical page script (badge included but irrelevant):
local ClickerDetector = script.Parent.ClickDetector
local badgeservice = game:GetService("BadgeService")
local id = 1871762446630590
ClickerDetector.MouseClick:Connect(function(plr)
if badgeservice:UserHasBadgeAsync(plr.UserId,id) then
if not plr.PlayerGui:FindFirstChild("PageUI") then
local guiclone = script.Parent.PageUI:Clone()
guiclone.Parent = plr.PlayerGui
end
else
badgeservice:AwardBadge(plr.UserId,id)
local sound = plr.PlayerGui.badgesound:Play()
if not plr.PlayerGui:FindFirstChild("PageUI") then
local guiclone = script.Parent.PageUI:Clone()
guiclone.Parent = plr.PlayerGui
end
end
end)
2 questions:
•so you check if there is something inside PlayerGui named ‘PageUI’ and if there is not it adds a page ui in there. Why do you check twice?
• Also have you heard about ‘Enabled’ and ‘Visible’ properties?
one thing i noticed is that when i click the page from the gui on the client, the server doesnt see that it got destroyed
This is server script??
yes
Why?
No its not
how
Cuz it doesnt work like that
its better to simply have one then like 5000 that control everything
Instances doesnt inherit the same events on both server and client
Client is where all input and gui should be handled. Local progress should be shown used local scripts too
Server is where all data and server wide things should be handled. But dont handle animations and such on the server. Use a remote to tell all clients to play the anim instead
One script containing a full games logic is simply not possible
i beg to differ https://www.youtube.com/watch?v=6ptjQq_KmZM&ab_channel=RoDev
Prepare to be amazed as I embark on an extraordinary coding experiment in Roblox Studio! In 'I Made a ROBLOX Game With 1 LINE of Code!', I push the boundaries of Roblox Studio game development to the extreme. Witness the power of concise programming as I create a fully functional and entertaining Roblox game using just one line of code. From con...
I this video I take on the challenge of making a Roblox game with only one line of code!!! Watch to see what game I'm able to make with such a big road block in my way. #robloxscripting #robloxstudio #roblox #robloxdev #robloxdevelopment #robloxdeveloper
My Twitter
https://twitter.com/Zyontic
My Discord Server
https://discord.gg/P6WuCqyScp
...
Does these games have any gui?
No
.
Does these games require custom input systems?
No
.
Are all the systems for these games able to run on server?
Yes
@grim skiff
no i fixed it