Hi! I have been trying to make a prop hunt game, but the reason I can’t make it is due to the “turn player into a prop” system. How would I make this system?
(Basically when a player clicks a box, they turn into that box.)
Hi! I have been trying to make a prop hunt game, but the reason I can’t make it is due to the “turn player into a prop” system. How would I make this system?
(Basically when a player clicks a box, they turn into that box.)
I would add a clickdetector to the box, and add a script to the clickdetector
local box = script.Parent.Parent
script.Parent.MouseClick:Connect(function(player)
local disguise = box:Clone()
disguise.Parent = player.Character
disguise.Position = player.Character.HumanoidRootPart.Postition
i would also create a weld between the rootpart and the box to keep the box connected to the player
Never knew it was that easy. Thank you!
also you should clone your regular character if u want an option to be original character again
well, this is a little better but yes this also works just change it to a click detector
local morph = script.Parent.Parent.StarterCharacter
local prox = script.Parent.ProximityPrompt
prox.Triggered:Connect(function(player)
local oldChar = player.Character
local disguise = morph:Clone()
player.Character = disguise
disguise:SetPrimaryPartCFrame(oldChar.PrimaryPart.CFrame)
disguise.HumanoidRootPart.Anchored = false
disguise.Parent = workspace
end)