|
| 29 Mar 2015 09:21 PM |
local Clone = plr.Character:Clone() Clone:MoveTo(plr.Character.Torso.CFrame*CFrame.new(0,0,-1))
I want to Clone the players character and move it slightly away from the player... Why does this fail?
attempt to index local 'Clone' (a nil value) |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 29 Mar 2015 09:24 PM |
repeat wait() until plr.Character ~= nil local Clone = plr.Character:Clone() Clone:MoveTo(plr.Character.Torso.CFrame*CFrame.new(0,0,-1)) |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2015 09:28 PM |
local plr = game.Players.LocalPlayer Run = game:GetService("RunService") enable = false
function DaMove() repeat wait() until plr.Character ~= nil local Clone = plr.Character:Clone() Clone:MoveTo(plr.Character.Torso.CFrame*CFrame.new(0,0,-1)) end
function Animation() end
script.Parent.Selected:connect(function(m) m.Button1Down:connect(function() if enable == false then enable = true
plr.Character.Torso.Anchored = true DaMove() wait(2) plr.Character.Torso.Anchored = false enable = false end end) end)
It still returns Clone is a nil value |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2015 09:29 PM |
The character's Archivable property is set to false, meaning you can't clone it. You can change it though. |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2015 09:33 PM |
plr.Character.Archivable = false local Clone = plr.Character:Clone() Clone:MoveTo(plr.Character.Torso.CFrame*CFrame.new(0,0,-1))
still nil |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2015 09:36 PM |
| 'The character's Archivable property is set to false' i'm a fking idiot |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2015 09:39 PM |
Clone:MoveTo(plr.Character.Torso.CFrame*Vector3.new(5,5,5))
This runs but it does not move the Clone it just places them inside my character |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2015 11:23 PM |
umg thats just so wrong on many levels. You're using MoveTo is Vector3, then you used the torso's CFrame like umg what i cant even. |
|
|
| Report Abuse |
|
|
Sevrick
|
  |
| Joined: 22 Oct 2013 |
| Total Posts: 3846 |
|
|
| 30 Mar 2015 04:03 AM |
wtf dude, you own a studio u need to learn lua. go here:
wiki.roblox.com |
|
|
| Report Abuse |
|
|