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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 351 |
|
| |
|