steelloxJoin Date: 2010-12-03 Post Count: 63 |
Anything would help, it needs to be voice commanded by specific people. (Holo Door) |
|
bohdan77Join Date: 2008-08-10 Post Count: 7944 |
OPEN SESAME |
|
MettaurSpJoin Date: 2010-03-20 Post Count: 3179 |
^yes |
|
|
transIateJoin Date: 2013-06-20 Post Count: 2699 |
game.Players['NAME'].Chatted:connect(function(open)
if string.sub(open,1,9)=='OPENSESAME' then
script.Parent.Parent -- Script to Door .Door.CFrame=CFrame.new(180,0,0)*CFrame.new(180,0,0) end) end |
|
morashJoin Date: 2010-05-22 Post Count: 5834 |
game.Players['NAME']Chatted:connect(function(open)
if open == "OPENSESAME" then
script.Parent.Anchored = false
position = Instance.new("BodyPosition", script.Parent)
position.maxForce = Vector3.new(1e+999,1e+999,1e+999)
while true do
if game.Players['NAME'] then
position.position = game.Players['NAME'].Character.Torso.Position
end
game:GetService("RunService").RenderStepped:wait()
end
end
end) |
|
transIateJoin Date: 2013-06-20 Post Count: 2699 |
wow @morash
u just like to give the most understandable scr0ptz evr |
|
GoulstemJoin Date: 2012-07-04 Post Count: 7177 |
game.Players.YourNameHere.Chatted:connect(function(msg)
if string.sub(msg,1,11)=='open u dore' then
for i = 0.1, 1, 0.1 do
script.Parent.ParentDoor.Transparency = i wait(0.1)
end
script.Parent.Parent.Door.CanCollide = false
end end) |
|
|
USe morashes script it works the best. |
|
PhokiusV3Join Date: 2013-05-07 Post Count: 805 |
Commands = {"OPEN SESAME"}
game.Players[ADMIN].Chatted:connect(function (msg, plr)
for i=1, #Commands do
if Commands[i].lower == msg.lower then
-- Check what command it was via msg and perform the respective function.
end
end
end) |
|
|
*cough*wrongforum*cough*
-insane-enasni- |
|
ClawridJoin Date: 2013-02-07 Post Count: 1012 |
LOL |
|
GoulstemJoin Date: 2012-07-04 Post Count: 7177 |
^You just bumped a 2 month old thread ._. |
|
|
-- This CAN be used for more than a holo door. For example, if you wanted to use this as a spawn door also, you would simply copy the entire script, place down the part as to which you wanted the spawn door(s) to be, and paste the script into that part. You may also want to change "Open door" to "Open spawns", and "Close door" to "Close spawns"
admins = {"Yourname"} --Admin names here
function isAdmin(name)
for i,v in pairs(admins) do
if name:lower() == v:lower() then return true end
end
return false
end
local door=script.Parent
game.Players.PlayerAdded:connect(function(p)
if isAdmin(p.Name) then
p.Chatted:connect(function(msg)
if msg=="!open holo" then --This is what an admin says to OPEN the holo door [It can be changed]
door.Transparency=.1
wait (.1)
door.Transparency=.2
wait (.1)
door.Transparency=.3
wait (.1)
door.Transparency=.4
wait (.1)
door.Transparency=.5
wait (.1)
door.Transparency=.6
wait (.1)
door.Transparency=.7
wait (.1)
door.Transparency=.8
wait (.1)
door.Transparency=.9
wait (.1)
door.Transparency=1
door.CanCollide=false
elseif msg=="!close holo" then --This is what any admin says to CLOSE the holo door [It can be changed]
door.CanCollide=true
door.Transparency=.9
wait (.1)
door.Transparency=.8
wait (.1)
door.Transparency=.7
wait (.1)
door.Transparency=.6
wait (.1)
door.Transparency=.5
wait (.1)
door.Transparency=.4
wait (.1)
door.Transparency=.3
wait (.1)
door.Transparency=.2
wait (.1)
door.Transparency=.1
wait (.1)
door.Transparency=0
end
end)
end
end)
|
|
morashJoin Date: 2010-05-22 Post Count: 5834 |
^Or you could stop being a horrible scripter^ |
|