Talk:One Way Shields: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Chess123mate
No edit summary
>Chess123mate
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 14: Line 14:


That script is inefficient. A person could get through it the other way with basic teamwork. To improve, you'd either put a mini-teleporter, or also add a door2.OnTouch function that anchors one or both of the doors. [[User:Chess123mate|Chess123mate]] 06:22, 3 November 2008 (UTC)
That script is inefficient. A person could get through it the other way with basic teamwork. To improve, you'd either put a mini-teleporter, or also add a door2.OnTouch function that anchors one or both of the doors. [[User:Chess123mate|Chess123mate]] 06:22, 3 November 2008 (UTC)
: I think you are on to something with your teleporter idea.  Got an example?  {{User:Mindraker/sig}} 20:10, 11 November 2008 (UTC)
: What you could do for teleporting is to have 1 door which teleports you to another brick's position (right beside it). However, the example below is much better than both my idea and the one above :) Good script, xSMysteriousXx! [[User:Chess123mate|Chess123mate]] 03:45, 28 November 2008 (UTC)
== What I do is place one..... ==
What I do is just place one Part and make it into a Door then add this simple script! So much easyer!
Script:
<pre>door = script.Parent
function onTouch(hit)
if hit.Parent == nil then return end
local h = hit.Parent:FindFirstChild("Humanoid")
if h ~= nil then
hit.Parent.Torso.Velocity=door.CFrame.lookVector * 100 -- Push the Player back
end
end
door.Touched:connect(onTouch)</pre>
{{user:~xXMysteriousXx~/sig}}

Latest revision as of 03:45, 28 November 2008

The script

door = script.Parent.Parent.Door
door2 = script.Parent.Parent.Door2
function onTouched(hit)
	door.CanCollide = false
	door2.CanCollide = false
	wait(3)
	door.CanCollide = true
	door2.CanCollide = true
end

script.Parent.Touched:connect(onTouched)

works. MINDRAKER 14:14, 23 August 2008 (CDT)

That script is inefficient. A person could get through it the other way with basic teamwork. To improve, you'd either put a mini-teleporter, or also add a door2.OnTouch function that anchors one or both of the doors. Chess123mate 06:22, 3 November 2008 (UTC)

I think you are on to something with your teleporter idea. Got an example? MINDRAKER 20:10, 11 November 2008 (UTC)
What you could do for teleporting is to have 1 door which teleports you to another brick's position (right beside it). However, the example below is much better than both my idea and the one above :) Good script, xSMysteriousXx! Chess123mate 03:45, 28 November 2008 (UTC)

What I do is place one.....

What I do is just place one Part and make it into a Door then add this simple script! So much easyer! Script:

door = script.Parent

function onTouch(hit)
	if hit.Parent == nil then return end
	local h = hit.Parent:FindFirstChild("Humanoid")
	if h ~= nil then
		hit.Parent.Torso.Velocity=door.CFrame.lookVector * 100 -- Push the Player back
	end
end
door.Touched:connect(onTouch)

User:~xXMysteriousXx~/sig