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
 

Whats wrong with this?

Previous Thread :: Next Thread 
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
20 Sep 2011 07:06 PM
function onTouch(hit)
r = game.Workspace.RawrPart
M = game.Workspace.Message
M.Text = "Josh Told you to touch this i bet well um you are going to die very painfully now :P"
wait(3)
M:remove()
game.Workspace = Instance.new("Message")
hit.Parent.Torso.CFrame = CFrame.new(10, 8.9, -11)
wait(2)
hit.Parent.Torso.CFrame = CFrame.new(12, 28.8, -161)
wait(2)
hit.Parent.Torso.CFrame = CFrame.new(10, 8.9, -11)
end

script.Parent.Touched:connect(onTouch)
Report Abuse
SFH2 is not online. SFH2
Joined: 26 Jul 2011
Total Posts: 103
20 Sep 2011 07:13 PM
game.Workspace = Instance.new("Message")

...Maybe because of this.
You're probably trying to parent it in game.Workspace. The second Instance.new property is the parent of the newly created object.
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
20 Sep 2011 08:22 PM
Instance.new("Message", game.Workspace).Text = "Blah"


~ pwnedu46 ~
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