|
| 14 Aug 2014 10:56 PM |
So I have a script that adds points to a leaderboard. Stops when touching stops occurring. Simple.
How can I make this ALSO implement a script of game.Workspace.ENGINE.RG1.Disabled= false
...therefor activating a script. And after touching stops occurring, game.Workspace.ENGINE.RG1.Disabled= true
local ting = 0
function onTouched(hit)
if ting == 0 then ting = 1 check = hit.Parent:FindFirstChild("Humanoid")
if check ~= nil then
local user = game.Players:GetPlayerFromCharacter(hit.Parent) local stats = user:findFirstChild("leaderstats")
if stats ~= nil then local cash = stats:findFirstChild("Points") cash.Value = cash.Value + 1 wait(1) end
end
end
ting = 0 end
end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
| 14 Aug 2014 10:57 PM |
| Original script starts at local ting = 0 |
|
|
| Report Abuse |
|
|
| 14 Aug 2014 11:06 PM |
| OGM FREE MODELS GTFO WE'RE NOT HERE TO FIX THEM |
|
|
| Report Abuse |
|