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 » Scripters
Home Search
 

Re: Bizzar error

Previous Thread :: Next Thread 
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
13 Jul 2015 04:28 PM
http://gyazo.com/268f8a74903e693c82f6dc1e292b1f97
I posted the code as a picture so you can see explorer too. It should work fine, and I don't understand why it's putting out that error. It's simple code
▲☭⎊▲Obama is a giant overlord space lizard▲⎊☭▲
Report Abuse
Datamora is not online. Datamora
Joined: 06 Jun 2014
Total Posts: 78
13 Jul 2015 04:36 PM
What does the error say?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Jul 2015 04:36 PM
Post the code here. I already see problems with it


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
13 Jul 2015 04:42 PM
Bizarre*

tycoon = script.Parent
owner = "f"

a = tycoon.OwnerDoor.O
if a.Name == "O" then
a.Name = "Owner: Unowned"
end
--Assigns owner

function setOwner(x)
if owner == "f" then
owner = x.Parent.Name
a.Head.Name = x.Parent.Name
local i = 0
while i < i do
a.touchOwner.Transparency = i
wait(0.2)
i = i + 0.1

end
else x.Parent.Head:remove()
end
end

a.touchOwner.Touched:connect(setOwner)





▲☭⎊▲Obama is a giant overlord space lizard▲⎊☭▲
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Jul 2015 04:56 PM
Change the hierarchy.

local door = script.Parent
local head = door.Head

door.Touched:connect(function(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
if human then
local player = game.Players:GetPlayerFromCharacter(human.Parent)
if player and head.Name == "Owner: Un-owned" then
head.Name = "Owner: "..player.Name
for i = 0,1,0.1 do
script.Parent.Transparency = i
wait(0.2)
end
end
end
end)


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Jul 2015 04:57 PM
door.Transparency = i *


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
13 Jul 2015 05:03 PM
That works, thanks.
You're probably the most active and useful on this forum at this hour.

▲☭⎊▲Obama is a giant overlord space lizard▲⎊☭▲
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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