Hello, so, I’m attempting to make a player intro, and the player character walks to the screen, but, I can’t do this, because the player, I’m using Humanoid:MoveTo() But there’s a trouble, because It’s not working right, I used :SetNetworkOwner(nil) to all player character parts, but, is there a way to ignore player inputs? Like jumping,walking?
What if you clone the player’s character or something, and made that walk towards the screen?
You can simply do this to disable the inputs
local ContextActionService = game:GetService("ContextActionService")
ContextActionService:BindAction("DisableInput",
function() return Enum.ContextActionResult.Sink end,
false,
unpack(Enum.PlayerActions:GetEnumItems()))
--to unfreeze it
ContextActionService:UnbindAction("DisableInput")
BindAction
is really usefun when working with input which is why I recommend you search more about it
Yes I saw that, but how would I activate it?
What do you mean? If I cloned it I would have to destroy other one, or rename the cloned?
What do you mean activate? The first part will disable the input, the second will enable it.
If you’re asking when to use this, use it whenever the scene is triggered, with whatever triggers the scene, an event or something else.
Make a copy of the player’s character, but obviously not destroy the original character. You don’t really have to do anything else at all. Just make the clone walk towards the screen instead.
Yes, but how do I make it work?
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
character = plr.Character or plr.CharacterAdded:Wait()
repeat wait() until character.Parent == workspace or character:FindFirstChild("Humanoid")
local Fake = character:Clone()
Fake.Name = plr.Name.."-Clone"
Fake.Parent = workspace
end)
end)
ServerScriptService.RadioCore:12: attempt to index local ‘Fake’ (a nil value)
Any idea?
You have to set character’s Archivable property to false in order to clone it.
Still doesn’t works 30charss
Show me how did you disable it
character.Archivable = false ? I did that
Yeah yeah but did you do it before cloning or after cloning?
Before , did it before why? #)CHARSS
And you’re still getting the same error?
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
local Fake = character:Clone()
Fake.Name = plr.Name.."-Clone"
Fake.Parent = workspace
end)
end)
I got rid of redundant lines for you. Try this again.
Ohhh sorry my bad, you have to set it to true, just realised that
There, it worked! thank youuuuuu