#Non visible Inventory System

42 messages · Page 1 of 1 (latest)

fair river
#

How is the value added

#

Is it by part.Touched for example or is it something else

jovial sentinel
#

By mouseclick

#

@fair river

fair river
#

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

jovial sentinel
#

Hm

#

I Meant how to put a Value inside of a player

#

and how to refrence It

fair river
#

Why put it inside of the player

#

If a hacker joins then the value can be very easily accessable and be changed manually

fair river
jovial sentinel
jovial sentinel
#

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

jovial sentinel
#

POST DELETED

fair river
#

ServerScripts do on player added events @jovial sentinel

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

fair river
jovial sentinel
#

Thank :D

#

I Really appriciate your understanding

fair river
jovial sentinel
#

Even if I did kind of waste your time...;-;

jovial sentinel
fair river
#

It's fine