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

Money Door | How do I make it local player and it stays forever?

Asked by
Llorko 10
5 years ago

How do I make this script local player so that others cant go through when someone buys it and that the purchase stays forever? Here is the script : What do I add or delete

01local required_points = 2000
02 
03local db = true
04script.Parent.Touched:Connect(function(hit)
05    if hit.Parent:FindFirstChild("Humanoid") then
06        local player = game.Players:GetPlayerFromCharacter(hit.Parent)
07        if player.leaderstats.Coins.Value >= required_points then
08            if db then
09                db = false
10                script.Parent.Transparency = 0.5
11                script.Parent.CanCollide = false
12                wait (3)
13                script.Parent.CanCollide = true
14                script.Parent.Transparency = 0
15                db = true
View all 23 lines...
0
If you made the script, you would clearly know how to "make it stay forever" since it takes more effort to disappear after 3 seconds. I think you copy pasted this script which is a no no rower86 35 — 5y
0
Well im not the scripter on my group and the one we have seems to not know it you didnt help at all Llorko 10 — 5y

Answer this question