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

Trying to make a private base for myself?

Asked by
h19rry 20
10 years ago

I'm trying to make a private base for myself, and others with this script, but it doesn't work.

001local nam = "xTranquil's private base"
002people = {"xTranquil"}
003 
004model = nil
005base = nil
006walls = {}
007 
008function findplr(str)
009    local stringk = str:lower()
010    for _, v in pairs(game.Players:getPlayers()) do
011        if string.lower(string.sub(v.Name,1,#stringk)) == stringk then
012            return v
013        end
014    end
015end
View all 148 lines...

But this is the error I get. LUA ERROR: [string "local player = game.Players.LocalPlayer..."]:5: attempt to index field 'Hit' (a userdata value)

0
It says line 5, yet that's not the correct line. Do you have an idea of the correct line? Shawnyg 4330 — 10y
0
Not at all. h19rry 20 — 10y
0
Is that all your code? AmiracIe 175 — 10y
0
Not all mine, some parts found. h19rry 20 — 10y

Answer this question