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: Lava Script Wont Work

Previous Thread :: Next Thread 
TheInfamousGamer is not online. TheInfamousGamer
Joined: 25 Jan 2014
Total Posts: 36
27 Jan 2014 10:33 PM
Lava = script.Parent
Lava.CanCollide=false

function Checksum()
while wait(1) do
if game.Workspace.Game.Value==1 then
start()
else
print ("Still waiting")
end
end
end

function start()
Backup=Lava:clone(),Workspace
while wait(1) do
for i = 1,10000 do
Lava.Size=Vector3.new(40.8,i,37.8)
wait(1)
end
end
end

Checksum()

I need that Lava to go through blocks, as its going "Up" directly up but I need it to go thorugh blocks and models to climb up.
Report Abuse
TheInfamousGamer is not online. TheInfamousGamer
Joined: 25 Jan 2014
Total Posts: 36
27 Jan 2014 11:00 PM
BUMP
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
27 Jan 2014 11:05 PM
function start()
Backup=Lava:clone(),Workspace
while wait(1) do
for i = 1,10000 do
Lava.Size=Vector3.new(40.8,i,37.8)
Lavs.CFrame = Lava.Position + Vector3.new(0, i * 0.1, 0)
wait(1)
end
end
end

Checksum()
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
27 Jan 2014 11:08 PM
function start()
Backup=Lava:clone(),Workspace
while wait(1) do
for i = 1,10000 do
Backyp.Size=Vector3.new(40.8,i,37.8)
Backup.CFrame = Backup.Position + Vector3.new(0, i * 0.1, 0)
wait(1)
end
end
end
Report Abuse
TheInfamousGamer is not online. TheInfamousGamer
Joined: 25 Jan 2014
Total Posts: 36
27 Jan 2014 11:17 PM
Your script does not work. Now I get
21:16:05.666 - Workspace.Lava.Script:19: bad argument #3 to 'CFrame' (CFrame expected, got userdata)
Report Abuse
Tyler2D is not online. Tyler2D
Joined: 23 Jan 2014
Total Posts: 2106
27 Jan 2014 11:20 PM
Take your first script

and add

Start()

to call the function





unless I'm doing something wrong or didn't read the whole post
Report Abuse
Tyler2D is not online. Tyler2D
Joined: 23 Jan 2014
Total Posts: 2106
27 Jan 2014 11:22 PM
Disregard my last post

Lava = script.Parent
Lava.CanCollide=false

function start()
Backup=Lava:clone(),Workspace
while wait(1) do
for i = 1,10000 do
Lava.Size=Vector3.new(40.8,i,37.8)
wait(1)
end
end
end

function Checksum()
while wait(1) do
if game.Workspace.Game.Value==1 then
start()
else
print ("Still waiting")
end
end
end

start()
Checksum()
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
27 Jan 2014 11:22 PM
Backup.Position = Backup.CFrame + Vector3.new(0, i * 0.01, 0)
Report Abuse
TheInfamousGamer is not online. TheInfamousGamer
Joined: 25 Jan 2014
Total Posts: 36
27 Jan 2014 11:25 PM
Your script does the same thing as my other one. It does not go through blocks. I need my lava to kill players. But go through blocks, I did not think it would take me a day+ still trying just to get some simple lava working.
Report Abuse
TheInfamousGamer is not online. TheInfamousGamer
Joined: 25 Jan 2014
Total Posts: 36
27 Jan 2014 11:27 PM
and to nighttimeninja your's gives me a 21:23:15.557 - Workspace.Lava.Script:19: bad argument #3 to 'Position' (Vector3 expected, got userdata)
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
27 Jan 2014 11:30 PM
Get rid of everything on that line afyer Backup.CFrame
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
27 Jan 2014 11:31 PM
noob
Report Abuse
TheInfamousGamer is not online. TheInfamousGamer
Joined: 25 Jan 2014
Total Posts: 36
27 Jan 2014 11:33 PM
Nope, Still gives me the
21:33:14.073 - Workspace.Lava.Script:20: bad argument #3 to 'Position' (Vector3 expected, got userdata)
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
27 Jan 2014 11:35 PM
Backup.Position = CFrame.new(Backup.Position)


Im tired.
Report Abuse
Tyler2D is not online. Tyler2D
Joined: 23 Jan 2014
Total Posts: 2106
27 Jan 2014 11:36 PM
Lava = script.Parent
Lava.CanCollide=false

function start()
Backup=Lava:clone(),Workspace
while wait(1) do
for i = 1,10000 do
Lava.Size=Vector3.new(40.8,i,37.8)
wait(1)
end
end
end

function Checksum()
while wait(1) do
if game.Workspace.Game.Value==1 then
else
print ("Still waiting")
end
end
end

start()
Checksum()



....?
Report Abuse
TheInfamousGamer is not online. TheInfamousGamer
Joined: 25 Jan 2014
Total Posts: 36
27 Jan 2014 11:36 PM
And yet again i'm bombed with the

21:36:39.588 - Workspace.Lava.Script:20: bad argument #3 to 'Position' (Vector3 expected, got userdata)
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
27 Jan 2014 11:38 PM
Raig!!!


Backup:TranslateBy(CFrame.new(0,0.1,0))
Report Abuse
TheInfamousGamer is not online. TheInfamousGamer
Joined: 25 Jan 2014
Total Posts: 36
27 Jan 2014 11:40 PM
21:40:34.151 - TranslateBy is not a valid member of Part
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
27 Jan 2014 11:47 PM
Put the part in a model and do


Backup = Lava.Parent:Clone(),Workspace




Backup.Parent:TranslateBy(CFrame.new(0,0.1,0))
Report Abuse
TheInfamousGamer is not online. TheInfamousGamer
Joined: 25 Jan 2014
Total Posts: 36
27 Jan 2014 11:50 PM
Size is not a valid member of Model

This problem wont go away!
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
27 Jan 2014 11:52 PM
Sorry, so tired.

Backup = Lava:Clone(),Workspace
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
27 Jan 2014 11:53 PM
OMG

Lava = script.Parent
Lava.CanCollide=false

function Checksum()
while wait(1) do
if game.Workspace.Game.Value==1 then
start()
else
print ("Still waiting")
end
end
end

function start()
Backup=Lava:clone(),Workspace
while wait(1) do
for i = 1,10000 do
local cf = Lava.CFrame
Lava.Size=Vector3.new(40.8,i,37.8)
Lava.CFrame = cf
wait(1)
end
end
end

Checksum()
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
27 Jan 2014 11:54 PM
Dude, way too logical.
Report Abuse
TheInfamousGamer is not online. TheInfamousGamer
Joined: 25 Jan 2014
Total Posts: 36
27 Jan 2014 11:55 PM
@ nighttimeninja

21:55:24.932 - Workspace.Lava.Lava.Script:19: attempt to index field 'Parent' (a nil value)
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
27 Jan 2014 11:57 PM
Ok, im gonna go to bed and try to collect my sanity.
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