|
| 27 Jul 2015 09:02 PM |
Recently, I have decided to make a tycoon similar to berezaa's. He has a tycoon tutorial, so I decided to check it out. I made my own models, but my gate door refuses to work. Can someone help? Here is the script.
***DISCLAIMER*** I made my own dropper, conveyor, gate, and collector.
I Copied your every move EXACTLY, yet my gate doesn't seem to work.
Script: script.Parent.Head:connect(function(hit) local player game.Players:GetPlayerFromCharacter(hit.Parent) if player ~= nil then local cashmoney = game.ServerStorage.MoneyStorage:FindFirstChild(player.Name) if cashmoney ~= nil then local ownstycoon = cashmoney:FindFirstChild("OwnsTycoon") if ownstycoon ~= nil then if ownstycoon.Value == false then if script.Parent.Parent.Parent.Owner.Value == nil then if hit.Parent:FindFirstChild("Humanoid") then if hit.Parent.Humanoid.Health > 0 then script.Parent.Parent.Parent.Owner.Value = player ownstycoon.Value = true script.Parent.Name = player.Name.."'s Tycoon" script.Parent.Head.Transparency = 0.6 script.Parent.Head.CanCollide = true player.TeamColor = BrickColor.new.(script.Parent.Parent.Parent.Name) end end end end end end end)
Thanks! |
|
|
| Report Abuse |
|
| |