Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Super Mario 64 Star System Help?

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

1 comment

0

I will be answering that in a minute

1 answer

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

3 comments

0

i forgot to add cancollide and i hope this is what you need

0

sorry i couldn't add a saving system ill do that now!

0

I have no idea how to make a save system

This discussion is preserved as it was. New answers, comments, and votes are closed.