miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 21 Sep 2011 03:44 PM |
local myTableone = {"Smallpath1"} game.Players.PlayerAdded:connect(function(Player) b = Player:FindFirstChild("leaderstats") c = Player.leaderstats:FindFirstChild("Money") script.Parent["Path175$"].Head.Touched:connect(function(hit) if Player.TeamColor == BrickColor.new("Bright red") then if c.Value >= 175 then c.Value = c.Value - 175 local z = game.Lighting[myTableone[1]]:Clone() z.Parent = game.Workspace z:MakeJoints() game.Workspace[myTableone[1]].CFrame = CFrame.new(144.5, 2, 56) end end end) end)
Ok, theres another script called leaderstats. Inside Player. If there value is 175 and they touch the brick then the brick comes from lighting to workspace. IT WORKS but the CFrame is wrong. It's not the right CFrame. =_= Makes no sense! |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
|
| 21 Sep 2011 04:03 PM |
| .CFrame = .CFrame + Vector3.new(,,) |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 21 Sep 2011 04:15 PM |
game.Workspace[myTableone[1]].CFrame = CFrame + Vector3.new(144.5, 2, 56)
You mean like that? |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Sep 2011 04:53 PM |
Nooo wait, like this :P
game.Workspace[myTableone[1]].CFrame = game.Workspace[myTableone[1]].CFrame + Vector3.new(144.5, 2, 56) |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|