|
| 15 Jul 2012 04:38 PM |
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local i = Instance.new("Message",game.Workspace) i.Text = "START!" wait(1) i:Destroy() wait(5) for i = 113.4,241.4 do game.Workspace.Drown.CFrame=CFrame.new(-568, i, -259) wait() game.Workspace.Drown.CFrame=CFrame.new(-568, 113.4, -259) end end end) -------------- The Message pops up but The "Drown brick" Dont move...
Use same function! Please ;)
~Thanks! |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 04:39 PM |
And also, could you add a debounce?
Thank you. |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 04:59 PM |
db = false
script.Parent.Touched:connect(function(hit) if db == false then if hit.Parent:FindFirstChild("Humanoid") then local i = Instance.new("Message",game.Workspace) i.Text = "START!" wait(1) i:Destroy() wait(5) for i = 113.4,241.4 do game.Workspace.Drown.CFrame=Vector3.new(-568, i, -259) wait() game.Workspace.Drown.CFrame=Vector3.new(-568, 113.4, -259) end end else db = true wait(3) db = false end end) |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 05:00 PM |
| When you adjust something's CFrame, it takes 12 values, unless it's a Vector3.new. |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 05:02 PM |
| script.Parent.Touched:connect(function(hit)) |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 05:03 PM |
| ^No, he has it right. It works. He said the part doesn't move. CFrame positioning on an X,Y,Z axis requires Vector3 |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2012 05:05 PM |
local i = Instance.new("Message") i.Parent = game.Workspace |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 15 Jul 2012 10:18 PM |
| ^He did that right as well. The second argument to Instance.new is the parent of it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Jul 2012 01:35 AM |
| Oh. I must have a different way of scripting.. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 06:09 PM |
| @Ninja.. Message showed but nothing rose. :( |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 06:26 PM |
it would be: h = hit.Parent:findFirstChild("Humanoid") if h~= nil then |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 06:27 PM |
| Or maybe because there's 2 "i" variables. |
|
|
| Report Abuse |
|
|