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

I made a 2 Player war tyccon the Become a Builder or Fighter thing Dosent work?

Asked by 8 years ago
01local ting = 0
02owner = script.Parent.Parent.Parent.OwnerName
03 
04function onTouched(hit)
05    if ting == 0 then
06    ting = 1
07    local check = hit.Parent:FindFirstChild("Humanoid")
08        if check ~= nil then
09            local thisplr = game.Players:findFirstChild(hit.Parent.Name)
10            if (thisplr~=nil) then
11                local ownstyc = thisplr:findFirstChild("Tycoon")
12                if (ownstyc~=nil) then
13                    if ownstyc.Value == 0 then
14                        ownstyc.Value = 1
15                        owner.Value = thisplr.Name
View all 38 lines...

There are 2 of these on the Tycoon, its 2 player, Is there somthing wrong with this script? its not working in General, The Block dosent become Transparent in General so you cant walk in.... any help?????

1
Well it's saying that ownstyc is most likely nil. Do you have a thing inside of that player named 'Tycoon'? ikiled 75 — 8y
0
no, i donot think so, how do i check? varunverma 15 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

I don't think it's the script, It's the same with the other tycoon kits, You have to test in a public game not on Test Solo.

Ad

Answer this question