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 » Club Houses » Off Topic
Home Search
 

Re: Since Scripting Helpers is filled with idiots

Previous Thread :: Next Thread 
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 12:41 AM
Error: Sun Nov 06 00:34:44 2011 - Workspace.Part.Script:17: attempt to concatenate local 'posi' (a userdata value)
db = false
target = game.Workspace.End1
script.Parent.Touched:connect(function(hit)
local hum = hit.Parent:findFirstChild("Humanoid")
if hum ~= nil and not db then
db = true
local fold = game.Players:findFirstChild(hit.Parent.Name):findFirstChild("PlayerGui")
local holder = fold:findFirstChild("Loader")
local gui = holder.Frame
for i = 1, 0, -0.1 do
gui.BackgroundTransparency = i
wait(.05)
end
local plyr = hit.Parent:findFirstChild("Torso")
local posi = target.Position
local num = tostring("1")
local x1 = getfenv(1)[posi..num].x -- Line 17
local y1 = getfenv(1)[posi..num].y
local z1 = getfenv(1)[posi..num].z
xp = x1 + 2
zp = z1 + 2
yp = y1 + 2
local c = plyr.CFrame
local x2 = 0
local y2 = yp
local z2 = 0
c = CFrame.new(Vector3.new(xp,yp,zp), Vector3.new(x2,y2,z2))
wait(2.5)
for v = 0, 1, 0.1 do
gui.BackgroundTransparency = v
wait(.2)
end
db = false
end
end)
Supposed to make you teleport when the brick is touched.
Report Abuse
moose1997 is not online. moose1997
Joined: 04 Jul 2008
Total Posts: 12502
06 Nov 2011 12:41 AM
overwhelm:()

Gappo gappo
Report Abuse
ZangooseSlash is not online. ZangooseSlash
Joined: 05 Feb 2011
Total Posts: 25902
06 Nov 2011 12:42 AM
OT will troll the script, go to roblox talk
Report Abuse
jetguy10 is not online. jetguy10
Joined: 14 Aug 2008
Total Posts: 10792
06 Nov 2011 12:42 AM
Im sorry I diddnt choose the path of a game developer

And took the time to read scripts

-Play with fire-
Report Abuse
rotflstar is not online. rotflstar
Joined: 10 Oct 2009
Total Posts: 2371
06 Nov 2011 12:43 AM
please give me the error message.
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 12:43 AM
BLARG Even when I go to Scripters they tell me I'm to unintelligent enough to land in Scripting Helpers, but no one there has any idea what they're doing. D:
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 12:44 AM
@rotflstar

It's right on the top of the post.. e.e
Report Abuse
rotflstar is not online. rotflstar
Joined: 10 Oct 2009
Total Posts: 2371
06 Nov 2011 12:44 AM
sorry, it was too hidden, I see it now
no idea, it's been ages sence I've done any Lua
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 12:46 AM
@rotfl

I'm pretty sure the problem has to do with indexing the positions. D:
Report Abuse
rotflstar is not online. rotflstar
Joined: 10 Oct 2009
Total Posts: 2371
06 Nov 2011 12:46 AM
tell me what db is for?
Also there are free models for this, borrow one and modify the script to fix your liking. As long as you are learning Lua it is perfectly fine to borrow one.
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 12:47 AM
@Rotfl

The variable db is pretty much the boolean so the script doesn't run like 50 times when you touch it.
Report Abuse
rotflstar is not online. rotflstar
Joined: 10 Oct 2009
Total Posts: 2371
06 Nov 2011 12:49 AM
that is not nessisary then, put wait (10) at the begining, that should condense some of it, let me review the rest and I might be able to tell what's wrong with it.
Also please list ALL the variables you used, and WHEN EVER YOU ARE EXPLAINING SOMETHING IN A SCRIPT ALWAYS PUT IT IN A COMMENT!!!
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 12:50 AM
@rotfl

wth, you don't add a wait statement, that just freezes the whole code in general.
Report Abuse
rotflstar is not online. rotflstar
Joined: 10 Oct 2009
Total Posts: 2371
06 Nov 2011 12:52 AM
okay, so all this script really needs is

-wait 10
-detect collision
-set Player.cframe = cframe.new(x, y, z)

again, I've forgot most of my Lua so I'm not sure how to detect a collison with a specific player
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 12:54 AM
@Rotfl

- Remove the wait(10), that will do nothing but stall.
- It already detects collision from the event, and then interprets if it has a humanoid or not.
- Already set it, I'm trying to return the value of the position of the brick and is telling me I can't set a chain of it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Off Topic
   
 
   
  • 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