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

Spawning in as a creature I created?

Asked by 6 years ago

How do I make it so when someone enters the game, they get a list of creatures I created to choose from and will spawn in as it?

0
First, create a TextButton and a LocalScript then, try use game.ReplicatedStorage.CreatureName:Clone() CreatureName.Name = "CreatureName" CreatureName.Parent = C and on the top add this: local P = game.Players.LocalPlayer local C = P.Character or P.CharacterAdded:wait() Anubizx 76 — 6y

1 answer

Log in to vote
0
Answered by
Anubizx 76
6 years ago

First, create a LocalScript at TextButton and try use this:

function onButtonClicked()

local P = game.Players.LocalPlayer
local C = P.Character or P.CharacterAdded:wait()

AnyName = game.ReplicatedStorage.CreatureName:Clone()
AnyName.Name = "CreatureName"
AnyName.Parent = C
wait(1)
script.Parent.Parent:Destroy()
end

script.Parent.MouseButton1Click:connect(onButtonClicked)

Note: In script.Parent.Parent:Destroy(), you need to edit! I just gave a example. And you need to create a script for remove currently player torso,legs and others

Ad

Answer this question