Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a Part That when you touch it Gives You money that works with filtering enabled?

Asked by 6 years ago

I need help make a Part That when you touch it Gives You money that works with filtering enabled please send a video script or anything that might help

thx danielevilgamer12

1
It should work with filtering enabled as long as its not a local script. You "may" need to use remote events though. Nikkulaos 229 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago
local player = game.Players.LocalPlayer
local playermoney = player.leaderstats.[MONEY NAME HERE]
local time1 = [[INCERT TIME TO WAIT BEFORE GIVING MONEY AGAIN HERE]]

script.Parent.Touched:connect(function()
playermoney.Value = playermoney.Value + [[INCERT MONEY VALUE HERE]]
wait(time1)

end)

This should hopefully fix your problem.

Edit: I made it look this way so it's not any more confusing. :D

0
Your the Best Danielevilgamer12 -6 — 6y
Ad

Answer this question