Jump to content

Custom Commands?


Recommended Posts

ThePlayer:Hide()

Disappears you.

ThePlayer.DynamicShadow:Enable(false)

Disappears your shadow.

ThePlayer:Show()

Makes you reappear.

ThePlayer.DynamicShadow:Enable(true)

Reappears your shadow.

 

For specific body parts, you have to ask specifically.

Link to comment
Share on other sites

function GLOBAL.invisible(player)	if player == nil then		player = GLOBAL.ThePlayer	end	player:Hide()	player.DynamicShadow:Enable(false)endfunction GLOBAL.reappear(player)	if player == nil then		player = GLOBAL.ThePlayer	end	player:Show()	player.DynamicShadow:Enable(true)end

And you use

invisible()invisible(ThePlayer)

for the host.

invisible(AllPlayers[x]) -- x is the number next to a player in the tab table

for other players (including host).

 

Same for reappear.

Link to comment
Share on other sites

function GLOBAL.invisible(player)
    if player == nil then
        player = GLOBAL.ThePlayer
    end
    player:Hide()
    player.DynamicShadow:Enable(false)
end
 
function GLOBAL.reappear(player)
    if player == nil then
        player = GLOBAL.ThePlayer
    end
    player:Show()
    player.DynamicShadow:Enable(true)
end

invisible()
invisible(ThePlayer)

reappear()
reappear(ThePlayer)

 

this is my mod main. could I have done something wrong?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...