What do you want to achieve? Keep it simple and clear!
Im trying to script an ability that works like Sandevistan from cyberpunk
What is the issue? Include screenshots / videos if possible!
Im cloning the player’s character to act as the afterimage but the character will only clone once, and the highlights are later removed if a new clone is made
Video showing my problem ( They didn’t allow me to upload a file )
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I was researching the cloning problem I was having and tried some alternatives to fix my code but nothing really helped
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
I’m not very experienced in scripting so there could be some flaws with my script or maybe the solution is simple and I just look stupid. I’m just asking for help as a last resort since I ran out of ideas on what to do, any help is appreciated.
(This is a Server script)
local EventS = game:GetService("ReplicatedStorage").CoolDowns.Sandevistan local HIGHlight = Instance.new("Highlight") game:GetService("Players").PlayerAdded:Connect(function(player) local cooldown = Instance.new("NumberValue") cooldown.Value = tick() cooldown.Name = "Cooldown" cooldown.Parent = player end) EventS.OnServerEvent:Connect(function(player,cooldown) if tick() - player.Cooldown.Value > cooldown then print("Sandevistan Has Been Activated") local character = player.Character character.Archivable = true local h = character.Humanoid h.WalkSpeed = 36 local clone = character:Clone() local rhay = clone:GetChildren() player.Cooldown.Value = tick() for i,v in pairs(rhay) do if v:IsA("Part") then v.Anchored = true v.CollisionGroup = "Void" HIGHlight.FillTransparency = 0.3 HIGHlight.OutlineTransparency = 0.75 HIGHlight.FillColor = Color3.fromHSV(tick()%5/5,1,1) HIGHlight.OutlineColor = Color3.fromHSV(tick()%5/5,1,1) HIGHlight.Parent = v.Parent end end while true do for g = 0, 100, 1 do print("cloneS"..g) clone.Name = "SC"..g clone.Parent = game.Workspace wait(1) end end end end)