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: Broken Script

Previous Thread :: Next Thread 
Jpoppycat is not online. Jpoppycat
Joined: 28 Aug 2011
Total Posts: 351
14 Jun 2014 10:38 PM
Hey.
My script for my true or false game is broken :P
1) The Messages wont come up
2)The true or false bricks wont vanish.
+ I dont know how to teleport the players into the game so if someone could add that in that'd be great !
Report Abuse
Jpoppycat is not online. Jpoppycat
Joined: 28 Aug 2011
Total Posts: 351
14 Jun 2014 10:39 PM
Heres the script
while true do

function hideMessage()
if message == nil then return end
message.Parent = nil
end


function showMessage(text,num)
hideMessage()
if message == nil then message = Instance.new("Message") end
message.Text = text
message.Parent = game.Workspace
wait(num)
hideMessage()
end

function Questions(num)
answer= script.Parent.Answer



if script.Parent.QuestionNum.Value == 5 then -- the amount of questions you want to have.
script.Parent.QuestionNum.Value = 0
showMessage("That's the end of the game! Well done, everyone! :)",3)

elseif script.Parent.QuestionNum.Value <=5 then
script.Parent.QuestionNum.Value =script.Parent.QuestionNum.Value + 1
wait(0.1)
showMessage("Answer this question!",3)
Questions(math.random(1,14)) --randomises the questions.
script.Parent.Wait.Value = true
end
end
end

for i = 5,1,-1 do
message.text = i
wait(0.1)
end
if num == 1 then
showMessage("In space it is impossible to cry?" ,3) -- general knowledge questions :P
showMessage("Countdown ..i..")
False1.Cancollide = false
wait(2)
False1.Cancollide = true
answer.Value = "True (there is no gravity, so tears cannot flow)"
end


I keep adding questions on after that then I end it
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
14 Jun 2014 10:40 PM
Teleport players by CFraming their torsos. Due to joints, the rest of the body will follow (assuming limbs and head is unanchored):

character.Torso.CFrame = CFrame.new(0, 100, 0)
Report Abuse
Jpoppycat is not online. Jpoppycat
Joined: 28 Aug 2011
Total Posts: 351
15 Jun 2014 12:13 AM
Thanks
Can someone help me with the other stuff ?
Report Abuse
Jpoppycat is not online. Jpoppycat
Joined: 28 Aug 2011
Total Posts: 351
15 Jun 2014 01:58 AM
...
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