How can I make that when a player joins the game a script checks if theplayer player has over a certain amount of money andmakes it part of the player

How can I make it that when a player joins the game a script checks if the player has over a certain amount of money then it makes a part a child of the players left hand

1 Like

Is money a leaderstat? If so,

game.Players.PlayerAdded:Connect(function(plr) -- listen for player join
    if plr.leaderstats.Money.Value >= 100 then -- change to the amount needed
        local part = Instance.new("part", plr.Character['']) -- put in the LeftHand name since it varies fronm R6 to R15
    end
end)
2 Likes

Ok thank you but were should I put it?

It’s a server script.

Ok :grinning: :grinning: :grinning: :grinning: :grinning:

hy now how do I make a particle emmiter go in the players left had

Create an Instance of ParticleEmitter and parent it to the part.

Can you write it because im stupid

game.Players.PlayerAdded:Connect(function(plr) -- listen for player join
    if plr.leaderstats.Money.Value >= 100 then -- change to the amount needed
        local part = Instance.new("Part", plr.Character['']) -- put in the LeftHand name since it varies fronm R6 to R15
        local ParticleEmitter = Instance.new("ParticleEmitter", part)
    end
end)

Ok but where does the instance.new find the particle emmiter

What do you mean?

like how does it call the particle like you would have a script say

local particle = game.ServerStorage.eeeeeeeeeee

The name would just be ParticleEmitter.

Ok so it would not call the particle emitter then