#how to make an UI button gives item but u need a specific badge?
57 messages · Page 1 of 1 (latest)
do you just wanna know how to give the tool if the player has the badge or also know how to make the player get the tool when clicking?
if it is just if the player has the badge then
local service = game:GetService("BadgeService")
local ID = "your badge id here"
local Button = script.Parent
local player = game.Players.LocalPlayer
Button.MouseButton1Click:Connect(function()
if service:UserHasBadgeAsync(player.UserId, ID) then
--Code to give the tool here
end
end)
first make a folder in replicatedstorage and name it Tools (or something), then place your tool in there
replicatedstorage?
yea
why if he gonna copy on the server
if not the tool would be bugged asf
he would use a remoteevent
where shoulf hr place it
so u put the tool on serverstorage
i was about to tell him to do it
but if it gonna do with server put it in serverstorage
why not replicatedstorage? just curious
There’s no difference I think
oh, because of exploiters right?
yep, anyway if a exploiter copy in a localscript it gonna be bugged prolly
but is good to have an habit like that
need to protect your game
well i only put things in replicatedstorage only if client can access it
/ use it in a localscript
so
alright, so place the folder in serverstorage?
i guess
then make a remote event in replicated storage
you really dont know what a remote event is?
💀
dang, then you should look for tutorials or read roblox studio docs
the tutorials one was good
but if u said docs is useless
start reading books or smth because u dont know how to read
** You are now Level 4! **
thats why i said or, sometimes it helps
emotional damage
tutorials
then find a way to learn how to script
you can depend on others forever yk..
gonna be tough then if u dont like tutorials or docs lol
i think he is also new to roblox studio
how much u were in rbx studio?
bro not a offense but weird asf
am not helping you
learn in your own way
and what u want is not help
is teaching
go search that in other way
k
** You are now Level 5! **
☠️
localscripts cant access ServerStorage