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: Repost: Why isn't this brick teleport script working?

Previous Thread :: Next Thread 
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
05 Nov 2011 11:35 PM
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)

When you touch the brick, it's supposed to make you 'teleport' pretty much.

Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
05 Nov 2011 11:46 PM
Bump :/
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 12:38 AM
Bump ​>:O
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 12:51 AM
blarg bump
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 01:06 AM
bumpzor
Report Abuse
LevelNoobX is not online. LevelNoobX
Joined: 18 Sep 2011
Total Posts: 565
06 Nov 2011 01:32 AM
Stop spamming.
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
06 Nov 2011 01:52 AM
bump
Report Abuse
LevelNoobX is not online. LevelNoobX
Joined: 18 Sep 2011
Total Posts: 565
06 Nov 2011 01:57 AM
Spammer.
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