Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = owner
- player.Character.Archivable = true
- local e = player.Character:Clone()
- e.Name = "Citizen"
- e.Parent = player.Character
- e["Left Leg"].CFrame = workspace.Base.CFrame
- --[[
- e.HumanoidRootPart.Touched:connect(function(part)
- local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
- if part then
- humanoid:TakeDamage(10)
- end
- end)
- ]]--
- gc = e:GetChildren()
- for i=1, #gc do
- if gc[i].ClassName == "Part" then
- gc[i].Transparency = 0
- if gc[i]:FindFirstChildOfClass("Decal") then
- gc[i]:FindFirstChildOfClass("Decal")
- end
- end
- if gc[i].ClassName == "Accessory" then
- gc[i].Handle:remove()
- end
- end
- local CurrentPart = nil
- local MaxInc = 20
- function onTouched(hit)
- if hit.Parent == nil then
- return
- end
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid == nil then
- CurrentPart = hit
- end
- end
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- while true do
- print(childName)
- child = parent.ChildAdded:wait()
- if child.Name==childName then
- return child
- end
- end
- end
- local Figure = e
- local Humanoid = waitForChild(Figure, "Humanoid")
- local Torso = waitForChild(Figure, "Torso")
- local Left = waitForChild(Figure, "Left Leg")
- local Right = waitForChild(Figure, "Right Leg")
- Humanoid.Jump = true
- Left.Touched:connect(onTouched)
- Right.Touched:connect(onTouched)
- while true do
- wait(math.random(2, 6))
- if CurrentPart ~= nil then
- if math.random(1, 2) == 1 then
- Humanoid.Jump = true
- end
- Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
- end
- end
- --[[
- while wait() do
- e.Humanoid.WalkSpeed = 16
- e.Humanoid.WalkToPoint = e["Left Arm"].Position
- e.Humanoid.WalkToPoint = e["Right Arm"].Position
- end
- ]]--
Add Comment
Please, Sign In to add comment