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

2 errors in 2 diff scripts. Help please?

Asked by 9 years ago

I got errors on 2 different scripts.

(Explorer)

- Loulou1112's Tycoon Kit

- -Leaderboard

- - Help/Instructions

- - Red Factory,

- - - Base

- - - Gate

- - - Config,

- - - - TeamColor

- - - - StartingCash

- - - - Value (one unused actually)

This is what i got in the kit.

While trying the game, the cash does not appear, the output shows me ;

**19:21:57.745 - Buttons is not a valid member of Model

19:21:57.745 - Script 'Workspace.Loulou1112's Tycoon Kit.Red Factory.Core', Line 9

19:21:57.745 - Stack End

19:21:57.747 - Config is not a valid member of Folder

19:21:57.747 - Script 'Workspace.Loulou1112's Tycoon Kit.Leaderboard', Line 5

19:21:57.748 - Stack End**

The core is the following;

function TeamMaker()
    local Factory = Instance.new("Team", game.Teams)
    Factory.Parent = game.Teams
    Factory.AutoAssignable = false
    Factory.Name = script.Parent.Name
    Factory.TeamColor = script.Parent.Config.TeamColor.Value
end

local Buttons = script.Parent.Buttons

The Buttons variable is not used yet, will be later

The leaderboard maker is the following;

function NewPlayer(newPlayer)
    local leader = Instance.new("IntValue")
    local Cash = Instance.new("IntValue")
    leader.Value = 0
    Cash.Value = script.Parent.Config.StartingCash.Value
    Cash.Name = "Cash"
    leader.Name = "leaderstats"
    leader.Parent = newPlayer
end

game.Players.PlayerAdded:connect(NewPlayer)

Help please?

Answer this question