How can I spawn a part on the player when they say “Part” in the chat?
Example script
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
local part = Instance.new("Part")
part.Parent = workspace
end)
end
https://developer.roblox.com/en-us/api-reference/event/Player/Chatted
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
local part = Instance.new("Part", workspace)
end)
end)