generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help?CFrame gone wrong

Previous Thread :: Next Thread 
miz656 is not online. 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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
21 Sep 2011 03:56 PM
Bump
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
21 Sep 2011 04:03 PM
.CFrame = .CFrame + Vector3.new(,,)
Report Abuse
miz656 is not online. 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
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
21 Sep 2011 04:53 PM
ya
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
21 Sep 2011 08:15 PM
Still doesn't work :(
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image