#Non visible Inventory System
42 messages · Page 1 of 1 (latest)
What do you mean
Oh
Wait
Nvm
Thought this was regarding a different question
Uhhh
UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == (mouse click I forgot how it is in code) then
-- send a remote event to the server do the logic on the server side so it is safe, the remote event will automatically include the player by default. Put this in a local script too. Probably make a on player added event too somewhere where it'll keep count of the players score in the serverstorage, and from where the points logic is calculated access the players current score is just update the value to the new value + 1
end
)
@jovial sentinel
Why put it inside of the player
If a hacker joins then the value can be very easily accessable and be changed manually
And regarding making an on player added event where the player gets their own points value as an int value or number value, also set that value's name as the player USERNAME, which will be what will distinguishes that one value from the other players values if there is more than one player in the server
How else is it possible?
oh
So, a local script for on player added?
local Added = game:GetService("Players")
local Wood = 0
Added.PlayerAdded:Connect(function()
Wood = Wood + 1
end)
Inside of a local script that Is inside of StarterPlayerScripts
ah wait
Let me change something in a moment
cause that's not what It's supposed to be at all
POST DELETED
ServerScripts do on player added events @jovial sentinel
Yeah I realised that I have not learned allot of what It takes to understand coding
No matter what anyone told me or how basic It was there was holes,
and I realised why
I Was missing a basic part of coding as a whole
I'm focusing on smaller things now for the time being
thank you though
script.Parent.TextButton.MouseButton1Click:Connect(function()
print("Hello"..script.Parent.TextBox.Text)
end)
What about this?
It does not print the text of the textbox
I respect that a lot

Even if I did kind of waste your time...;-;
:o kitten
It's fine