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

Super Mario 64 Star System Help?

Asked by 3 years ago

im making a sm64 styled game and well, i dont have a star system, and by that i mean it acts as a key, when you collect it you cant collect it again and it unlocks a door, you need a certain amount of keys to unlock a door, and of course when you leave or press save, everything saves. but i have literally no idea how, do you think you can help me? sorry if asking for free work is rude

0
I will be answering that in a minute Clervate 15 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
local key1 = game.Workspace.Key1
local key2 = game.Workspace.Key2
local key3 = game.Workspace.Key3
local keys = game.Workspace.Key1 and game.Workspace.Key2 and game.Workspace.Key3
local Door = game.Workspace.Door

key1.Touched:Connect(function()
    key1.Transparency = 1
    key1.CanCollide = false
end)

key2.Touched:Connect(function()
    key2.Transparency = 1
    key2.CanCollide = false
end)

key3.Touched:Connect(function()
    key3.Transparency = 1
    key3.CanCollide = false
end)

while wait(0.1) do
        if keys.Transparency == 1 then
        Door.Transparency = 1
         end
end
0
i forgot to add cancollide and i hope this is what you need Clervate 15 — 3y
0
sorry i couldn't add a saving system ill do that now! Clervate 15 — 3y
0
I have no idea how to make a save system Clervate 15 — 3y
Ad

Answer this question