A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
My Script error Vote_lcapMy Script error Voting_barMy Script error Vote_rcap 
naknak
My Script error Vote_lcapMy Script error Voting_barMy Script error Vote_rcap 
Supernapalm
My Script error Vote_lcapMy Script error Voting_barMy Script error Vote_rcap 
m27frogy
My Script error Vote_lcapMy Script error Voting_barMy Script error Vote_rcap 
slayer9365
My Script error Vote_lcapMy Script error Voting_barMy Script error Vote_rcap 
myrco919
My Script error Vote_lcapMy Script error Voting_barMy Script error Vote_rcap 
branefreez
My Script error Vote_lcapMy Script error Voting_barMy Script error Vote_rcap 
ninga95
My Script error Vote_lcapMy Script error Voting_barMy Script error Vote_rcap 
CloneTrooper787
My Script error Vote_lcapMy Script error Voting_barMy Script error Vote_rcap 
raboy117
My Script error Vote_lcapMy Script error Voting_barMy Script error Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
My Script error EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
My Script error EmptySeptember 14th 2020, 1:16 pm by MrNicNac

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
My Script error EmptyJuly 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
My Script error EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
My Script error EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
My Script error EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
My Script error EmptyApril 13th 2015, 4:54 pm by naknak

» Who's active?!
My Script error EmptyApril 13th 2015, 4:52 pm by naknak

» Genesis Point
My Script error EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
My Script error EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
My Script error EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
My Script error EmptyJuly 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
My Script error EmptyJuly 10th 2014, 11:36 am by naknak

» Hi. I am new here
My Script error EmptyApril 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
My Script error EmptyJanuary 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
My Script error EmptyJanuary 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
My Script error EmptyJanuary 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
My Script error EmptyNovember 26th 2013, 3:33 pm by Keanu73

» Improve Coding
My Script error EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
My Script error EmptySeptember 1st 2013, 6:19 pm by branefreez


 

 My Script error

Go down 
3 posters
AuthorMessage
Superzachary
Novice Scripter
Novice Scripter
Superzachary


Posts : 2
Join date : 2013-01-16

My Script error Empty
PostSubject: My Script error   My Script error EmptyJanuary 16th 2013, 7:36 pm

Hello I belive I have a error


val = script.Parent.Parent.Open
val2 = script.Parent.Parent.Moving
DA2 = script.Parent.Parent.DoorA2
DA1 = script.Parent.Parent.DoorA1
function onC()
if val2.Value == false then
if val.Value == false then
val2.Value = true
for i = 1, (DA1.Size.X*10)-10 do
wait(0.09)
lv = D2.CFrame
DA2.CFrame = lv + ((lv*CFrame.Angles(0,-math.pi/2,0)).lookVector*0.1)
lv = DA1.CFrame
DA1.CFrame = lv + ((lv*CFrame.Angles(0,math.pi/2,0)).lookVector*0.1)
end
val2.Value = false
val.Value = true
else
val2.Value = true
for i = 1, (DA1.Size.X*10)-10 do
wait(0.01)
lv = DA2.CFrame
DA2.CFrame = lv - ((lv*CFrame.Angles(0,-math.pi/2,0)).lookVector*0.1)
lv = DA1.CFrame
DA1.CFrame = lv - ((lv*CFrame.Angles(0,math.pi/2,0)).lookVector*0.1)
end
val2.Value = false
val.Value = false
end
end
end
script.Parent.ClickDetector.MouseClick:connect(onC)
Back to top Go down
Superzachary
Novice Scripter
Novice Scripter
Superzachary


Posts : 2
Join date : 2013-01-16

My Script error Empty
PostSubject: Re: My Script error   My Script error EmptyJanuary 16th 2013, 7:38 pm

If you can Fix it please, Its a sliding door I have click detector
Back to top Go down
branefreez
Intermediate Scripter
Intermediate Scripter
branefreez


Posts : 143
Join date : 2012-07-14

My Script error Empty
PostSubject: Re: My Script error   My Script error EmptyFebruary 22nd 2013, 8:56 pm

