#leaderstats
1 messages · Page 1 of 1 (latest)
it's trying to find ball inside of hit.Parent, if it's not there then it skips the if statement
local Players = game:GetService("Players")
local convertor = workspace.MoneyConverter
local function onPlayerAdded(player)
local folder = Instance.new("Folder")
folder.Name = "leaderstats"
folder.Parent = player
local cash = Instance.new("IntValue")
cash.Name = "Cash"
cash.Parent = folder
cash.Value = 0
end
Players.PlayerAdded:Connect(onPlayerAdded)
convertor.Touched:Connect(function(otherPart)
local character = otherPart:GetPlayerFromCharacter(otherPart.Parent)
if character then
character.leaderstats.Cash.Value += 1
end
end
@strange canyon
you just re wrote his code in a neater way
this doesn't solve his issue
hold on i might know this
it needs to be parented to the player's character
@strange canyon, why did u add the touch event on the leaderstats script?
Why not make them seperated?
i dont know dude
when creating ball make sure it is parented to character
hmm
how would i do that?
u mean += 1?
under the click detector event
yes add that
@strange canyon Player.leaderstats.Cash.Value += 1
how is this important?
i did
try
whether var = var + 1 or var += 1
but it just makes it shorter it dont fix anything?
doesn't matter
look for the click dectector script and parent it to character there
are u making a tycoon game?
no
im just messing around with my friend trying to learn how to script but dis aint workin
this is the button script
add in the params player
add the player parameter
inside function(player)
can u send what i should do?
type this
consider reading the docs or watching a few tutorials
it dont work
** You are now Level 11! **
show output
show code and output
crazy name lol
gg
as much as i can tell you what's wrong, it is clear you lack basic fundamental knowledge of scripting, you can't help yourself at this stage
but that's fine, if you haven't watch the dev king beginners guide and advanced guide to scripting
should put you levels above this
u legit told me to do 7 differnet things and they all diddnt work so i think ur the only who lacks the knowledge
but ok
you could tell a scholar 1 way to solve a problem and its' solved, you can tell a fool 100 ways to solve a problem the problem still persists.
< 3
nope
nice ragebait
u must be a fool then bud
yes xddd
if you've wrote what you have soo far without ai at 14 that's pretty good for todays standard
just keep at it, and be attentive through the tutorials
dude ive written scripts much larger than this but this topic is smth i havent learnt?
suuureee
plus u cant solve it ither so i wouldnt be talking
.
shit code

shit
also shit
go back to drawing
insults arent working bud
very poor code.
inefficient in the long run, you'll be fumbling over
and very repetitive.
no shit lil bro💀
seeing as u seem to never be able to shut ur mouth lets see sum of ur AMAZING✨ scripts 
here's a deep clone
goodluck understanding this concept
i know how to clone buddy huh
barbecue chicken alert
** You are now Level 3! **
barbecue chicken alert
Explain what the code does
sybau