First, make sure val and val2 are boolean values [BoolValue]
Also, I dont know if this will fix it, but I think you are erroring because you arent initiating the variables with the "local" keyword. Test this out:
It's Highly Compacted so it loads faster.
Code:
local val=script.Parent.Parent.Open local val2=script.Parent.Parent.Moving local DA2=script.Parent.Parent.DoorA2 local DA1=script.Parent.Parent.DoorA1 function onC() if val2.Value==false then if val.Value==false then val2.Value=true for i=1,(DA1.Size.X*10)-10 do delay(0.09, function() local lv=D2.CFrame DA2.CFrame=lv+((lv*CFrame.Angles(0,-math.pi/2,0)).lookVector*0.1) lv=DA1.CFrame DA1.CFrame=lv+((lv*CFrame.Angles(0,math.pi/2,0)).lookVector*0.1) end) end val2.Value=false val.Value=true else val2.Value=true for i = 1,(DA1.Size.X*10)-10 do delay(0.01, function() lv=DA2.CFrame DA2.CFrame=lv-((lv*CFrame.Angles(0,-math.pi/2,0)).lookVector*0.1) lv=DA1.CFrame DA1.CFrame=lv-((lv*CFrame.Angles(0,math.pi/2,0)).lookVector*0.1) end) end val2.Value=false val.Value=false end end end
script.Parent.ClickDetector.MouseClick:connect(onC)
Back to top Go down
http://www.roblox.com/User.aspx?ID=22724483
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

My Script error Empty
PostSubject: Re: My Script error   My Script error EmptyFebruary 23rd 2013, 2:22 pm

Give us the error. The end.
Back to top Go down
branefreez
Intermediate Scripter
Intermediate Scripter
branefreez


Posts : 143
Join date : 2012-07-14

My Script error Empty
PostSubject: Re: My Script error   My Script error EmptyFebruary 23rd 2013, 3:12 pm

Yeah, I agree, you need to know the error so you can fix it. That would make it so much easier for us to help him.
Back to top Go down
http://www.roblox.com/User.aspx?ID=22724483
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

My Script error Empty
PostSubject: Re: My Script error   My Script error EmptyFebruary 25th 2013, 1:47 pm

Everyone's image seems to have reset. :/
Back to top Go down
branefreez
Intermediate Scripter
Intermediate Scripter
branefreez


Posts : 143
Join date : 2012-07-14

My Script error Empty
PostSubject: Re: My Script error   My Script error EmptyFebruary 25th 2013, 4:30 pm

I've been trying to get my image trick to work [ http://www.roblox.com/?BLAH=___&blah=YOURNAMEHERE ]; so that my avatar will work correctly, but it wont work, it just shows me as ROBLOX. Hmph... :'(
Back to top Go down
http://www.roblox.com/User.aspx?ID=22724483
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

My Script error Empty
PostSubject: Re: My Script error   My Script error EmptyFebruary 27th 2013, 10:10 am

Lol.
Back to top Go down
branefreez
Intermediate Scripter
Intermediate Scripter
branefreez


Posts : 143
Join date : 2012-07-14

My Script error Empty
PostSubject: Re: My Script error   My Script error EmptyMarch 1st 2013, 6:36 pm

Joo just did a one word post. OH EM GEE!
Back to top Go down
http://www.roblox.com/User.aspx?ID=22724483
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

My Script error Empty
PostSubject: Re: My Script error   My Script error EmptyMarch 1st 2013, 6:40 pm

We don't have any silly no one word posts rule here. Yet. :3
Back to top Go down
branefreez
Intermediate Scripter
Intermediate Scripter
branefreez


Posts : 143
Join date : 2012-07-14

My Script error Empty
PostSubject: Re: My Script error   My Script error EmptyMarch 1st 2013, 6:42 pm

Nice.
Back to top Go down
http://www.roblox.com/User.aspx?ID=22724483
Sponsored content





My Script error Empty
PostSubject: Re: My Script error   My Script error Empty

Back to top Go down
 
My Script error
Back to top 
Page 1 of 1
 Similar topics
-
» Script with error somewhere .....
» Fun, fun....error -.-
» The Local Script: A Robloxian's Worst Nightmare
» C++ script
» Another C++ Script

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Questions and Help :: Scripting-
Jump to: